Elasticsearch MCP Server
A read-only MCP server for Elasticsearch 7.10 clusters, providing tools for cluster info, health, index listing, and Query DSL search with Google OAuth and Bearer token authentication.
README
Elasticsearch MCP Server
A read-only MCP (Model Context Protocol) server for Elasticsearch, providing secure access to ES 7.10 clusters via Streamable HTTP transport with Google OAuth + static Bearer token authentication.
Tools
es_cluster_info— cluster name, version, taglinees_cluster_health— cluster status, nodes, shardses_index_list— all indices with health, doc count, storage sizees_search— full Query DSL search with pagination, sorting, source filtering
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
ES_ADDRESSES |
yes | — | Comma-separated ES node URLs |
API_TOKENS |
yes | — | Comma-separated static Bearer tokens |
PORT |
no | 8080 |
HTTP listen port |
PUBLIC_URL |
no | https://mta-logs-elasticsearch-mcp.maestra.io |
Public URL for OAuth redirects |
GOOGLE_CLIENT_ID |
no | — | Enables Google OAuth when set |
GOOGLE_CLIENT_SECRET |
no | — | Required with GOOGLE_CLIENT_ID |
ES_TIMEOUT |
no | 30000 |
ES request timeout (ms) |
ES_MAX_RETRIES |
no | 3 |
Max retries on 502/503/504/429 |
MAX_SESSIONS |
no | 1000 |
Max concurrent MCP sessions |
Development
npm install
npm run build
npm run dev # tsx watch mode
npm test # vitest
Docker
docker build -t mcp-elasticsearch .
docker run -e ES_ADDRESSES=http://es:9200 -e API_TOKENS=my-token -p 8080:8080 mcp-elasticsearch
Authentication
- Static Bearer tokens — for programmatic access and Teleport
- Google OAuth + PKCE — for interactive access via Claude Code (restricted to
@maestra.io)
Auth is handled entirely in the application; no Traefik middleware required.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.