Skip to main content
Glama

mcp-kafka

CI License: MIT

Apache Kafka 向けの Model Context Protocol サーバーです。MCP 対応クライアント(Claude Desktop、Claude Code など)が Kafka クラスターを監視・管理できるようにします。対象はトピック、パーティション、設定、コンシューマーグループ(ラグを含む)です。動作はすべてフラグによって制御されます。

デフォルトで安全です。読み取り専用で起動し、トピックの許可リスト(allowlist)にスコープを制限でき、内部/重要なトピックを変更から保護し、破壊的な操作は明示的なオプトインを必須とします。

機能

  • モニタリング — クラスター/ブローカー情報、トピックメタデータとオフセット、コンシューマーグループ、および、パーティションごと+合計のコンシューマーラグ

  • 管理 — トピックの作成、パーティションの追加、トピック設定の変更、グループオフセットのリセット、トピック/グループの削除(admin)。

  • アクセスモードread-onlyread-writeadmin。モードが自分のレベルより上のツールを公開しないように階層化されています。

  • セキュリティフラグ — トピックの許可リスト、保護/内部トピック、削除のゲート制御、ドライラン、JSON 監査ログ(下記参照)。

  • 認証 — 平文、TLS、SASL(PLAIN / SCRAM-SHA-256 / SCRAM-SHA-512)。

Related MCP server: Kafka MCP Server

セキュリティモデル

対象

フラグ

デフォルト

効果

サーバーに何ができるか?

KAFKA_MODE

read-only

read-only は監視のみを公開し、read-write は管理を追加し、admin は削除を追加します。モードの上位にあるツールは決して登録されません

どのトピックが対象か?

KAFKA_TOPIC_ALLOWLIST

(すべて)

設定すると、他のトピックへの操作は拒否されます。

内部トピックの保護

KAFKA_PROTECT_INTERNAL_TOPICS

true

_ で始まるトピックは読み取りはできますが、変更は一切できません。

特定トピックの保護

KAFKA_PROTECTED_TOPICS

(なし)

恒久的に読み取り専用となる追加のトピックです。

削除できるか?

KAFKA_ALLOW_DELETE

false

delete_topic / delete_consumer_group には、これ admin モードが必要です。

クラスに触らずにプレビュー

KAFKA_DRY_RUN

false

書き込み/管理ツールは意図を検証してログに記録した後、そのまま完了します。

監査証跡

KAFKA_AUDIT_LOG

true

保護された操作のたびに 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 build

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": "…"
      }
    }
  }
}

プロンプトの例

  • "現在、どのコンシューマーグループが最もラグが大きいですか?"

  • "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

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    D
    maintenance
    An 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
  • A
    license
    B
    quality
    C
    maintenance
    MCP server for Apache Kafka that allows LLM agents to inspect topics, consumer groups, and safely manage offsets (reset, rewind).
    16
    12
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Kafka clusters via MCP, supporting topic management (list, create, delete, inspect), connection initialization, and more through natural language.
    1
    Apache 2.0

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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