← Index

Elasticsearch

io.github.TocharianOU/elasticsearch·v0.7.2·Search
Quality Score
86
/100

Elasticsearch MCP Server with multi-version support (ES 5.x-9.x) and comprehensive API access

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "<es_url>",
        "ES_API_KEY": "<your-es_api_key>",
        "ES_USERNAME": "<es_username>",
        "ES_PASSWORD": "<your-es_password>",
        "ES_CA_CERT": "<es_ca_cert>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "1",
        "MAX_TOKEN_CALL": "20000",
        "MCP_TRANSPORT": "http",
        "MCP_HTTP_PORT": "3000",
        "MCP_HTTP_HOST": "localhost"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "<es_url>",
        "ES_API_KEY": "<your-es_api_key>",
        "ES_USERNAME": "<es_username>",
        "ES_PASSWORD": "<your-es_password>",
        "ES_CA_CERT": "<es_ca_cert>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "1",
        "MAX_TOKEN_CALL": "20000",
        "MCP_TRANSPORT": "http",
        "MCP_HTTP_PORT": "3000",
        "MCP_HTTP_HOST": "localhost"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @tocharianou/elasticsearch-mcp
§02  Environment variables
ES_URL
required

Your Elasticsearch instance URL (e.g., https://localhost:9200)

ES_API_KEY
secret

Elasticsearch API key for authentication

ES_USERNAME

Elasticsearch username for basic authentication

ES_PASSWORD
secret

Elasticsearch password for basic authentication

ES_CA_CERT

Path to custom CA certificate for Elasticsearch SSL/TLS

NODE_TLS_REJECT_UNAUTHORIZED

Set to '0' to disable SSL certificate validation (development only)

MAX_TOKEN_CALL

Maximum tokens per API call

MCP_TRANSPORT
required

Transport mode selection

MCP_HTTP_PORT

HTTP server port (when using HTTP transport)

MCP_HTTP_HOST

HTTP server host (when using HTTP transport)

ES_URL
required

Your Elasticsearch instance URL (e.g., https://localhost:9200)

ES_API_KEY
secret

Elasticsearch API key for authentication

ES_USERNAME

Elasticsearch username for basic authentication

ES_PASSWORD
secret

Elasticsearch password for basic authentication

ES_CA_CERT

Path to custom CA certificate for Elasticsearch SSL/TLS

NODE_TLS_REJECT_UNAUTHORIZED

Set to '0' to disable SSL certificate validation (development only)

MAX_TOKEN_CALL

Maximum tokens per API call

§03  MCP Quality Score  ·  methodology
freshness
21
completeness
20
installability
25
documentation
15
stability
5
§04  Alternatives in Search