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 7 documented tools cluster into read & search, other, run & execute, esql.
People connecting API integration tools to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-04-13 · ★ 8 · #128 OF 250 MAINTAINED API INTEGRATION · VERIFIED 2026-08-25
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 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, execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD), and list and analyze Data Streams with ILM info and backing index details.
Capability map
Tools grouped from the project's README - what Elasticsearch lets an agent do.
read & search
4 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; Shard info with health analysis…
list_indices · get_mappings · get_shards · list_data_streams
other
1 tool - e.g. Full Query DSL search with auto-highlight on text/vector fields
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.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…
v0.7.2 · 2026-02-02
v0.7.2 · Fixed MCP Registry namespace case sensitivity issue · Updated mcpName to match registry requirements · Ready-to-use package with all dependencies included (19MB) · No npm install required after extraction…
04 · Who maintains Elasticsearch
Elasticsearch is maintained by tocharianou. We track 2 MCP servers from tocharianou - 2 actively maintained, 87 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 #128 of 250 actively-maintained API integration servers as of 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-08-25, its last commit was 2026-04-13. 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, execute any ES REST endpoint directly (GET/POST/PUT/DELETE/HEAD), and list and analyze Data Streams with ILM info and backing index details.
How do I install Elasticsearch?
Run `npx -y @tocharianou/elasticsearch-mcp`. The README documents 7 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 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.
- Microsoft 365 MCP Server Interact with Microsoft 365 and Office services through the Microsoft Graph API. ★ 932 · 2026-08-24
- Tapo MCP MCP server for discovering and controlling TP-Link Tapo smart home devices via AI Agents ★ 796 · 2026-08-21
- Idea Reality MCP Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt - returns 0-100 signal. ★ 782 · 2026-08-11
- Sqz Pre-injection context compression for coding agents. Zero LLM calls, zero telemetry, offline-safe. ★ 609 · 2026-08-23
- Sv Number MCP Server Phone numbers for AI agents: order a private number, read the SMS verification code, hand it back. ★ 560 · 2026-08-10
- Anytype MCP Official MCP server for Anytype API - your encrypted, local and collaborative wiki. ★ 510 · 2026-08-24
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