Debugs Kafka clusters through MCP tools for message inspection, consumer lag, consumer recovery, and cluster comparison.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Kafka MCP.
valueparsed JSON document; the decoded record for Avro, Protobuf, JSON Schema or a configured format; the raw text otherwise
keystring, the decoded document when the key has a schema, or `null` when absent
headersobject of header name to string
timestampa `Date
formatjson`, `avro`, `protobuf`, `json_schema`, `msgpack`, `text`, `binary` or `null
schema_idthe registry id the value names, or `null
Kafka MCP connects an MCP client to one or more Kafka clusters and presents Kafka investigation tasks as callable tools. It is intended for debugging and operational inspection rather than general application messaging. The available workflow includes finding messages, checking consumer lag, helping unblock consumers, comparing clusters, and, where permitted, copying or producing messages.
Kafka MCP MCP server can expose multiple endpoints backed by the same or different clusters. An endpoint can identify its cluster, describe its intended use, limit available tools, and operate in read-only mode. Cross-cluster destinations for message-copy operations are also controlled per endpoint.
Message results include a decoded value, key, headers, timestamp, detected format, schema ID, and any decoding error. Supported value formats include JSON, Avro, Protobuf, JSON Schema, MessagePack, text, and binary data. When a record names a schema that cannot be decoded, the result reports the reason instead of hiding the failure.
The process speaks MCP over standard input and output by default. With the server option enabled, it serves streamable HTTP endpoints, with each configured endpoint assigned its own route. In stdio mode, a session selects an endpoint by name; in HTTP mode, the route determines the endpoint and therefore the cluster and policy.
Kafka connectivity uses configured broker addresses and the franz-go client library. A configuration can define TLS, custom certificate authorities, mutual TLS, and SASL mechanisms including SCRAM and PLAIN. Credentials can come from environment variables or password files rather than being placed directly in the configuration.
Read and write behavior is applied at the endpoint level. Read-only endpoints withhold writing operations regardless of individual tool settings. The configuration can also disable named tools, and the server validates those names during startup. server_config remains available so a client can learn which endpoint, cluster, policy, and tools it reached.
Install a release binary, an MCP bundle, or the published container image. The project also appears in the official MCP Registry. Claude Desktop can install the MCP bundle directly when the platform and architecture are supported.
Create a TOML, YAML, YML, or JSON configuration containing at least one cluster with a broker. Configuration discovery checks the working directory, the user configuration directory, and /etc, using the first matching file. Set CONFIG_FILE to select a specific file. Run the process over stdio, optionally selecting an endpoint with --endpoint; use --server to expose configured endpoints over HTTP.
The HTTP listener defaults to port 8090, and its optional base path prefixes endpoint routes and the health check. The output directory defaults to the system temporary directory. Exported files stay inside that directory, and an existing output filename is not overwritten.
Kafka MCP MCP server is suitable for read-only production investigation when paired with a restricted endpoint. Separate writable endpoints can be used for approved changes, while cross-cluster writes require explicitly listed destination clusters.
The server requires reachable Kafka brokers and a valid cluster configuration. An endpoint cannot widen restrictions imposed by read-only settings, and a destination cluster that is itself read-only will reject writes. Paths must be unique and cannot use /, /healthz, or include a query or fragment.
Schema decoding depends on the configured format and schema information. Records can therefore contain a decoding error even when the Kafka message itself is available. Keep credentials out of configuration files by using environment references or password files. Configuration fields that are not recognized are ignored.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/kafka-mcp)<a href="https://allmcps.com/mcp/kafka-mcp"><img src="https://allmcps.com/api/badge/kafka-mcp?style=directory" alt="Kafka MCP on AllMCPs" /></a>