TC
ToolCompared
MCP Server

Elasticsearch MCP Server

by Elastic

Connect Elasticsearch indices to any MCP client.

deprecated. Deprecated by Elastic and only receiving critical security updates; superseded by the Elastic Agent Builder MCP endpoint.
OfficialTypeScriptDatabases

About Elasticsearch

Connects agents to Elasticsearch data via MCP, allowing interaction with Elasticsearch indices through natural language. Users can ask questions about their data, list indices, inspect field mappings, and execute Elasticsearch queries using full Query DSL capabilities.

Tags

searchelasticsearchindexingquery-dsl

How to install Elasticsearch

Package
docker.elastic.co/mcp/elasticsearch (docker)
Transport
Local (stdio), Remote (Streamable HTTP)

Client configuration

{
  "mcpServers": {
    "elasticsearch": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ES_URL",
        "-e",
        "ES_API_KEY",
        "docker.elastic.co/mcp/elasticsearch",
        "stdio"
      ],
      "env": {
        "ES_URL": "<elasticsearch-cluster-url>",
        "ES_API_KEY": "<elasticsearch-API-key>"
      }
    }
  }
}

Copied from the official README — . Replace placeholder keys with your own credentials.

Client setup documented by the maintainer

ClientSetup steps in README
Claude DesktopYes
Claude CodeNot documented
CursorNot documented
VS CodeNot documented
WindsurfNot documented

“Not documented” means the README has no client-specific steps — most MCP clients can still run a local stdio server from the configuration above.

Related MCP servers in Databases