Skip to content
MCP server
Registry

Kafka Sentinel MCP Server

Read-only Kafka observability MCP server: cluster health, consumer lag, and replay-readiness.

Kafka Sentinel scores 58 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 8 tools. Filed under Monitoring. GitHub shows 3 stars. Package registries report about 20 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by sanjay-amuMITPython3 stars
Trust score
58Fair
Trust score 58 of 100, Fair

Fair trust

58 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 58 comes from

22 + 10 + 2 + 10 + 4 + 10 = 58. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sanjay-amu-kafka-sentinel-mcp": {      "command": "uvx",      "args": [        "kafka-sentinel-mcp"      ],      "env": {        "KAFKA_BOOTSTRAP": "",        "KAFKA_SECURITY_PROTOCOL": "",        "KAFKA_SASL_MECHANISM": "",        "KAFKA_SASL_USERNAME": "",        "KAFKA_SASL_PASSWORD": "YOUR_KAFKA_SASL_PASSWORD",        "KAFKA_SSL_CA_LOCATION": ""      }    }  }}

Environment variables

NameRequiredNotes
KAFKA_BOOTSTRAPRequiredKafka bootstrap servers, e.g. broker1:9092,broker2:9092
KAFKA_SECURITY_PROTOCOLOptionallibrdkafka security.protocol, e.g. SASL_SSL
KAFKA_SASL_MECHANISMOptionallibrdkafka sasl.mechanism, e.g. PLAIN or SCRAM-SHA-512
KAFKA_SASL_USERNAMEOptionalSASL username
KAFKA_SASL_PASSWORDSecretOptionalSASL password
KAFKA_SSL_CA_LOCATIONOptionalPath to CA certificate for SSL

Tools8Tool docs quality grade C

All capabilities
  • Broker count, controller status, under-replicated / offline partition counts

  • Per-group, per-topic, per-partition lag with committed vs end offsets

  • One-call bundle of all the above, timestamped — designed for pasting into a postmortem

  • All consumer group IDs with state — start here if you don't know a group name

  • All non-internal topics with partition count and replication factor — start here if you don't know a topic name

  • Leaders, ISR shrinkage, skew across brokers

  • For a group + topic: earliest available offsets vs committed, i.e., "can we still replay what we missed?"

  • Replication factor, min.insync.replicas, retention, and flags configs that violate durability best practice

About

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

ToolWhat it returns
list_topicsAll non-internal topics with partition count and replication factor — start here if you don't know a topic name
list_consumer_groupsAll consumer group IDs with state — start here if you don't know a group name
cluster_healthBroker count, controller status, under-replicated / offline partition counts
consumer_lagPer-group, per-topic, per-partition lag with committed vs end offsets
topic_auditReplication factor, min.insync.replicas, retention, and flags configs that violate durability best practice
partition_stateLeaders, ISR shrinkage, skew across brokers
replay_readinessFor a group + topic: earliest available offsets vs committed, i.e., "can we still replay what we missed?"
incident_snapshotOne-call bundle of all the above, timestamped — designed for pasting into a postmortem

Quick start

pip install kafka-sentinel-mcp   # (or: uv tool install)

# Run against your cluster (read-only credentials!)
KAFKA_BOOTSTRAP=localhost:9092 kafka-sentinel-mcp

Add to Claude Desktop / any MCP client:

{
  "mcpServers": {
    "kafka-sentinel": {
      "command": "kafka-sentinel-mcp",
      "env": { "KAFKA_BOOTSTRAP": "broker1:9092,broker2:9092" }
    }
  }
}

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=False and 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 Describe on the cluster and topics, and Describe on consumer groups. When an ACL denies an operation the tool returns a structured result rather than a stack trace:

    {
      "error": "permission_denied",
      "operation": "list_consumer_groups",
      "detail": "...",
      "hint": "The Kafka principal in use lacks the ACL required for this operation. ..."
    }
    

    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

pip install -e ".[dev]"

pytest -m "not integration"   # fast, fully mocked — no Docker needed
pytest -m integration         # starts a real Kafka via testcontainers (needs Docker)
pytest                        # both

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

Frequently asked questions

What is Kafka Sentinel MCP Server?

Read-only Kafka observability MCP server: cluster health, consumer lag, and replay-readiness.

How do I install Kafka Sentinel MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Kafka Sentinel MCP Server runs locally from the PyPI package kafka-sentinel-mcp with the command uvx kafka-sentinel-mcp.

Is Kafka Sentinel MCP Server free and open source?

Yes. Kafka Sentinel MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Kafka Sentinel MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Kafka Sentinel MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Kafka Sentinel MCP Server provide?

Kafka Sentinel MCP Server provides 8 tools, including cluster_health, consumer_lag, incident_snapshot, and list_consumer_groups. See the full tool list for descriptions and parameters.

How is Kafka Sentinel MCP Server's trust score calculated?

Kafka Sentinel MCP Server scores 58 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server