Elasticsearch MCP 服务器

基于 Model Context Protocol (MCP) 的 Elasticsearch 工具服务器,提供索引查询、映射获取、搜索等功能。

Local serverstdio

What is the Elasticsearch MCP 服务器 MCP Server?

Elasticsearch MCP 服务器 is an MCP project maintained in the macgaf/es_mcp_server repository. The maintainer describes its purpose as “基于 Model Context Protocol (MCP) 的 Elasticsearch 工具服务器,提供索引查询、映射获取、搜索等功能。”. Read the project documentation for the complete scope.

Installation

The documented pypi package is es-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares ES_HOST, ES_PORT, ES_VERSION. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Elasticsearch MCP 服务器 MCP Server

{
  "mcpServers": {
    "elasticsearch-mcp-server": {
      "command": "uvx",
      "args": [
        "es-mcp-server"
      ],
      "env": {
        "ES_HOST": "your-es-host",
        "ES_PORT": "9200",
        "ES_VERSION": "8"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
ES_HOSTDeclared in the maintainer’s client configuration.Check documentation
ES_PORTDeclared in the maintainer’s client configuration.Check documentation
ES_VERSIONDeclared in the maintainer’s client configuration.Check documentation