Feedback

Kafka MCP Server — by pavanjava

@pavanjava Claim

Basic information

Runtime
python
Category
License
Apache-2.0
Transports
stdio
Author
pavanjava
Submitted by
Community
Quality
40
Stars
17

About Kafka MCP Server

[![Verified on MseeP](https://mseep.ai/badge.svg)](https://mseep.ai/app/f159a924-db1c-42f8-825b-b8a1795c1437)

Kafka MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by pavanjava. Supported transport: stdio. Runtime: python. License: Apache-2.0. The repository has 17 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "kafka_mcp_server": {
            "command": "python",
            "args": [
                "-m",
                "venv",
                "venv"
            ]
        }
    }
}

Kafka MCP Server — by pavanjava config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "kafka_mcp_server": {
            "command": "python",
            "args": [
                "-m",
                "venv",
                "venv"
            ]
        }
    }
}

Kafka MCP Server — by pavanjava tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Kafka MCP Server?

A Message Context Protocol (MCP) server that integrates with Apache Kafka to provide publish and consume functionalities for LLM and Agentic applications. It allows AI models to interact with Kafka topics through a standardized interface.

How to use Kafka MCP Server?

Set up Python 3.8+, an Apache Kafka instance, and install dependencies (aiokafka, python-dotenv, pydantic-settings, mcp-server). Create a .env file with Kafka configuration (bootstrap servers, topic name, etc.). Run the server via python main.py --transport stdio or --transport sse. Integrate with Claude Desktop by adding the server command to the MCP configuration JSON.

Key features of Kafka MCP Server

  • Publish messages to configured Kafka topics
  • Consume messages from Kafka topics
  • Create new Kafka topics with custom partitions and replication
  • Delete existing Kafka topics
  • List all topics or filter by pattern
  • Display or alter topic configurations
  • Retrieve topic metadata

Use cases of Kafka MCP Server

  • An AI agent publishing analysis results or alerts to a Kafka topic
  • An LLM consuming messages from a topic to generate summaries or responses
  • Programmatic topic lifecycle management (create, delete, list) via MCP tools
  • Modifying topic configuration (e.g., retention) without leaving the assistant interface
  • Inspecting cluster metadata to debug or monitor Kafka infrastructure

Frequently asked questions

1 What are the prerequisites for using Kafka MCP Server?

You need Python 3.8+, a running Apache Kafka instance, and the required Python packages (aiokafka, python-dotenv, pydantic-settings, mcp-server).

2 How do I configure Kafka connection settings?

Create a .env file in the project root with variables like KAFKA_BOOTSTRAP_SERVERS (default localhost:9092), TOPIC_NAME, and optionally IS_TOPIC_READ_FROM_BEGINNING and DEFAULT_GROUP_ID_FOR_CONSUMER.

3 Can I customize the tool descriptions shown to the LLM?

Yes. You can set optional environment variables TOOL_PUBLISH_DESCRIPTION and TOOL_CONSUME_DESCRIPTION in the .env file to override the default descriptions.

4 What transport options are available for running the server?

The server supports stdio (standard input/output) as the default transport and sse (Server-Sent Events) as an alternative, specified via the --transport argument.

5 Can a consumed message be read again?

No. The README notes that once a message is read from the topic using the same consumer group ID, it cannot be read again.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬