Elasticsearch MCP Server

Elasticsearch MCP servers enable AI models to interact with Elasticsearch, providing capabilities for full-text search, analytics, aggregations, and distributed document operations.

{
  "mcpServers": {
    "elasticsearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-elasticsearch-server"
      ],
      "env": {
        "ES_NODE": "http://your_host:9200",
        "ES_USERNAME": "your_user",
        "ES_PASSWORD": "your_password",
        "ES_API_KEY": "your_api_key"
      }
    }
  }
}

Overview

The MCP Elasticsearch Server enables AI models to interact with Elasticsearch clusters, providing a standardized interface for working with this powerful search and analytics engine. Elasticsearch excels at full-text search, log analytics, and complex data aggregations, making it essential for AI applications requiring advanced search capabilities. 1

Prerequisites:

  • An Elasticsearch instance
  • Elasticsearch authentication credentials (API key or username/password)
  • MCP Client (e.g. Claude Desktop, VS code Copilot, Cursor)

Tools

Sources

Footnotes

  1. https://github.com/elastic/mcp-server-elasticsearch