A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/shivamxtech/kafka-mcp below:

shivamxtech/kafka-mcp: The MCP Server for Kafka, designed to scale and manage kafka clusters and interact with any MCP Client.

The Kafka MCP Server offers efficient way to convert prompts into actions into Kafka ecosystem. It is a natural language interface designed for agentic applications to efficiently manage Kafka operations and integrate seamlessly with MCP Clients enabling AI driven workflows to interact with processes in Kafka. Using this MCP Server, you can ask questions like:

  1. Publish message 'i am using kafka server' on the topic 'test-kafka'
  2. Consume the message from topic 'test-kafka'
  3. List all topics from the kafka environment

This MCP Server offers various tools for Kafka:

consumer and producer tools allow to consumer and publish message on topics

topic tools allow to list, create, delete and describe topics in Kafka.

broker allows to get broker info.

partition tools allow to get partitions and partition offsets.

group_offset tools allow to get and reset offsets in Kafka.

set the following in .env file or export manually

BOOTSTRAP_SERVERS=your_kafka_server
MCP_TRANSPORT=stdio

Create a virtual environment

# Using venv (built-in)
python3 -m venv .venv

# Activate the virtual environment
# On Windows
.venv\Scripts\activate

# On macOS/Linux
source .venv/bin/activate

Install Dependencies

# Using pip
pip install -r requirements.txt

# Or using uv (faster)
uv pip install -r requirements.txt

Set Configurations in terminal/env

BOOTSTRAP_SERVERS=<your_kafka_url>
MCP_TRANSPORT=stdio

Run the application

python3 src/main.py

# OR

uv run python3 src/main.py

To interact with server,

Add the following configuration to your MCPO server's config.json file (e.g., in Claude Desktop):

{
  "mcpServers": {
    "kafka-mcp": {
      "command": "python3",
      "args": ["/Users/I528600/Desktop/mcp/kafka-mcp/src/main.py"],
      "env": {
        "BOOTSTRAP_SERVERS": "localhost:9092",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4