mcp-kafka
mcp-kafka
Ein Model Context Protocol-Server für Apache Kafka. Er ermöglicht einem MCP-fähigen Client (Claude Desktop, Claude Code, etc.) die Überwachung und Verwaltung von Kafka-Clustern – Topics, Partitionen, Konfigurationen und Consumer-Gruppen (einschließlich Lag) – wobei das Verhalten vollständig über Flags gesteuert wird.
Sicherer Standard: Er startet im Lesemodus, kann auf eine Topic-Allowlist eingeschränkt werden, schützt interne/kritische Topics vor Änderungen und stellt destruktive Operationen nur mit einer ausdrücklichen Zustimmung bereit.
Funktionen
Monitoring – Cluster-/Broker-Informationen, Topic-Metadaten und Offsets, Consumer-Groups sowie Consumer-Lag pro Partition + gesamt.
Verwaltung – Erstellen von Topics, Hinzufügen von Partitionen, Ändern von Topic-Konfigurationen, Zurücksetzen von Gruppen-Offsets; Löschen von Topics/Gruppen (Admin).
Zugriffsmodi –
read-only→read-write→admin, so geschichtet, dass ein Modus nie Tools oberhalb seiner Ebene bereitstellt.Sicherheits-Flags – Topic-Allowlist, geschützte/interne Topics, Lösch-Gating, Dry-Run und JSON-Audit-Logging (siehe unten).
Authentifizierung – Klartext, TLS und SASL (PLAIN / SCRAM-SHA-256 / SCRAM-SHA-512).
Related MCP server: Kafka MCP Server
Sicherheitsmodell
Bereich | Flag | Standard | Wirkung |
Was kann der Server tun? |
|
|
|
Welche Topics sind im Fokus? |
| (alle) | Bei gesetztem Wert werden Operationen auf anderen Topics verweigert. |
Interne / critical Topics schützen |
|
| Topics, die mit |
Bestimmte Topics schützen |
| (keine) | Zusätzliche dauerhaft schreibgeschützte Topics. |
Löschen erlaubt? |
|
|
|
Vorschau ohne Cluster-Kontakt |
|
| Schreib-/Admin-Tools validieren und protokollieren die Absicht und kehren dann zurück. |
Audit-Datenablage |
|
| Gibt bei jedem geschützten Vorgang eine JSON-Zeile nach stderr aus. |
Werkzeuge
Lesen (read-only+): cluster_info, list_topics, describe_topic, topic_offsets, list_consumer_groups, describe_consumer_group (mit Lag)
Schreiben (read-write+): create_topic, create_partitions, alter_topic_config, reset_consumer_group_offsets
Admin (admin): delete_topic, delete_consumer_group (beide benötigen KAFKA_ALLOW_DELETE)
Verwendung mit Ihrem MCP-Client
Funktioniert mit Claude Code, Claude Desktop, Cursor, OpenAI Codex CLI, Windsurf, VS Code (Copilot) und jedem anderen MCP-Client – siehe docs/CLIENTS.md für clientspezifische Einrichtung.
Install
npm install
npm run buildAusführen mit Claude Desktop / Claude Code
{
"mcpServers": {
"kafka": {
"command": "node",
"args": ["/absolute/path/to/mcp-kafka/dist/index.js"],
"env": {
"KAFKA_BROKERS": "broker1:9092,broker2:9092",
"KAFKA_MODE": "read-only",
"KAFKA_SSL": "true",
"KAFKA_SASL_MECHANISM": "scram-sha-512",
"KAFKA_SASL_USERNAME": "mcp",
"KAFKA_SASL_PASSWORD": "…"
}
}
}
}Beispiel-Prompts
"Welche Consumer-Groups haben derzeit den größten Lag?"
"Beschreibe das Topic
ordersund zeige seine Offsets."„Erstelle ein Topic
eventsmit 6 Partitionen und 7-tägiger Aufbewahrung.“ (benötigtread-write)
Entwickeln
npm run dev
npm test
npm run typecheckVeröffentlichung
Dieser Server entählt eine server.json für die offizielle MCP-Registry und einen mcpName zur Bestätigung der npm-Inhaberschaft. Siehe PUBLISHING.md für die Veröffentlichung auf npm und die Auflistung in der MCP-Registry, Smithery, Glama, Cursor und PulseMCP.
Lizenz
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseBqualityAmaintenanceAn MCP server implementation built to interact with Confluent Kafka and Confluent Cloud REST APIs.24465166MIT- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables interaction with Kafka clusters to manage topics, monitor consumer groups, and stream messages. It provides a comprehensive suite of tools for broker metadata inspection and local Kafka user management.MIT
- AlicenseBqualityCmaintenanceMCP server for Apache Kafka that allows LLM agents to inspect topics, consumer groups, and safely manage offsets (reset, rewind).1612Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Kafka clusters via MCP, supporting topic management (list, create, delete, inspect), connection initialization, and more through natural language.1Apache 2.0
Related MCP Connectors
Managed Keycloak from any MCP client: clusters, realms, apps, SSO, users, domains, audit events.
Remote MCP for A2A caller identity, scope policy, verdict receipts, and audit history.
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dockndevai/mcp-kafka'
If you have feedback or need assistance with the MCP directory API, please join our Discord server