mcp-server-elasticsearch
by elastic·★ 662·Score 49
Deprecated Elasticsearch MCP server for AI agents to query and analyze data.
Overview
The Elasticsearch MCP Server connects AI agents to Elasticsearch data using the Model Context Protocol. It enables natural language interactions with Elasticsearch indices, allowing agents to query, analyze, and retrieve data without custom APIs. The server provides tools like list_indices, get_mappings, search, esql, and get_shards to interact with Elasticsearch data through natural language conversations.
Try asking AI
After installing, here are 4 things you can ask your AI assistant:
When to choose this
Only for legacy systems using older Elastic versions before 9.2.0 that cannot upgrade to Elastic Agent Builder.
When NOT to choose this
Should not be chosen as it's deprecated - Elastic recommends using Agent Builder for new implementations.
Tools this server exposes
5 tools extracted from the READMElist_indicesList all available Elasticsearch indices
get_mappingsGet field mappings for a specific Elasticsearch index
searchPerform an Elasticsearch search using query DSL
esqlExecute an ES|QL query
get_shardsGet shard information for all or specific indices
Comparable tools
Installation
Installation
The Elasticsearch MCP Server is provided as a Docker container image available from AWS Marketplace.
stdio protocol
docker run -i --rm \
-e ES_URL \
-e ES_API_KEY \
docker.elastic.co/mcp/elasticsearch \
stdioClaude Desktop configuration (stdio)
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "ES_URL",
"-e", "ES_API_KEY",
"docker.elastic.co/mcp/elasticsearch",
"stdio"
],
"env": {
"ES_URL": "<elasticsearch-cluster-url>",
"ES_API_KEY": "<elasticsearch-API-key>"
}
}
}
}FAQ
- Is this MCP server still maintained?
- No, this MCP server is deprecated and will only receive critical security updates. It has been superseded by the Elastic Agent Builder MCP endpoint available in Elastic 9.2.0+ and Elasticsearch Serverless projects.
- What protocols does this MCP server support?
- The server supports stdio (for direct client connections) and streamable-HTTP (for web-based integrations, stateful sessions, and concurrent clients). Server-Sent Events (SSE) is deprecated.
On Hacker News
Recent discussion from the developer community.
- Story by kordlessagain · 2025-04-14
Compare mcp-server-elasticsearch with
Last updated · Auto-generated from public README + GitHub signals.