Apache Kafka MCP

DevOpsstdio
Repository

A Model Context Protocol server for Apache Kafka implemented in Go. Lets AI assistants inspect clusters, list and describe topics and consumer groups, produce test messages, and consume recent records, making it easier to debug and operate event-streaming pipelines from natural language.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "kafka": {
      "command": "npx",
      "args": [],
      "env": {
        "KAFKA_BROKERS": "<YOUR_KAFKA_BROKERS>"
      }
    }
  }
}

Tools (3)

list_topics

List Kafka topics in the connected cluster.

{
  "type": "object",
  "properties": {}
}

produce_message

Produce a message to a topic.

{
  "type": "object",
  "required": [
    "topic",
    "value"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "description": "Target topic name"
    },
    "value": {
      "type": "string",
      "description": "Message payload"
    }
  }
}

consume_messages

Consume recent messages from a topic.

{
  "type": "object",
  "required": [
    "topic"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "description": "Source topic name"
    },
    "max_messages": {
      "type": "integer",
      "description": "Maximum number of messages to read"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server information

Author
tuannvm (@tuannvm)
Repository
https://github.com/tuannvm/kafka-mcp-server
License
MIT
Stars
0
Last updated
July 25, 2026