
kanapuli/mcp-kafka
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
kanapuli/mcp-kafka は [https://github.com/kanapuli/mcp-kafka.] からインポートされた MCP サーバー候補です
概要
kanapuli/mcp-kafka は [https://github.com/kanapuli/mcp-kafka.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
AIアシスタントからKafkaクライアント操作を実行するモデルコンテキストプロトコル(MCP)サーバー。
概要
mcp-kafka は、AI アシスタントと Apache Kafka の間のブリッジを提供し、モデルコンテキストプロトコルを介してカフカクラスターと対話することができます。 このツールは、AIアシスタントがKafkaのトピックやメッセージを直接作成、管理、やり取りできるようにします。
ここでは、youtubeの短いビデオデモです
##特徴
mcp-kafka サーバは、以下の Kafka 操作を提供します。
-Create Topic:構成可能なパーティションとレプリケーション要因で新しいKafkaトピックを作成します -リストトピック:クラスター内のすべての利用可能なカフカトピックのリストを取得する
- トピックを削除:既存のカフカトピックを削除します
- ** Topic**の記述: 仕切りの細部を含む特定のトピックについての詳細な情報を得て下さい -メッセージのキーとヘッダのサポートでKafkaトピックにメッセージを送信 -Consume Messages: 設定可能なタイムアウトでカフカのトピックからメッセージを読む
インストール
前提条件
- 1.24以上
- 実行中のKafkaクラスター(デフォルト接続:localhost:9092)
ソースから###ビル
-
リポジトリのクローン化:
-
適用を造ります:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-kafka
A Model Context Protocol (MCP) server for performing Kafka client operations from AI assistants.
Overview
mcp-kafka provides a bridge between AI assistants and Apache Kafka, allowing them to interact with Kafka clusters through the Model Context Protocol. This tool enables AI assistants to create, manage, and interact with Kafka topics and messages directly.
Here is a short video demo on youtube
Features
The mcp-kafka server provides the following Kafka operations:
- Create Topic: Create a new Kafka topic with configurable partitions and replication factor
- List Topics: Get a list of all available Kafka topics in the cluster
- Delete Topic: Remove an existing Kafka topic
- Describe Topic: Get detailed information about a specific topic, including partition details
- Produce Message: Send messages to a Kafka topic with support for message keys and headers
- Consume Messages: Read messages from a Kafka topic with configurable timeout
Installation
Prerequisites
- Go 1.24 or higher
- A running Kafka cluster (default connection: localhost:9092)
Building from Source
-
Clone the repository:
git clone https://github.com/kanapuli/mcp-kafka.git cd mcp-kafka -
Build the application:
make build -
Optionally, build for a specific platform:
make build GOOS=darwin GOARCH=arm64
Installing as a Claude Desktop Tool
To use mcp-kafka with Claude Desktop:
-
Build the application as mentioned above.
-
Place the executable in a location included in your system PATH or in a dedicated tools directory.
-
Please follow this Claude Desktop Tool Installation Guide to install the tool.
The JSON to be added to the claude_desktop_config.json file is as follows, Use the right username and password for SASL login. Leave them empty for PLAINTEXT authentication.
{
"mcpServers": {
"kafka": {
"command": "/Your-mcp-kafka-executable-path/mcp-kafka-darwin-arm64",
"args": [
"--bootstrap-servers=localhost:9092",
"--consumer-group-id=mcp-kafka-consumer-group",
"--username=",
"--password="
],
"env": {}
}
}
}
Configuration
The mcp-kafka tool accepts the following configuration parameters:
| Parameter | Description | Default |
|---|---|---|
| topic | Topic to interact with | (required) |
| num_partitions | Number of partitions for topic creation | (optional) |
| replication_factor | Replication factor for topic creation | (optional) |
| produce_message_key | Key for produced messages | (optional) |
| produce_message_value | Value for produced messages | (optional) |
| produce_message_headers | Headers for produced messages | (optional) |
| consumer_timeout | Timeout in seconds for message consumption | 10 |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"kafka": {
"command": "/Your-mcp-kafka-executable-path/mcp-kafka-darwin-arm64",
"args": [
"--bootstrap-servers=localhost:9092",
"--consumer-group-id=mcp-kafka-consumer-group",
"--username=",
"--password="
],
"env": {}
}
}
}