
Kafka Sentinel
io.github.sanjay-amuPublished by GitHub account sanjay-amuv0.1.2Updated Oct 27, 2026
Read-only Kafka observability MCP server: cluster health, consumer lag, and replay-readiness.
Overview
Read-only Kafka observability MCP server that lets an assistant inspect cluster health, consumer lag, partition state and replay readiness.
- What you can do
- List topics and consumer groups to find names and states
- Report cluster health: brokers, controller, under-replicated and offline partitions
- Show per-group, per-topic, per-partition consumer lag with committed and end offsets
- Audit topic durability settings and inspect partition leaders, ISR shrinkage and skew
- Check replay readiness for a group and topic, and bundle everything into a timestamped incident snapshot
- When to use it
- Useful when diagnosing streaming incidents such as a stalled consumer group, lag spikes, rebalance storms or offset resets, and when you want an assistant to observe and correlate Kafka state without any write or admin access.
- Requirements
- Runs locally as a Python package installed with pip or uv, launched over stdio. Needs KAFKA_BOOTSTRAP; optional SASL/SSL settings via KAFKA_SECURITY_PROTOCOL, KAFKA_SASL_MECHANISM, KAFKA_SASL_USERNAME, KAFKA_SASL_PASSWORD and KAFKA_SSL_CA_LOCATION. Network access to the brokers is required.
Installation
In SourceWeft
- Open Kafka Sentinel in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
kafka-sentinel-mcp
[CI] [PyPI] [Python] [License: MIT]
Give AI agents safe, read-only eyes on your Kafka clusters.
An MCP (Model Context Protocol) server that exposes Kafka cluster health, consumer lag, partition state, and replay-readiness as structured tools — so LLM agents (Claude, or any MCP client) can diagnose streaming incidents without ever being able to break anything.
Built by an engineer who spent a decade running Kafka-based financial messaging at 99.999% availability, and got tired of every "AI + Kafka" demo assuming write access to production.
Why this exists
When a consumer group stalls at 3 a.m., the questions are always the same: Is it lag? A stuck partition? A rebalance storm? An offset reset gone wrong? These are pattern-matching questions — exactly what LLM agents are good at — but no operator will hand an agent admin rights on a production cluster.
kafka-sentinel-mcp draws a hard line: every tool is read-only by design, enforced at the client-config level (no admin operations are even imported). The agent can observe, correlate, and recommend; a human executes.
Tools
Quick start
Add to Claude Desktop / any MCP client:
Then ask your agent: "Why is the payments-consumer group falling behind, and can we still replay from where it stalled?"
Security posture
-
Read-only by construction: no produce, no topic/config mutation, no offset commits, no ACL ops. The mutation APIs are never imported, and a test in CI greps the server source on every run to keep it that way.
-
The observer consumer runs with
enable.auto.commit=Falseand never commits — verified against a real broker, not just asserted. -
Supports SASL/SSL; credentials are read from the environment only and never logged.
-
Every tool call is logged with its parameters for audit.
-
Least privilege: run with a principal that has only
Describeon the cluster and topics, andDescribeon consumer groups. When an ACL denies an operation the tool returns a structured result rather than a stack trace:The agent can then tell the operator which ACL is missing instead of appearing broken. Non-authorization failures are deliberately not swallowed — they propagate, because silently degrading on an unrelated error would hide real problems.
Testing
The unit suite mocks librdkafka entirely and covers tool logic. The integration suite starts an actual broker, produces real records, and asserts the tools return correct lag, ISR state, durability flags, and replay-readiness — including that the observer leaves no committed offsets behind. Both run in CI.
Status
Early but tested. See ROADMAP.md. Issues and PRs welcome — especially war stories about what you wish an agent could have told you during an incident.
Citing this work
If you reference this project in academic work, see CITATION.cff, or use the "Cite this repository" button on GitHub.
License
MIT
Source: README.md at commit 719153d
Tools
0Version history
1- v0.1.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
