mcp-kafka
An MCP server for Apache Kafka & its ecosystem.
Documentation
Overview
`mcp-kafka` is a server-side implementation of the **model context protocol (MCP) for Apache Kafka. It allows language models (LLM/SLM) to reliably interact with Kafka & its ecosystem, including Kafka Connect, Burrow, & Cruise Control**.
NOTE: This is a WIP, changes/potential errors are expected.
Features
The server supports capabilities based on the core Kafka APIs, excluding Streams (for now), along with the Burrow & Cruise Control REST APIs.
TODO
- [ ] Use `asyncio` and `aiohttp`.
- [ ] Set env config values in the data class.
- [ ] Finish admin/consumer/producer API support.
- [ ] Support Burrow API.
- [ ] Support CC API.
- [ ] Service + integration tests.
- [ ] Publish to PyPI (`uv pip install mcp-kafka`)
- [ ] Test Dockerfile & push to Dockerhub (`docker pull bkpowers/mcp-kafka`)
- [ ] Usage/config/deployment options + demo in README.
- [ ] Consider Strimzi/kcctl integrations.
- [ ] Prompts with auto-complete support for certain resources/tools.
MCP Capabilities
Tools
Kafka
- `consume`
- `produce`
- `describe_kafka_cluster`
- `describe_kafka_topics`
- `describe_kafka_consumer_groups`
- `describe_kafka_delegation_tokens`
- `describe_kafka_log_dirs`
- `describe_kafka_configs`
- `describe_kafka_acls`
Kafka Connect
- `get_kafka_connect_cluster_info`
- `get_kafka_connect_config`
- `get_kafka_connect_connectors`
- `get_kafka_connect_connector_plugins`
- `get_kafka_connect_loggers`
Burrow
- `burrow_healthcheck`
- `burrow_list_clusters`
- `burrow_describe_cluster`
- `burrow_list_consumers_with_group_detail`
- `burrow_list_topics`
- `burrow_check_consumer_group_status`
Cruise Control
- `cruise_control_get_state`
- `cruise_control_get_kafka_cluster_load`
- `cruise_control_get_partition_resource_utilization_and_load`
- `cruise_control_get_partition_and_replica_state`
- `cruise_control_get_optimization_proposals`
- `cruise_control_get_user_request_result`
Resources
- topic, connector, consumer group
Prompts
Usage / Configuration
1. Claude Desktop
2. Cursor
3. Windsurf
4. Langchain MCP adapter
5. Azure OpenAI
Environment Variables
Supported APIs are (currently) enabled by the presence of their specific environment variable. If none are present, the server responds as empty. If 1 or more variables are present, then the respective tools are also present.
- `KAFKA_BOOTSTRAP_SERVERS`: Kafka Admin, Consumer, Producer APIs
- `KAFKA_CONNECT_API_URL`: Kafka Connect API
- `KAFKA_BURROW_API_URL`: Burrow API
- `KAFKA_CRUISE_CONTROL_API_URL`: Cruise Control API
Frequently asked questions
What is mcp-kafka?
mcp-kafka is An MCP server for Apache Kafka & its ecosystem.
How do I install mcp-kafka?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-kafka open source?
Yes — it is hosted on GitHub at https://github.com/brandon-powers/mcp-kafka and has 3 stars.
Related MCP tools
Damn Vulnerable MCP Server Python-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases Python-based implementation. Trusted by 900+ developers.
Query MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning...
Model Context Protocol with Neo4j Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers. Trusted by 700+ developers.
An MCP server that provides control over Android devices via adb Python-based implementation. Trusted by 500+ developers.
A Model Context Protocol (MCP) server for PostgreSQL databases with enhanced capabilities for AI agents. Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP