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.

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

05 · Facts

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

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