mcp-server-elasticsearch-all-api
v0.1.0
Published
MCP server for Elasticsearch with version-specific client support. It can call all Elasticsearch APIs.
Maintainers
Readme
Elasticsearch MCP Server
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.
Quick Start
- 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"
}
}
}
}Configuration
| 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
Development
npm install
npm run buildFor local testing with Claude Desktop, point the config to your built dist/index.js.
License
Apache License 2.0
