mcp-kafka

v0.3.3
io.github.dockndevai/mcp-kafka Checked 2 hours ago Published 1 month ago

Apache Kafka monitoring & management for AI agents (with consumer lag) — governed.

Values you need

VariableWhat it is
KAFKA_BROKERSrequired Comma-separated broker list (host:port).
KAFKA_MODEoptional Access mode: read-only | read-write | admin.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-kafka -e 'KAFKA_BROKERS=<KAFKA_BROKERS>' -- npx -y @dockndevai/mcp-kafka@0.3.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-kafka": {
      "args": [
        "-y",
        "@dockndevai/mcp-kafka@0.3.3"
      ],
      "command": "npx",
      "env": {
        "KAFKA_BROKERS": "<KAFKA_BROKERS>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-kafka": {
      "args": [
        "-y",
        "@dockndevai/mcp-kafka@0.3.3"
      ],
      "command": "npx",
      "env": {
        "KAFKA_BROKERS": "<KAFKA_BROKERS>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "KAFKA_BROKERS",
      "id": "kafka-brokers",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-kafka": {
      "args": [
        "-y",
        "@dockndevai/mcp-kafka@0.3.3"
      ],
      "command": "npx",
      "env": {
        "KAFKA_BROKERS": "${input:kafka-brokers}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-kafka]
command = "npx"
args = ["-y", "@dockndevai/mcp-kafka@0.3.3"]
env = { "KAFKA_BROKERS" = "<KAFKA_BROKERS>" }

For AI agents

  1. Ask the user for: KAFKA_BROKERS. 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: cluster_info, list_topics, describe_topic, topic_offsets, list_consumer_groups, describe_consumer_group.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json