MCP Catalogs
Home

mcp-server-elasticsearch

by elastic·662·Score 49

Deprecated Elasticsearch MCP server for AI agents to query and analyze data.

databasesearchai-llm
141
Forks
15
Open issues
this month
Last commit
2d ago
Indexed

Overview

The Elasticsearch MCP Server connects AI agents to Elasticsearch data using the Model Context Protocol. It enables natural language interactions with Elasticsearch indices, allowing agents to query, analyze, and retrieve data without custom APIs. The server provides tools like list_indices, get_mappings, search, esql, and get_shards to interact with Elasticsearch data through natural language conversations.

Try asking AI

After installing, here are 4 things you can ask your AI assistant:

you:AI agents querying Elasticsearch data using natural language
you:Analysts extracting insights from Elasticsearch indices through AI assistants
you:Building custom AI applications that interact with Elasticsearch data
you:Is this MCP server still maintained?

When to choose this

Only for legacy systems using older Elastic versions before 9.2.0 that cannot upgrade to Elastic Agent Builder.

When NOT to choose this

Should not be chosen as it's deprecated - Elastic recommends using Agent Builder for new implementations.

Tools this server exposes

5 tools extracted from the README
  • list_indices

    List all available Elasticsearch indices

  • get_mappings

    Get field mappings for a specific Elasticsearch index

  • search

    Perform an Elasticsearch search using query DSL

  • esql

    Execute an ES|QL query

  • get_shards

    Get shard information for all or specific indices

Comparable tools

elastic-agent-buildersearch-mcpelasticsearch

Installation

Installation

The Elasticsearch MCP Server is provided as a Docker container image available from AWS Marketplace.

stdio protocol

docker run -i --rm \
  -e ES_URL \
  -e ES_API_KEY \
  docker.elastic.co/mcp/elasticsearch \
  stdio

Claude Desktop configuration (stdio)

{
  "mcpServers": {
    "elasticsearch-mcp-server": {
      "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>"
      }
    }
  }
}

FAQ

Is this MCP server still maintained?
No, this MCP server is deprecated and will only receive critical security updates. It has been superseded by the Elastic Agent Builder MCP endpoint available in Elastic 9.2.0+ and Elasticsearch Serverless projects.
What protocols does this MCP server support?
The server supports stdio (for direct client connections) and streamable-HTTP (for web-based integrations, stateful sessions, and concurrent clients). Server-Sent Events (SSE) is deprecated.

On Hacker News

Recent discussion from the developer community.

Compare mcp-server-elasticsearch with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.