Official · by elastic
Elasticsearch MCP server
The Elasticsearch MCP server lets an AI assistant list indices, inspect field mappings, run searches and ES|QL queries, and check shard information.
- Apache-2.0 licence
- ★ 719 on GitHub
- Verified against its source 19 Oct 2026
What the Elasticsearch MCP server does
Through natural language conversations, an assistant can use the server's tools to work with Elasticsearch data. The tools include listing available indices, getting field mappings for a specific index, performing searches using query DSL, executing ES|QL queries, and getting shard information for all or specific indices. The quoted setup refers to connecting with a cluster URL and an API key.
Tools it gives your assistant
list_indicesLists available indicesget_mappingsGets field mappings for an indexsearchRuns a search using query DSLesqlRuns an ES QL queryget_shardsGets shard information for all or specific indices
How to install it
What you need
- “Replace with your Elasticsearch cluster URL and with your API key”
- “If you're using Claude Desktop (free edition) which only supports the stdio protocol, use mcp-proxy to bridge stdio to streamable-HTTP”