druid-mcp-server

v2.0.3
com.iunera/druid-mcp-server Checked 19 hours ago Published 12 days ago

AI-powered MCP server for Apache Druid cluster management and analytic

Values you need

VariableWhat it is
DRUID_ROUTER_URLrequired Druid router URL for connecting to the Druid cluster
DRUID_COORDINATOR_URLoptional Druid coordinator URL for querying metadata endpoints (optional)
DRUID_AUTH_USERNAMEoptional Username for Druid authentication (optional)
DRUID_AUTH_PASSWORDoptional secret Password for Druid authentication (optional)
DRUID_SSL_ENABLEDoptional Enable SSL/TLS support for Druid connections
DRUID_SSL_SKIP_VERIFICATIONoptional Skip SSL certificate verification (for development/testing only)

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add druid-mcp-server -e 'DRUID_ROUTER_URL=<DRUID_ROUTER_URL>' -- docker run -i --rm -e DRUID_ROUTER_URL docker.io/iunera/druid-mcp-server:2.0.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "druid-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DRUID_ROUTER_URL",
        "docker.io/iunera/druid-mcp-server:2.0.3"
      ],
      "command": "docker",
      "env": {
        "DRUID_ROUTER_URL": "<DRUID_ROUTER_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "druid-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DRUID_ROUTER_URL",
        "docker.io/iunera/druid-mcp-server:2.0.3"
      ],
      "command": "docker",
      "env": {
        "DRUID_ROUTER_URL": "<DRUID_ROUTER_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DRUID_ROUTER_URL",
      "id": "druid-router-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "druid-mcp-server": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DRUID_ROUTER_URL",
        "docker.io/iunera/druid-mcp-server:2.0.3"
      ],
      "command": "docker",
      "env": {
        "DRUID_ROUTER_URL": "${input:druid-router-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.druid-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "-e", "DRUID_ROUTER_URL", "docker.io/iunera/druid-mcp-server:2.0.3"]
env = { "DRUID_ROUTER_URL" = "<DRUID_ROUTER_URL>" }

For AI agents

  1. Ask the user for: DRUID_ROUTER_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: getCompactionConfig, getCompactionStatus, getDatasources, getLookups, queryDruidSql, getRetentionRules, getSegmentLoadQueue, getSegments, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json