E
Elasticsearch MCP Server
Connects AI assistants to Elasticsearch through MCP, enabling full-text search, document indexing, and index management on Elasticsearch clusters.
stdioLocalApiKeynpm
What This Server Exposes
Tools
searchindexcreate_index
Resources
- •index data
- •search results
Setup Instructions
- 1Ensure an Elasticsearch cluster is running (self-hosted or Elastic Cloud)
- 2Generate an API key from Kibana under Stack Management > API Keys
- 3Add the Elasticsearch server config to your Claude Desktop configuration
- 4Set the ELASTICSEARCH_URL and ELASTICSEARCH_API_KEY environment variables
- 5Restart Claude Desktop
Configuration
Claude Desktop Configuration
claude_desktop_config.json
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch"
],
"env": {
"ELASTICSEARCH_URL": "https://your-cluster.es.io:9200",
"ELASTICSEARCH_API_KEY": "your-api-key"
}
}
}
}Environment Variables
| Name | Required | Secret | Description |
|---|---|---|---|
| ELASTICSEARCH_URL | ✓ | — | Elasticsearch cluster URL including protocol, host, and port |
| ELASTICSEARCH_API_KEY | ✓ | 🔒 | Elasticsearch API key for authenticating requests to the cluster |
ELASTICSEARCH_URL
Elasticsearch cluster URL including protocol, host, and port
Required
ELASTICSEARCH_API_KEY
Elasticsearch API key for authenticating requests to the cluster
Required🔒 Secret
Server Manifest
No official server.json manifest found. Generate one with our MCP server.json Generator →
Compatibility
Claude DesktopClaude Code
⚠
Safety Notes
Elasticsearch API keys can have broad cluster access including reading all indices. Create scoped API keys with only the required index privileges. Never expose admin-level API keys or use superuser credentials for MCP connections.
This listing is for informational purposes only. CodexSpot is not affiliated with Elasticsearch MCP Server.