Skip to main content
Glama
kafka-dataops-mcp

kafka-dataops-mcp

by Aguantar

kafka-dataops-mcp

mcp-name: io.github.Aguantar/kafka-dataops-mcp

A DataOps-focused Kafka MCP server with consumer lag diagnosis and broker health monitoring. Diagnosis logic is based on actual CDC pipeline operational experience.

Features

  • kafka_consumer_lag — Consumer group lag with incident-pattern diagnosis

  • kafka_topic_info — Topic details with ISR/replication health checks

  • kafka_broker_status — Cluster health: brokers, controller, under-replicated partitions

  • kafka_list_topics — Topic catalog with built-in descriptions

Diagnosis based on real incidents

The diagnosis logic is not generic — it's based on actual operational experience:

  • Flink crash detection: "no active members" + growing lag = likely Flink Job failure (based on a 46-hour outage caused by MySQL DELETE → Debezium tombstone → Flink NPE)

  • Checkpoint vs consumer group: warns that Kafka consumer group reset alone is insufficient for Flink — checkpoints must be deleted first

  • ClusterIdMismatch: detects missing brokers and suggests Docker volume conflict as root cause

  • ISR monitoring: ISR < min.insync.replicas = write failures (critical)

Related MCP server: kafka-mcp

Installation

pip install kafka-dataops-mcp

Usage with Claude Code

Add to your .mcp.json:

{
  "mcpServers": {
    "kafka": {
      "command": "kafka-dataops-mcp",
      "env": {
        "KAFKA_BOOTSTRAP_SERVERS": "localhost:9092"
      }
    }
  }
}

Environment Variables

Variable

Default

Description

KAFKA_BOOTSTRAP_SERVERS

localhost:9092

Kafka bootstrap servers

KAFKA_COMMAND_TIMEOUT

10

Command timeout in seconds

License

MIT

Available Tools

4 tools
kafka_broker_statusA

Check Kafka cluster health: brokers, controller, under-replicated partitions.

Detects:

  • Missing brokers (expected 3 for this cluster)

  • ClusterIdMismatch pattern (Docker volume recreation issue)

  • Under-replicated partitions across all topics

Inputs: no named parameters. Returns: result

kafka_consumer_lagA

Monitor consumer group lag with operational diagnosis.

Checks committed offsets vs log-end-offsets for each partition and generates diagnosis based on actual incident patterns:

  • Flink groups with "no active members" is NORMAL (checkpoint-based offset management)

  • Flink groups with no active members AND growing lag = likely Flink crash (matches 2026-02-21 incident: MySQL DELETE → tombstone → NPE → 50h outage)

  • Non-Flink groups with no active members = consuming application is down

  • Uneven lag distribution = possible hot partition or stuck consumer

Args: group: Consumer group ID. Empty = all groups.

Inputs: group. Returns: result

kafka_list_topicsA

List all Kafka topics with partition count, replication factor, and descriptions.

Built-in descriptions for known topics (CDC pipeline, Circuit Connect).

Args: include_internal: Include internal topics starting with '_' (default: False)

Inputs: include_internal. Returns: result

kafka_topic_infoA

Get topic details: partitions, replicas, ISR, configs, and health diagnosis.

Checks replication health:

  • ISR < min.insync.replicas = writes FAILING (critical)

  • ISR < replication.factor but >= min.insync.replicas = degraded (warning)

  • Retention policy info (size-based deletion warnings)

Args: topic: Topic name to inspect

Inputs: topic (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of Kafka operation: cluster health, consumer lag, topic listing, and topic details. No functional overlap.

    Naming Consistency4/5

    All tools start with 'kafka_' but mix verb-noun ('list_topics') and noun phrases ('broker_status'). Still predictable and readable.

    Tool Count4/5

    Four tools is reasonable for a monitoring-focused server. Could expand with more actions but not too sparse.

    Completeness3/5

    Covers key diagnostic needs (health, lag, topic details) but lacks topic creation or consumer group management. Adequate for observability.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage and monitor Apache Kafka clusters through natural language, providing real-time operations, health monitoring, consumer lag analysis, and temporal trend detection for intelligent cluster management.
      -
    • A
      license
      B
      quality
      C
      maintenance
      MCP server for Apache Kafka that allows LLM agents to inspect topics, consumer groups, and safely manage offsets (reset, rewind).
      19
      14
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      A comprehensive Model Context Protocol (MCP) server for Grafana, Prometheus, Kafka UI, and Datadog. Features a secure "Bring Your Own Key" (BYOK) architecture where credentials stay local. Provides tools for metrics querying, dashboard inspection, Kafka lag monitoring, and unified health checks.
      23
      25 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives AI agents real-time observability into Apache Kafka clusters, enabling natural language queries for broker health, consumer lag, and diagnostics.
      MIT