MCP Server Studio
MCP server for interacting with Elasticsearch
Registry name: io.github.cr7258/elasticsearch-mcp-server
Add to claude_desktop_config.json:
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}Run in your terminal:
claude mcp add elasticsearch-mcp-server -e ELASTICSEARCH_HOSTS='<ELASTICSEARCH_HOSTS>' -e ELASTICSEARCH_API_KEY='<ELASTICSEARCH_API_KEY>' -e ELASTICSEARCH_USERNAME='<ELASTICSEARCH_USERNAME>' -e ELASTICSEARCH_PASSWORD='<ELASTICSEARCH_PASSWORD>' -e ELASTICSEARCH_VERIFY_CERTS='<ELASTICSEARCH_VERIFY_CERTS>' -- uvx elasticsearch-mcp-server==2.0.15Add to .cursor/mcp.json:
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"elasticsearch-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": [
"elasticsearch-mcp-server==2.0.15"
],
"env": {
"ELASTICSEARCH_HOSTS": "<ELASTICSEARCH_HOSTS>",
"ELASTICSEARCH_API_KEY": "<ELASTICSEARCH_API_KEY>",
"ELASTICSEARCH_USERNAME": "<ELASTICSEARCH_USERNAME>",
"ELASTICSEARCH_PASSWORD": "<ELASTICSEARCH_PASSWORD>",
"ELASTICSEARCH_VERIFY_CERTS": "<ELASTICSEARCH_VERIFY_CERTS>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
ELASTICSEARCH_HOSTS | No | Comma-separated list of Elasticsearch hosts (e.g., https://localhost:9200) |
ELASTICSEARCH_API_KEY | No | API key for Elasticsearch or Elastic Cloud authentication (recommended) |
ELASTICSEARCH_USERNAME | No | Username for basic authentication (alternative to API key) |
ELASTICSEARCH_PASSWORD | No | Password for basic authentication (used with ELASTICSEARCH_USERNAME) |
ELASTICSEARCH_VERIFY_CERTS | No | Whether to verify SSL certificates (true/false) |