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