mcp-kafka
mcp-kafka
Apache Kafka 向けの Model Context Protocol サーバーです。MCP 対応クライアント(Claude Desktop、Claude Code など)が Kafka クラスターを監視・管理できるようにします。対象はトピック、パーティション、設定、コンシューマーグループ(ラグを含む)です。動作はすべてフラグによって制御されます。
デフォルトで安全です。読み取り専用で起動し、トピックの許可リスト(allowlist)にスコープを制限でき、内部/重要なトピックを変更から保護し、破壊的な操作は明示的なオプトインを必須とします。
機能
モニタリング — クラスター/ブローカー情報、トピックメタデータとオフセット、コンシューマーグループ、および、パーティションごと+合計のコンシューマーラグ。
管理 — トピックの作成、パーティションの追加、トピック設定の変更、グループオフセットのリセット、トピック/グループの削除(admin)。
アクセスモード —
read-only→read-write→admin。モードが自分のレベルより上のツールを公開しないように階層化されています。セキュリティフラグ — トピックの許可リスト、保護/内部トピック、削除のゲート制御、ドライラン、JSON 監査ログ(下記参照)。
認証 — 平文、TLS、SASL(PLAIN / SCRAM-SHA-256 / SCRAM-SHA-512)。
Related MCP server: Kafka MCP Server
セキュリティモデル
対象 | フラグ | デフォルト | 効果 |
サーバーに何ができるか? |
|
|
|
どのトピックが対象か? |
| (すべて) | 設定すると、他のトピックへの操作は拒否されます。 |
内部トピックの保護 |
|
|
|
特定トピックの保護 |
| (なし) | 恒久的に読み取り専用となる追加のトピックです。 |
削除できるか? |
|
|
|
クラスに触らずにプレビュー |
|
| 書き込み/管理ツールは意図を検証してログに記録した後、そのまま完了します。 |
監査証跡 |
|
| 保護された操作のたびに JSON の 1 行を stderr に出力します。 |
ツール
読み取り(read-only+):cluster_info, list_topics, describe_topic, topic_offsets, list_consumer_groups, describe_consumer_group(ラグ表示あり)
書き込み(read-write+):create_topic, create_partitions, alter_topic_config, reset_consumer_group_offsets
管理(admin):delete_topic, delete_consumer_group(どちらも KAFKA_ALLOW_DELETE が必要)
MCP クライアントでの利用
Claude Code、Claude Desktop、Cursor、OpenAI Codex CLI、Windsurf、VS Code (Copilot)、および他の MCP クライアントで動作します。クライアントごとのセットアップは docs/CLIENTS.md を参照してください。
インストール
npm install
npm run buildClaude 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": "…"
}
}
}
}プロンプトの例
"現在、どのコンシューマーグループが最もラグが大きいですか?"
"
ordersトピックを説明し、そのオフセットを表示してください。""
eventsトピックを、パーティション 6 つ、保存期間 7 日で作成してください。"(read-writeが必要)
開発
npm run dev
npm test
npm run typecheck公開
このサーバーには、公式 MCP レジストリ用の server.json と、npm の所有権検証用の mcpName が同梱されています。npm への公開および MCP レジストリ、Smithery、Glama、Cursor、PulseMCP への掲載については、PUBLISHING.md を参照してください。
ライセンス
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