KM

kanapuli/mcp-kafka

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

81 stars 3 forks 품질 59 트렌드 14MIT

kanapuli/mcp-kafka는 https://github.com/kanapuli/mcp-kafka.에서 수입된 MCP 서버 후보입니다

개요

kanapuli/mcp-kafka는 https://github.com/kanapuli/mcp-kafka.에서 수입된 MCP 서버 후보입니다

개요(AI 번역)

AI 조수에서 Kafka 클라이언트 작업을 수행하는 모델 Context Protocol (MCP) 서버.

개요

mcp-kafka는 AI 조수와 Apache Kafka 사이의 브리지를 제공하여 모델 Context 프로토콜을 통해 Kafka 클러스터와 상호 작용할 수 있습니다. 이 도구는 AI Assistants를 사용하여 Kafka 주제 및 메시지와 상호 작용합니다.

YouTube에서 짧은 비디오 데모입니다.

특징

mcp-kafka 서버는 다음과 같은 Kafka 작업을 제공합니다.

  • Create Topic: 설정 가능한 파티션과 복제 인자로 새로운 Kafka 주제 생성 -List Topics: 클러스터의 모든 사용 가능한 Kafka 주제의 목록을 가져옵니다. -Delete Topic: 기존 Kafka 주제 제거
  • Describe Topic: 파티션 세부 정보를 포함한 특정 항목에 대한 자세한 정보를 얻으십시오. -Produce Message: 메시지 키와 헤더를 지원하는 Kafka 주제로 메시지 보내기 -Consume Messages: configurable timeout과 Kafka 주제에서 메시지 읽기

설치

# 필수품

  • 1.24 이상으로 이동
  • Kafka 클러스터 실행 (기본 연결: localhost:9092)

소스에서 건물

  1. 저장소를 복제:

  2. 신청:

  3. 명세.

이 페이지는 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

  1. Clone the repository:

    git clone https://github.com/kanapuli/mcp-kafka.git
    cd mcp-kafka
    
  2. Build the application:

    make build
    
  3. 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:

  1. Build the application as mentioned above.

  2. Place the executable in a location included in your system PATH or in a dedicated tools directory.

  3. 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
GitHub에서 전체 README 보기

설치

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