KosmoKrator

data

Apache Kafka MCP Gateway for AI Agents

Expose Apache Kafka tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

7 functions 6 read 1 write API token auth

Apache Kafka MCP Gateway

Expose Apache Kafka to MCP clients with `kosmokrator mcp:serve --integration=kafka`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=kafka --write=deny --json
{
  "mcpServers": {
    "kosmokrator-kafka": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=kafka",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=kafka --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__kafka__kafka_list_topics kafka.kafka_list_topics Read read
integration__kafka__kafka_get_topic kafka.kafka_get_topic Read read
integration__kafka__kafka_create_topic kafka.kafka_create_topic Write write
integration__kafka__kafka_list_clusters kafka.kafka_list_clusters Read read
integration__kafka__kafka_get_cluster kafka.kafka_get_cluster Read read
integration__kafka__kafka_list_producers kafka.kafka_list_producers Read read
integration__kafka__kafka_get_current_user kafka.kafka_get_current_user Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.