Elasticsearch MCP Server
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. Its 8 documented tools cluster into read & search, other, run & execute, esql.
People who work with Transport and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-08-28 · ★ 8 · #62 OF 278 MAINTAINED API INTEGRATION · VERIFIED 2026-09-18
Apache-2.0 · TypeScript servers · how we verify → /methodology
01 · Install Elasticsearch
before you install - you'll need
Set ES_URL, ES_USERNAME, ES_PASSWORD, NODE_TLS_REJECT_UNAUTHORIZED, MCP_TRANSPORT, MCP_HTTP_PORT, MCP_HTTP_HOST, ES_API_KEY before connecting.
Claude Code
claude mcp add tocharianou-elasticsearch-mcp -- npx -y @tocharianou/elasticsearch-mcp Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"tocharianou-elasticsearch-mcp": {
"command": "npx",
"args": [
"-y",
"@tocharianou/elasticsearch-mcp"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license Apache-2.0 - declared in the repository
npm package @tocharianou/elasticsearch-mcp - published under the repo owner's npm scope (@tocharianou)
registry namespace io.github.TocharianOU is GitHub-verified and matches the repo owner
03 · What Elasticsearch can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
With this server connected, an agent can list indices with pattern filter, health filter, sorting and token-aware summary, get field mappings with flat/tree/raw modes, field filtering and multi-index compare, find the right field names: ECS vocabulary intersected with the index's real fields, and execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD).
Capability map
Tools grouped from the project's README - what Elasticsearch lets an agent do.
read & search
5 tools - e.g. List indices with pattern filter, health filter, sorting and token-aware summary; Get field mappings with flat/tree/raw modes, field filtering and multi-index compare; Find the right field names: ECS…
list_indices · get_mappings · lookup_fields · get_shards · list_data_streams
other
1 tool - e.g. Full Query DSL search with auto-highlight, plus harness field validation / auto-fix
es_search
run & execute
1 tool - e.g. Execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD)
execute_es_api
Esql
1 tool - e.g. Execute ES\
esql_query
Limitations (from the README)
[!WARNING] Avoid using cluster-admin privileges. Create dedicated API keys with limited scope and apply fine-grained access control at the index level to prevent unauthorized data access.
Latest releases
v0.9.0 · 2026-08-25
v0.8.0 · 2026-04-13
Release v0.8.0 - ES|QL Query Support · This release adds native ES|QL support, bringing Elasticsearch's modern pipe-based query language directly into the MCP toolset. · What's New · esql_query Tool (ES 8.11+) · ES|QL…
v0.7.3 · 2026-02-03
Security Enhancement: Package Integrity Verification · This release adds comprehensive package integrity verification to ensure download authenticity and security. · New Features · SHA256 checksum generation for all…
04 · Who maintains Elasticsearch
Elasticsearch is maintained by tocharianou. We track 2 MCP servers from tocharianou - 2 actively maintained, 88 combined GitHub stars, oldest repo from Apr 2025. Full record: all servers from tocharianou.
05 · Facts
- repository
- github.com/tocharianou/elasticsearch-mcp
- category
- API integration - ranked #62 of 278 actively-maintained API integration servers as of 2026-09-18.
- release cadence
- 1 release in the last 90 days (latest 2026-08-25)
- registry
- io.github.TocharianOU/elasticsearch (active, first published 2026-01-23 · 4 versions)
- packages
- npm:@tocharianou/elasticsearch-mcp · npm:@tocharianou/elasticsearch-mcp
06 · Elasticsearch FAQ
Is Elasticsearch still maintained?
Yes - as of 2026-09-18, its last commit was 2026-08-28 and it shipped 1 release in the last 90 days. We re-verify nightly.
What can Elasticsearch do?
With this server connected, an agent can list indices with pattern filter, health filter, sorting and token-aware summary, get field mappings with flat/tree/raw modes, field filtering and multi-index compare, find the right field names: ECS vocabulary intersected with the index's real fields, and execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD).
How do I install Elasticsearch?
Run `npx -y @tocharianou/elasticsearch-mcp`. The README documents 8 environment variables (ES_URL, ES_USERNAME, ES_PASSWORD…) to set first. Set ES_URL, ES_USERNAME, ES_PASSWORD, NODE_TLS_REJECT_UNAUTHORIZED, MCP_TRANSPORT, MCP_HTTP_PORT, MCP_HTTP_HOST, ES_API_KEY before connecting. You can also paste the ready-made client config above.
Does Elasticsearch run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Elasticsearch
Alternatives to Elasticsearch
Maintained API integration servers if Elasticsearch isn't the fit.
- LetsFG - Flights & Hotels Search and book flights and hotels: hundreds of airlines, plus bookable hotel rates. ★ 2,033 · 2026-09-14
- Microsoft 365 MCP Server Interact with Microsoft 365 and Office services through the Microsoft Graph API. ★ 980 · 2026-09-17
- Idea Reality MCP Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt - returns 0-100 signal. ★ 817 · 2026-08-11
- Tapo MCP MCP server for discovering and controlling TP-Link Tapo smart home devices via AI Agents ★ 803 · 2026-09-17
- Sqz Pre-injection context compression for coding agents. Zero LLM calls, zero telemetry, offline-safe. ★ 625 · 2026-09-15
- Sv Number MCP Server Phone numbers for AI agents: order a private number, read the SMS verification code, hand it back. ★ 550 · 2026-08-10
More API integration MCP servers · Kibana · InvGate Service Desk · OpenAI Ads MCP · Transloadit Media Processing · Unulu
More TypeScript MCP servers · Tokenrip · Tolgee · Tomba MCP Server · Scopeblind MCP · see all