elasticsearch-mcp-server
local MCP serverelasticsearch-mcp-server is a local MCP server: MCP server for interacting with Elasticsearch. Install it from pypi as elasticsearch-mcp-server.
Installation
Terminal
claude mcp add elasticsearch-mcp-server -e ELASTICSEARCH_HOSTS=... -e ELASTICSEARCH_API_KEY=... -e ELASTICSEARCH_USERNAME=... -e ELASTICSEARCH_PASSWORD=... -e ELASTICSEARCH_VERIFY_CERTS=... -- uvx elasticsearch-mcp-server
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server"
],
"env": {
"ELASTICSEARCH_HOSTS": "...",
"ELASTICSEARCH_API_KEY": "...",
"ELASTICSEARCH_USERNAME": "...",
"ELASTICSEARCH_PASSWORD": "...",
"ELASTICSEARCH_VERIFY_CERTS": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Python with uv (runs with uvx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
ELASTICSEARCH_HOSTS,ELASTICSEARCH_API_KEY,ELASTICSEARCH_USERNAME,ELASTICSEARCH_PASSWORD,ELASTICSEARCH_VERIFY_CERTS
Summary
MCP server for interacting with Elasticsearch
elasticsearch-mcp-server vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| elasticsearch-mcp-server | 308 | Local | Yes | pypi |
| DBHub | 3,574 | Local | Yes | npm |
| Supabase | 2,926 | Hosted | Yes | None |
| Scaleway MCP server | 998 | Local | No | oci |
| mcp-ssh-manager | 493 | Local | Yes | npm |
Questions
It reads 5 environment variables: ELASTICSEARCH_HOSTS, ELASTICSEARCH_API_KEY, ELASTICSEARCH_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_VERIFY_CERTS. Set them in your MCP config before starting the server.
Python with uv (runs with uvx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
elasticsearch-mcp-server is a local MCP server distributed as the pypi package elasticsearch-mcp-server.
Run: claude mcp add elasticsearch-mcp-server -e ELASTICSEARCH_HOSTS=... -e ELASTICSEARCH_API_KEY=... -e ELASTICSEARCH_USERNAME=... -e ELASTICSEARCH_PASSWORD=... -e ELASTICSEARCH_VERIFY_CERTS=... -- uvx elasticsearch-mcp-server
Run: codex mcp add elasticsearch-mcp-server --env ELASTICSEARCH_HOSTS=... --env ELASTICSEARCH_API_KEY=... --env ELASTICSEARCH_USERNAME=... --env ELASTICSEARCH_PASSWORD=... --env ELASTICSEARCH_VERIFY_CERTS=... -- uvx elasticsearch-mcp-server
Similar MCP servers
NameStars
- DBHubio.github.bytebase/dbhub3,574
- Supabasecom.supabase/mcp2,926
- Scaleway MCP serverio.github.scaleway/scaleway-mcp998
- mcp-ssh-managerio.github.bvisible/mcp-ssh-manager493
- google-analytics-mcpio.github.surendranb/google-analytics-mcp242
- Dynatrace-mcpio.github.dynatrace-oss/Dynatrace-mcp138
- Unraid MCPai.dinglebear/unraid-mcp131
- Unraid MCPtv.tootie/unraid-mcp131