Skip to content
Grok

Elasticsearch for Grok

io.github.tocharianou/elasticsearch

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

client:Grok transport:stdio runtime:npm

Install Elasticsearch in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "elasticsearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "<ES_URL>",
        "ES_API_KEY": "<ES_API_KEY>",
        "ES_USERNAME": "<ES_USERNAME>",
        "ES_PASSWORD": "<ES_PASSWORD>",
        "ES_CA_CERT": "<ES_CA_CERT>",
        "NODE_TLS_REJECT_UNAUTHORIZED": "<NODE_TLS_REJECT_UNAUTHORIZED>",
        "MAX_TOKEN_CALL": "<MAX_TOKEN_CALL>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Elasticsearch in other clients