Elasticsearch MCP Server
Search Elasticsearch indices and read mappings through a Docker-run MCP server.
Add it to your client
Officialdocker run -i --rm -e ES_URL -e ES_API_KEY docker.elastic.co/mcp/elasticsearch stdio
{
"mcpServers": {
"elasticsearch-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ES_URL",
"-e",
"ES_API_KEY",
"docker.elastic.co/mcp/elasticsearch",
"stdio"
]
}
}
}- Transport
- both
- Runtime
- Docker
- Auth
- Required
- Tools
- 5
- License
- Apache-2.0
Elastic's server gives an agent five operations: list indices, read their mappings, run a search, run an ES|QL query, and inspect shard allocation. Because mappings are readable, the model can shape a query against fields that actually exist instead of guessing at the schema. It ships as a Docker image and authenticates with an API key or basic credentials against a cluster URL. Elastic has marked this repository as receiving only critical security fixes and points Elasticsearch 9.2 and newer at the Agent Builder MCP endpoint instead.
Similar MCP servers
OpenSearch MCP Server
MCP serverThe OpenSearch project's own server for listing indices, reading mappings and running search queries.
Exa MCP
MCP serverSearch for agents, where a result carries page content rather than a link.
Docker Hub MCP Server
MCP serverDocker's own server for searching Hub, inspecting tags and managing repositories from an agent.

Comments(0)
Sign in to comment