Elasticsearch MCP Server

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction. This server enables searching documents, analyzing indices, and managing cluster through a set of tools. It runs locally over stdio via the published package.

People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-08-16 · ★ 303 · #18 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25

Apache-2.0 · Python servers · how we verify → /methodology

01 · Install Elasticsearch MCP Server

before you install - you'll need

Set ELASTICSEARCH_CLUSTERS, ELASTICSEARCH_CLUSTERS_FILE, ELASTICSEARCH_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_API_KEY, OPENSEARCH_USERNAME, OPENSEARCH_PASSWORD, MCP_API_KEY before connecting. DEFAULT_CLUSTER, ELASTICSEARCH_HOSTS, OPENSEARCH_HOSTS, DISABLE_HIGH_RISK_OPERATIONS are optional or environment-specific per the README.

Claude Code

claude mcp add cr7258-elasticsearch-mcp-server -- uvx elasticsearch-mcp-server

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "cr7258-elasticsearch-mcp-server": {
      "command": "uvx",
      "args": [
        "elasticsearch-mcp-server"
      ]
    }
  }
}

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

pypi package elasticsearch-mcp-server - check the name against the project README before installing (PyPI has no namespace ownership)

registry namespace io.github.cr7258 is GitHub-verified and matches the repo owner

03 · What Elasticsearch MCP Server can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v2.1.3 · 2026-08-16

2.1.3 - 2026-08-16 · add opt-in GCF response encoding for tool results (RESPONSE_FORMAT=gcf) - (e3eca8f) - @Dayna Blackwell · remove unused anthropic dependency - (6214cff) - @cr7258 · clarify unauthenticated network…

v2.1.2 · 2026-05-22

2.1.2 - 2026-05-22 · support multiple search clusters - (09a0a20) - @cr7258 · load multi-cluster config from a JSON file - (4d7d78b) - @cr7258 · Testing · split unit and e2e suites by feature - (780be57) - @cr7258…

v2.1.1 · 2026-05-06

2.1.1 - 2026-05-06 · Miscellaneous Tasks · streamline release publishing - (0402700) - @cr7258 · Release · update version to 2.1.1 - (17518ab) - @github-actions[bot]

04 · Who maintains Elasticsearch MCP Server

elasticsearch-mcp-server is maintained by cr7258. It's the only MCP server we track from this author; the repo dates to Jan 2025.

05 · Facts

category
other - ranked #18 of 848 actively-maintained other servers as of 2026-08-25.
release cadence
1 release in the last 90 days (latest 2026-08-16)
registry
io.github.cr7258/elasticsearch-mcp-server (active, first published 2025-09-11 · 3 versions)
packages
pypi:elasticsearch-mcp-server

06 · Elasticsearch MCP Server FAQ

What is Elasticsearch MCP Server?

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction. This server enables searching documents, analyzing indices, and managing cluster through a set of tools. It runs locally over stdio via the published package.

Is Elasticsearch MCP Server still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-16 and it shipped 1 release in the last 90 days. We re-verify nightly.

How do I install Elasticsearch MCP Server?

Run `uvx elasticsearch-mcp-server`. The README documents 12 environment variables (ELASTICSEARCH_CLUSTERS, ELASTICSEARCH_CLUSTERS_FILE, DEFAULT_CLUSTER…) to set first. Set ELASTICSEARCH_CLUSTERS, ELASTICSEARCH_CLUSTERS_FILE, ELASTICSEARCH_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_API_KEY, OPENSEARCH_USERNAME, OPENSEARCH_PASSWORD, MCP_API_KEY before connecting. DEFAULT_CLUSTER, ELASTICSEARCH_HOSTS, OPENSEARCH_HOSTS, DISABLE_HIGH_RISK_OPERATIONS are optional or environment-specific per the README. You can also paste the ready-made client config above.

Does Elasticsearch MCP Server run locally?

Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Elasticsearch MCP Server