Apache Kafka monitoring & management for AI agents (with consumer lag) β governed.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.| Concern | Flag | Default | Effect |
|---|---|---|---|
| What can the server do? | KAFKA_MODE | read-only | read-only exposes only monitoring; read-write adds management; admin adds deletes. Tools above the mode are never registered. |
| Which topics are in scope? | KAFKA_TOPIC_ALLOWLIST | (all) | When set, operations on other topics are refused. |
| Protect internal topics | KAFKA_PROTECT_INTERNAL_TOPICS | true | Topics starting with _ can be read but never mutated. |
| Protect specific topics | KAFKA_PROTECTED_TOPICS | (none) | Additional read-only-forever topics. |
| Can it delete? | KAFKA_ALLOW_DELETE | false | delete_topic / delete_consumer_group need this and admin mode. |
| Preview without touching the cluster | KAFKA_DRY_RUN | false | Write/admin tools validate + log intent, then return. |
| Audit trail | KAFKA_AUDIT_LOG | true | Emits a JSON line to stderr per guarded operation. |
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
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-kafka)<a href="https://allmcps.com/mcp/mcp-kafka"><img src="https://allmcps.com/api/badge/mcp-kafka?style=directory" alt="MCP Kafka on AllMCPs" /></a>