Kafka Sentinel

v0.1.2
io.github.sanjay-amu/kafka-sentinel-mcp Checked 2 days ago Published 4 months ago

Read-only Kafka observability MCP server: cluster health, consumer lag, and replay-readiness.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
KAFKA_BOOTSTRAPrequired Kafka bootstrap servers, e.g. broker1:9092,broker2:9092
KAFKA_SECURITY_PROTOCOLoptional librdkafka security.protocol, e.g. SASL_SSL
KAFKA_SASL_MECHANISMoptional librdkafka sasl.mechanism, e.g. PLAIN or SCRAM-SHA-512
KAFKA_SASL_USERNAMEoptional SASL username
KAFKA_SASL_PASSWORDoptional secret SASL password
KAFKA_SSL_CA_LOCATIONoptional Path to CA certificate for SSL

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add kafka-sentinel-mcp -e 'KAFKA_BOOTSTRAP=<KAFKA_BOOTSTRAP>' -- uvx --with 'mcp<2' kafka-sentinel-mcp==0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kafka-sentinel-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "kafka-sentinel-mcp==0.1.2"
      ],
      "command": "uvx",
      "env": {
        "KAFKA_BOOTSTRAP": "<KAFKA_BOOTSTRAP>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kafka-sentinel-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "kafka-sentinel-mcp==0.1.2"
      ],
      "command": "uvx",
      "env": {
        "KAFKA_BOOTSTRAP": "<KAFKA_BOOTSTRAP>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "KAFKA_BOOTSTRAP",
      "id": "kafka-bootstrap",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "kafka-sentinel-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "kafka-sentinel-mcp==0.1.2"
      ],
      "command": "uvx",
      "env": {
        "KAFKA_BOOTSTRAP": "${input:kafka-bootstrap}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kafka-sentinel-mcp]
command = "uvx"
args = ["--with", "mcp<2", "kafka-sentinel-mcp==0.1.2"]
env = { "KAFKA_BOOTSTRAP" = "<KAFKA_BOOTSTRAP>" }

For AI agents

  1. Ask the user for: KAFKA_BOOTSTRAP. 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_health, consumer_lag, topic_audit, partition_state, replay_readiness, list_topics, list_consumer_groups, incident_snapshot.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json