Elasticsearch MCP
Elastic's official MCP — index/mapping/search/shard tools straight to your cluster; needs ES_URL to start.
Specs
Verified:
- Transport
- stdio (local subprocess)
- Package
- @elastic/mcp-server-elasticsearch (npm)
- Probed version
- 0.3.1
- Tools
- 4 (verified via tools/list)
- Vendor
- Elastic official
Elastic's official MCP server, npm package `@elastic/mcp-server-elasticsearch`, repo github.com/elastic/mcp-server-elasticsearch (verified 200 on 2026-11-21). Handshake verified: initialize succeeds once `ES_URL` is set, and tools/list returns **4 tools** (list_indices / get_mappings / search / get_shards). It won't boot without ES_URL.
Key features
- Officially maintained by Elastic
- Tight 4-tool surface: list/get_mappings/search/shards
- ES_URL env var is the connection surface
Use cases
Inspect index layouts, run searches, check shard health — ES cluster debugging inside the session.
Install
`codex mcp add elasticsearch --env ES_URL=<your-cluster-url> -- npx -y @elastic/mcp-server-elasticsearch`; attach credential env vars like ES_API_KEY as needed (see the package README). Lands in the `mcp_servers.elasticsearch` section of config.toml.
Caveats
It won't start without ES_URL — sort the connection string first; credential vars per the package README.
Added
Updated
Verified