M

MCP Kafka

by dockndevai · io.github.dockndevai/mcp-kafka

Enables MCP-capable clients to monitor and manage Apache Kafka clusters, including topics, partitions, configs, and consumer groups with lag, while enforcing configurable security modes, topic allowlists, protected topics, and audit logging.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-dockndevai-mcp-kafka": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-kafka"
      ],
      "env": {
        "KAFKA_BROKERS": "<VALUE>",
        "KAFKA_MODE": "read-only",
        "KAFKA_SSL": "<VALUE>",
        "KAFKA_DRY_RUN": "false",
        "KAFKA_AUDIT_LOG": "true",
        "KAFKA_ALLOW_DELETE": "false",
        "KAFKA_SASL_PASSWORD": "<VALUE>",
        "KAFKA_SASL_USERNAME": "<VALUE>",
        "KAFKA_SASL_MECHANISM": "<VALUE>",
        "KAFKA_TOPIC_ALLOWLIST": "<VALUE>",
        "KAFKA_PROTECTED_TOPICS": "<VALUE>",
        "KAFKA_PROTECT_INTERNAL_TOPICS": "true"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-dockndevai-mcp-kafka": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-kafka"
      ],
      "env": {
        "KAFKA_BROKERS": "<VALUE>",
        "KAFKA_MODE": "read-only",
        "KAFKA_SSL": "<VALUE>",
        "KAFKA_DRY_RUN": "false",
        "KAFKA_AUDIT_LOG": "true",
        "KAFKA_ALLOW_DELETE": "false",
        "KAFKA_SASL_PASSWORD": "<VALUE>",
        "KAFKA_SASL_USERNAME": "<VALUE>",
        "KAFKA_SASL_MECHANISM": "<VALUE>",
        "KAFKA_TOPIC_ALLOWLIST": "<VALUE>",
        "KAFKA_PROTECTED_TOPICS": "<VALUE>",
        "KAFKA_PROTECT_INTERNAL_TOPICS": "true"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-dockndevai-mcp-kafka": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-kafka"
      ],
      "env": {
        "KAFKA_BROKERS": "<VALUE>",
        "KAFKA_MODE": "read-only",
        "KAFKA_SSL": "<VALUE>",
        "KAFKA_DRY_RUN": "false",
        "KAFKA_AUDIT_LOG": "true",
        "KAFKA_ALLOW_DELETE": "false",
        "KAFKA_SASL_PASSWORD": "<VALUE>",
        "KAFKA_SASL_USERNAME": "<VALUE>",
        "KAFKA_SASL_MECHANISM": "<VALUE>",
        "KAFKA_TOPIC_ALLOWLIST": "<VALUE>",
        "KAFKA_PROTECTED_TOPICS": "<VALUE>",
        "KAFKA_PROTECT_INTERNAL_TOPICS": "true"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-dockndevai-mcp-kafka": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-kafka"
      ],
      "env": {
        "KAFKA_BROKERS": "<VALUE>",
        "KAFKA_MODE": "read-only",
        "KAFKA_SSL": "<VALUE>",
        "KAFKA_DRY_RUN": "false",
        "KAFKA_AUDIT_LOG": "true",
        "KAFKA_ALLOW_DELETE": "false",
        "KAFKA_SASL_PASSWORD": "<VALUE>",
        "KAFKA_SASL_USERNAME": "<VALUE>",
        "KAFKA_SASL_MECHANISM": "<VALUE>",
        "KAFKA_TOPIC_ALLOWLIST": "<VALUE>",
        "KAFKA_PROTECTED_TOPICS": "<VALUE>",
        "KAFKA_PROTECT_INTERNAL_TOPICS": "true"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-dockndevai-mcp-kafka": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-kafka"
      ],
      "env": {
        "KAFKA_BROKERS": "<VALUE>",
        "KAFKA_MODE": "read-only",
        "KAFKA_SSL": "<VALUE>",
        "KAFKA_DRY_RUN": "false",
        "KAFKA_AUDIT_LOG": "true",
        "KAFKA_ALLOW_DELETE": "false",
        "KAFKA_SASL_PASSWORD": "<VALUE>",
        "KAFKA_SASL_USERNAME": "<VALUE>",
        "KAFKA_SASL_MECHANISM": "<VALUE>",
        "KAFKA_TOPIC_ALLOWLIST": "<VALUE>",
        "KAFKA_PROTECTED_TOPICS": "<VALUE>",
        "KAFKA_PROTECT_INTERNAL_TOPICS": "true"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-dockndevai-mcp-kafka": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-kafka"
      ],
      "env": {
        "KAFKA_BROKERS": "<VALUE>",
        "KAFKA_MODE": "read-only",
        "KAFKA_SSL": "<VALUE>",
        "KAFKA_DRY_RUN": "false",
        "KAFKA_AUDIT_LOG": "true",
        "KAFKA_ALLOW_DELETE": "false",
        "KAFKA_SASL_PASSWORD": "<VALUE>",
        "KAFKA_SASL_USERNAME": "<VALUE>",
        "KAFKA_SASL_MECHANISM": "<VALUE>",
        "KAFKA_TOPIC_ALLOWLIST": "<VALUE>",
        "KAFKA_PROTECTED_TOPICS": "<VALUE>",
        "KAFKA_PROTECT_INTERNAL_TOPICS": "true"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
KAFKA_BROKERS Yes Comma-separated list of Kafka broker addresses. Example: broker1:9092,broker2:9092
KAFKA_MODE No Access mode: read-only, read-write, or admin. Defaults to read-only. Default: read-only
KAFKA_SSL No Set to 'true' to enable TLS for the Kafka connection.
KAFKA_DRY_RUN No If 'true', write and admin tools validate + log intent without making cluster changes. Defaults to 'false'. Default: false
KAFKA_AUDIT_LOG No If 'true', emits a JSON audit log line to stderr per guarded operation. Defaults to 'true'. Default: true
KAFKA_ALLOW_DELETE No Set to 'true' to enable delete_topic and delete_consumer_group (requires admin mode). Defaults to 'false'. Default: false
KAFKA_SASL_PASSWORD No Password for SASL authentication.
KAFKA_SASL_USERNAME No Username for SASL authentication.
KAFKA_SASL_MECHANISM No SASL mechanism: PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
KAFKA_TOPIC_ALLOWLIST No Comma-separated list of allowed topics. When set, operations on other topics are refused.
KAFKA_PROTECTED_TOPICS No Comma-separated list of additional topics that are read-only forever.
KAFKA_PROTECT_INTERNAL_TOPICS No Set to 'false' to allow mutation of topics starting with an underscore. Defaults to 'true'. Default: true

Similar servers