
Elasticsearch
Connects Claude directly to Elasticsearch clusters running versions 5.x through 9.x with automatic version detection and client selection. Exposes the full Elasticsearch API surface including search, indexing, data streams, ILM policies, and ES|QL queries (8.11+). The server disables unsupported features based on your cluster version, so Data Streams won't appear on 7.8 and earlier. Supports both stdio for Claude Desktop and HTTP transport for remote access. Built with security operations in mind, offering tools for threat detection, anomaly analysis, and audit workflows, though these require a valid Elasticsearch license (trial, platinum, or enterprise). Configure with API key or username/password auth, and set NODE_TLS_REJECT_UNAUTHORIZED=0 for self-signed certificates in development.
- GitHub stars
- 8
- tools
- 8
- auth
- Secret needed
- transport
- STDIO, HTTP
- env vars
- 10
- last updated
- Oct 11, 2026
Tools
8 toolsPublic tool metadata for what this MCP can expose to an agent.
list_indicesList indices with pattern filter, health filter, sorting and token-aware summary
List indices with pattern filter, health filter, sorting and token-aware summary
No parameter schema in public metadata yet.
get_mappingsGet field mappings with flat/tree/raw modes, field filtering and multi-index compare
Get field mappings with flat/tree/raw modes, field filtering and multi-index compare
No parameter schema in public metadata yet.
es_searchFull Query DSL search with auto-highlight, plus harness field validation / auto-fix
Full Query DSL search with auto-highlight, plus harness field validation / auto-fix
No parameter schema in public metadata yet.
lookup_fieldsFind the right field names: ECS vocabulary intersected with the index's real fields
Find the right field names: ECS vocabulary intersected with the index's real fields
No parameter schema in public metadata yet.
execute_es_apiExecute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD)
Execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD)
No parameter schema in public metadata yet.
get_shardsShard info with health analysis, problem detection and recommendations
Shard info with health analysis, problem detection and recommendations
No parameter schema in public metadata yet.
list_data_streamsList and analyze Data Streams with ILM info and backing index details
List and analyze Data Streams with ILM info and backing index details
No parameter schema in public metadata yet.
esql_queryExecute ES|QL pipe-based queries with harness field validation and tabular output
Execute ES|QL pipe-based queries with harness field validation and tabular output
No parameter schema in public metadata yet.
Sponsors
Configuration
ES_URL*Your Elasticsearch instance URL (e.g., https://localhost:9200)
ES_API_KEYsecretElasticsearch API key for authentication
ES_USERNAMEElasticsearch username for basic authentication
ES_PASSWORDsecretElasticsearch password for basic authentication
ES_CA_CERTPath to custom CA certificate for Elasticsearch SSL/TLS
NODE_TLS_REJECT_UNAUTHORIZEDdefault: 1Set to '0' to disable SSL certificate validation (development only)
MAX_TOKEN_CALLdefault: 20000Maximum tokens per API call
MCP_TRANSPORT*default: httpTransport mode selection
MCP_HTTP_PORTdefault: 3000HTTP server port (when using HTTP transport)
MCP_HTTP_HOSTdefault: localhostHTTP server host (when using HTTP transport)
Readme
Elasticsearch MCP Server
Enhanced Elasticsearch MCP Server Solution - Security & Threat Analysis Focused
This is a professional security-focused solution maintained by TocharianOU. It enables comprehensive interaction with all Elasticsearch APIs, specifically optimized for security analysis, threat detection, and incident investigation. Features include advanced security monitoring, anomaly detection, threat hunting, root cause analysis, and comprehensive audit capabilities.
Key Security Features:
- Real-time threat detection and security monitoring
- Advanced machine learning for anomaly detection
- Root cause analysis and attack chain tracking
- Security incident investigation and forensics
- Compliance monitoring and audit reporting
Details
- Repository
- github.com/tocharianou/elasticsearch-mcp
- Website
- github.com/TocharianOU/elasticsearch-mcp
- Category
- Databases
- Package
@tocharianou/elasticsearch-mcp- Transport
- STDIO, HTTP
- Auth
- Required
- Registry
- MCP registry, active