Kafka MCP
A natural language interface to manage Apache Kafka operations.
Kafka MCP
Overview
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:
- Publish message 'i am using kafka server' on the topic 'test-kafka'
- Consume the message from topic 'test-kafka'
- List all topics from the kafka environment
Features
- Natural Language Queries: Enables AI agents to query and update Redis using natural language.
- Seamless MCP Integration: Works with any MCP client for smooth communication.
- Full Kafka Support: Handles producer, consumer, topics, broker, partitions and offsets.
- Scalable & Lightweight: Designed for high-performance data operations.
Tools
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.
Configurations
set the following in .env file or export manually
BOOTSTRAP_SERVERS=your_kafka_server
MCP_TRANSPORT=stdio
Local Development
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"
}
}
}
}
Example prompts
- List all topics in the kafka cluster
- Create topic 'my-kafka' in kafka cluster
- Publish a message 'hello from mcp' to the topic 'my-kafka' in cluster
- Consume 2 messages from the topic 'my-kafka' in kafka cluster
- Describe the topic 'my-kafka'
Related Servers
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Buildkite
Integrate with the Buildkite API to search and manage CI/CD pipelines.
Terraform MCP Server
Integrates with Terraform Registry APIs for Infrastructure as Code development, supporting provider and module discovery.
Sentry
Official MCP server for Sentry.
Maven Tools
Access real-time Maven Central intelligence for fast and accurate dependency information.
Volatility3 MCP Server
Perform advanced memory forensics analysis using Volatility3 via a conversational interface. Requires user-specified memory dump files.
Make
Execute make targets from any Makefile in a safe and controlled environment.
Authless Remote MCP Server
An authentication-free, remote MCP server designed for deployment on Cloudflare Workers.
Autodev Codebase
A platform-agnostic code analysis library with semantic search capabilities and MCP server support.
Hetzner Cloud MCP Server — (Cloud API + SSH)
Hetzner Cloud MCP Server — two management layers (Cloud API + SSH) with 60 tools. Manage server power, snapshots, firewalls, DNS, plus SSH into servers for service control, log viewing, Nginx management, MySQL queries, and system monitoring. Self-hosted PHP, MIT licensed.
OpenAPI Invoker
Invokes any OpenAPI specification through a Model Context Protocol (MCP) server.