
Elasticsearch Mcp Server
Let your coding agent query indices, run searches, and manage Elasticsearch from the IDE without hand-writing REST calls.
Overview
io.github.cr7258/elasticsearch-mcp-server is a Build-phase MCP server that connects AI coding agents to Elasticsearch for search and cluster operations.
What is this MCP server?
- Stdio MCP transport via PyPI package elasticsearch-mcp-server (v2.0.15)
- Configure hosts with ELASTICSEARCH_HOSTS (comma-separated URLs)
- Supports API key or username/password auth with optional TLS cert verification
- Designed for agent-driven index and search operations against Elasticsearch or Elastic Cloud
- Server schema version 2.0.15 on PyPI identifier elasticsearch-mcp-server
- Stdio transport with ELASTICSEARCH_HOSTS default https://localhost:9200
Community signal: 287 GitHub stars.
What problem does it solve?
Agents cannot safely explore or query your Elasticsearch data without a dedicated integration and correct host credentials.
Who is it for?
Indie builders with an existing Elasticsearch or Elastic Cloud deployment who want agent-assisted search debugging and index workflows.
Skip if: Teams that need a managed search SaaS with no cluster to operate, or builders with zero Elasticsearch footprint.
What do I get? / Deliverables
After registration, your agent can invoke MCP tools against your configured Elasticsearch hosts using your chosen auth method.
- MCP tool calls against your Elasticsearch cluster from the agent
- Repeatable search and index workflows without manual REST scripting
- Documented env-based connection for local and remote hosts
Recommended MCP Servers
Journey fit
Canonical shelf is Build because wiring search and data backends is where solo builders first adopt Elasticsearch tooling. Integrations is the right subphase: this MCP is a protocol bridge to an external datastore, not app UI or ship-time hardening.
How it compares
MCP database integration, not an Elasticsearch hosting or Kibana replacement skill.
Common Questions / FAQ
Who is elasticsearch-mcp-server for?
Solo and small-team developers who use Elasticsearch or Elastic Cloud and want MCP-connected agents to run searches and related operations from the editor.
When should I use elasticsearch-mcp-server?
Use it during Build or Operate when you are integrating search, debugging queries, or automating repetitive Elasticsearch tasks alongside your app work.
How do I add elasticsearch-mcp-server to my agent?
Install the PyPI package elasticsearch-mcp-server, set ELASTICSEARCH_HOSTS and ELASTICSEARCH_API_KEY (or username/password), add the stdio server to your MCP config, and restart the client.