mcp-kafka is a server-side implementation of the Model Context Protocol (MCP) for Apache Kafka. It enables language models (LLM/SLM) to interact reliably with Kafka and its ecosystem, including Kafka Connect, Burrow, and Cruise Control.
NOTE: This is a work in progress, and changes or potential errors are expected.
The server supports capabilities based on the core Kafka APIs, excluding Streams (for now), along with the Burrow and Cruise Control REST APIs.
asyncio and aiohttp.uv pip install mcp-kafka).docker pull bkpowers/mcp-kafka).consumeproducedescribe_kafka_clusterdescribe_kafka_topicsdescribe_kafka_consumer_groupsdescribe_kafka_delegation_tokensdescribe_kafka_log_dirsdescribe_kafka_configsdescribe_kafka_aclsget_kafka_connect_cluster_infoget_kafka_connect_configget_kafka_connect_connectorsget_kafka_connect_connector_pluginsget_kafka_connect_loggersburrow_healthcheckburrow_list_clustersburrow_describe_clusterburrow_list_consumers_with_group_detailburrow_list_topicsburrow_check_consumer_group_statuscruise_control_get_statecruise_control_get_kafka_cluster_loadcruise_control_get_partition_resource_utilization_and_loadcruise_control_get_partition_and_replica_statecruise_control_get_optimization_proposalscruise_control_get_user_request_resultSupported APIs are (currently) enabled by the presence of their specific environment variable. If none are present, the server responds as empty. If one or more variables are present, then the respective tools are also present.
KAFKA_BOOTSTRAP_SERVERS: Kafka Admin, Consumer, Producer APIsKAFKA_CONNECT_API_URL: Kafka Connect APIKAFKA_BURROW_API_URL: Burrow APIKAFKA_CRUISE_CONTROL_API_URL: Cruise Control APIAn MCP server for Apache Kafka & its ecosystem.