Connect to any version of Elasticsearch (7.x, 8.x, 9.x) from MCP clients like Claude Desktop. Call any Elasticsearch API through natural language.
- Install and configure in your MCP client (e.g. Claude Desktop):
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "npx",
"args": ["-y", "mcp-server-elasticsearch-all-apis"],
"env": {
"ES_URL": "your-elasticsearch-url",
"ES_API_KEY": "your-api-key",
"ES_VERSION": "9.x" // or "8.x" or "7.x"
}
}
}
}
Env Variable | Required | Description |
---|---|---|
ES_URL |
Yes | Elasticsearch URL |
ES_VERSION |
No | Version to use: "7.x", "8.x", "9.x" (default: "9.x") |
ES_API_KEY |
No* | API key for auth |
ES_USERNAME |
No* | Username for basic auth |
ES_PASSWORD |
No* | Password for basic auth |
ES_CA_CERT |
No | Path to custom CA cert |
* Either API key or username/password pair required for auth
npm install
npm run build
For local testing with Claude Desktop, point the config to your built dist/index.js
.
Apache License 2.0