kafka-mcp-server MCP Server

A Model Context Protocol (MCP) server for Apache Kafka implemented in Go, leveraging franz-go and mcp-go.

Local serverstdio

What is the kafka-mcp-server MCP Server?

kafka-mcp-server is an MCP project maintained in the tuannvm/kafka-mcp-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server for Apache Kafka implemented in Go, leveraging franz-go and mcp-go”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using kafka-mcp-server. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares KAFKA_BROKERS, KAFKA_CLIENT_ID, MCP_TRANSPORT. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
produce_messageProduces messages to Kafka topics
consume_messagesConsumes messages from Kafka topics in batch operations
list_brokersLists all configured Kafka broker addresses
describe_topicProvides comprehensive metadata for specific topics
list_consumer_groupsEnumerates all consumer groups in the cluster
describe_consumer_groupProvides detailed consumer group information including lag metrics
describe_configsRetrieves configuration settings for Kafka resources
cluster_overviewProvides comprehensive cluster health summaries
list_topicsLists all topics with metadata including partition and replication information

How to install the kafka-mcp-server MCP Server

{
  "mcpServers": {
    "kafka": {
      "command": "kafka-mcp-server",
      "args": [],
      "env": {
        "KAFKA_BROKERS": "localhost:9092",
        "KAFKA_CLIENT_ID": "kafka-mcp-server",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
KAFKA_BROKERSDeclared in the maintainer’s client configuration.Check documentation
KAFKA_CLIENT_IDDeclared in the maintainer’s client configuration.Check documentation
MCP_TRANSPORTDeclared in the maintainer’s client configuration.Check documentation