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.

  1. Kibana Kibana MCP Server with dynamic API discovery and comprehensive Elastic Stack integration ★ 80

05 · Facts

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

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