
Elasticsearch MCP Server
by cr7258io.github.cr7258/elasticsearch-mcp-serverv2.0.15
MCP server for interacting with Elasticsearch
context tax
queued
security
queued
cold start
queued
freshness
Active7d ago
Install Elasticsearch MCP server
Install in Claude Code
claude mcp add elasticsearch-cr7258 -e ELASTICSEARCH_API_KEY='<elasticsearch-api-key>' -e ELASTICSEARCH_PASSWORD='<elasticsearch-password>' -- uvx elasticsearch-mcp-serverInstall in Cursor
{
"mcpServers": {
"elasticsearch-cr7258": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server"
],
"env": {
"ELASTICSEARCH_API_KEY": "<elasticsearch-api-key>",
"ELASTICSEARCH_PASSWORD": "<elasticsearch-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"elasticsearch-cr7258": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server"
],
"env": {
"ELASTICSEARCH_API_KEY": "<elasticsearch-api-key>",
"ELASTICSEARCH_PASSWORD": "<elasticsearch-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"elasticsearch-cr7258": {
"type": "stdio",
"command": "uvx",
"args": [
"elasticsearch-mcp-server"
],
"env": {
"ELASTICSEARCH_API_KEY": "<elasticsearch-api-key>",
"ELASTICSEARCH_PASSWORD": "<elasticsearch-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"elasticsearch-cr7258": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server"
],
"env": {
"ELASTICSEARCH_API_KEY": "<elasticsearch-api-key>",
"ELASTICSEARCH_PASSWORD": "<elasticsearch-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| ELASTICSEARCH_HOSTS | — | — | Comma-separated list of Elasticsearch hosts (e.g., https://localhost:9200) |
| ELASTICSEARCH_API_KEY | — | yes | API key for Elasticsearch or Elastic Cloud authentication (recommended) |
| ELASTICSEARCH_USERNAME | — | — | Username for basic authentication (alternative to API key) |
| ELASTICSEARCH_PASSWORD | — | yes | Password for basic authentication (used with ELASTICSEARCH_USERNAME) |
| ELASTICSEARCH_VERIFY_CERTS | — | — | Whether to verify SSL certificates (true/false) |
Freshness
Active — last maintenance signal 7d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-02 · 7d ago · GitHub
Latest release
2026-10-02 · 7d ago · GitHub · v2.1.4
Package published
no data · npm/PyPI
Registry entry updated
2025-09-15 · 13mo ago · official registry · v2.0.15
FAQ
›How do I install the Elasticsearch MCP server in Claude Code?
Run: claude mcp add elasticsearch-cr7258 -e ELASTICSEARCH_API_KEY='<elasticsearch-api-key>' -e ELASTICSEARCH_PASSWORD='<elasticsearch-password>' -- uvx elasticsearch-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Elasticsearch require an API key?
Yes. It expects ELASTICSEARCH_API_KEY, ELASTICSEARCH_PASSWORD, of which 2 are secrets.
›Can I use Elasticsearch as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Elasticsearch in the official MCP registry?
Yes, as io.github.cr7258/elasticsearch-mcp-server.
Alternatives to Elasticsearch
Other database MCP servers.