SuperAPIAI Directory

kafka-mcp

github.com · AI developer platforms

kafka-mcp is an MCP protocol-based server that exposes Kafka debugging capabilities as tools to large language models (LLMs). By default it communicates over stdio, with optional streaming HTTP, and uses franz-go to connect to Kafka. A single process can connect to multiple Kafka clusters, supporting read-only endpoints, previews before write operations, message lookup, latency measurement, and consumer unblocking. It is distributed in four ways: binary, MCP Bundle, container image, and MCP Registry. Configuration files support TOML, YAML, and JSON, and can set cluster connections, TLS/SASL authentication, endpoint policies, tool toggles, and cross-cluster write permissions. Message decoding supports formats such as Avro, Protobuf, and JSON Schema. File operations take place on the user's local machine; in HTTP mode they are performed via encrypted links and curl commands.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

kafka-mcp is an MCP server designed to let large language models (LLMs) call tools to debug Kafka. By default it uses the MCP protocol over stdio, and can optionally serve streaming HTTP, using franz-go to communicate with Kafka.

Purpose: to wrap Kafka debugging operations (such as finding messages, measuring consumer lag, and unblocking consumers) as tools callable by LLMs, making it convenient to troubleshoot Kafka issues through natural language or automated workflows.

Main capabilities:

  • A single process can connect to multiple Kafka clusters. In stdio mode, a session selects one endpoint; in HTTP mode, each endpoint has its own path, and a session is bound to a cluster through its connection method.
  • Provides read-only endpoints, with a preview mechanism before write operations.
  • Supports defining cluster connections (brokers, TLS, SASL), endpoint policies, tool toggles, and cross-cluster write targets through configuration files (kafka-mcp.toml/yaml/yml/json).
  • Message decoding supports formats such as Avro, Protobuf, JSON Schema, JSON, UTF-8 text, and base64, and can integrate with Schema Registry.
  • File operations (downloading/uploading messages) take place on the user's local machine; in HTTP mode, encrypted links and curl commands are returned, and data does not pass through the model.
  • Supports security mechanisms such as HTTP authentication (Bearer token), link encryption (AES-GCM), and link expiration (10 minutes).
  • Provides a server_config tool that reports endpoint information, policies, and cluster status.

Usage:

  • Installation: download the binary from the releases page and put it in PATH; or use the MCP Bundle (.mcpb) to install in clients that support bundles (such as Claude Desktop); or use the container image ghcr.io/denizgursoy/kafka-mcp:<tag>; it can also be installed via the MCP Registry (io.github.denizgursoy/kafka-mcp).
  • Configuration: place a configuration file in the working directory, under ~/.config/kafka-mcp/, or under /etc to define clusters and endpoints. In stdio mode, select an endpoint via --endpoint <name>; in HTTP mode, use --server to start all endpoints.
  • Environment variable overrides: use the KAFKA_MCP_ prefix to override configuration, e.g. KAFKA_MCP_HTTP_ADDRESS=:9000.
  • Logging: configured via LOG_LEVEL and LOG_PRETTY.

Use cases:

  • Developers or operations personnel debugging Kafka clusters through an LLM client (such as Claude Desktop).
  • Needing to perform message lookup, latency measurement, and consumer troubleshooting across multiple Kafka clusters.
  • Kafka debugging environments that require read-only access or controlled writes.

Limitations:

  • At least one cluster configuration with brokers is required.
  • In HTTP mode, file operations rely on the user's local machine executing curl commands; links are valid for 10 minutes and can be reused.
  • Link size is limited to about 6 KiB (after sealing); oversized requests are rejected.
  • When http.auth_token is not set, endpoints have no authentication and are only suitable for scenarios unreachable from untrusted networks.
  • Some advanced features (such as OAuth and GCP workload identity federation) require additional configuration and external service support.
  • The specific tool list and detailed parameters are not fully listed in the materials and are not provided for now.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools