cluster_info
Cluster info
Describe the Kafka cluster: brokers, controller, and cluster id.
無需輸入參數。

io.github.dockndevai由 GitHub 帳號 dockndevai 發布v0.3.3更新於 Oct 28, 2026
Apache Kafka monitoring & management for AI agents (with consumer lag) — governed.
針對 Apache Kafka 的在地 MCP 伺服器,讓助理檢視叢集、主題、位移與消費延遲,並可選擇執行受控管的寫入與管理操作。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
A Model Context Protocol server for Apache Kafka. It lets an MCP-capable client (Claude Desktop, Claude Code, etc.) monitor and manage Kafka clusters — topics, partitions, configs, and consumer groups (including lag) — with behaviour controlled entirely by flags.
Safe by default: it starts read-only, can be scoped to an allowlist of topics, protects internal/critical topics from mutation, and gates destructive operations behind an explicit opt-in.
read-only → read-write → admin, layered so a mode never exposes tools above its level.Read (read-only+): cluster_info, list_topics, describe_topic, topic_offsets, list_consumer_groups, describe_consumer_group (with lag)
Write (read-write+): create_topic, create_partitions, alter_topic_config, reset_consumer_group_offsets
Admin (admin): delete_topic, delete_consumer_group (both need KAFKA_ALLOW_DELETE)
Published on npm as @dockndevai/mcp-kafka. No clone or build needed — your MCP client runs it on demand with npx. Start in read-only mode; see .env.example for every variable and docs/CLIENTS.md for the full per-client guide.
Claude Code (CLI)
Claude Desktop · Cursor · Windsurf — same block in claude_desktop_config.json, .cursor/mcp.json, or ~/.codeium/windsurf/mcp_config.json:
OpenAI Codex CLI — in ~/.codex/config.toml:
VS Code (GitHub Copilot, Agent mode) — in .vscode/mcp.json:
orders topic and show its offsets."events with 6 partitions and 7-day retention." (needs read-write)Prefer the published package above. To run from a clone:
This server ships a server.json for the official MCP registry and an mcpName for npm ownership validation. See PUBLISHING.md for publishing to npm and listing on the MCP registry, Smithery, Glama, Cursor, and PulseMCP.
MIT
來源:README.md,提交 4996b18
Cluster info
Describe the Kafka cluster: brokers, controller, and cluster id.
無需輸入參數。
List topics
List topic names. Topics outside the allowlist are filtered out.
includeInternalDescribe topic
Partitions, replicas, in-sync replicas, and non-default configs for a topic.
topic必填Topic offsets
Earliest and latest offsets per partition for a topic (message backlog view).
topic必填List consumer groups
List consumer groups and their protocol types.
無需輸入參數。
Describe consumer group (with lag)
Describe a consumer group's state and compute per-partition and total lag across its topics.
groupId必填已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
claude mcp add kafka -e KAFKA_BROKERS="localhost:9092" -e KAFKA_MODE="read-only" -- npx -y @dockndevai/mcp-kafka{ "mcpServers": { "kafka": { "command": "npx", "args": [ "-y", "@dockndevai/mcp-kafka" ], "env": { "KAFKA_BROKERS": "localhost:9092", "KAFKA_MODE": "read-only" } } }}[mcp_servers.kafka]command = "npx"args = ["-y", "@dockndevai/mcp-kafka"]env = { KAFKA_BROKERS = "localhost:9092", KAFKA_MODE = "read-only" }{ "servers": { "kafka": { "type": "stdio", "command": "npx", "args": [ "-y", "@dockndevai/mcp-kafka" ], "env": { "KAFKA_BROKERS": "localhost:9092", "KAFKA_MODE": "read-only" } } }}npm installnpm run buildnode dist/index.js # with the environment variables setnpm run devnpm testnpm run typecheck