atengk-mcp-server-kafka

v1.3.1
atengk-mcp-server-kafka Checked 23 hours ago Published 1 month ago

Kafka Model Context Protocol (MCP) server in Python

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kafka_list_connections

枚举当前服务端已配置的所有 Kafka 集群命名连接清单、Broker 引导地址与只读保护状态

kafka_cluster_info

获取 Kafka 集群整体元数据与 Broker 节点列表(包含 Cluster ID、控制器与节点地址)

ParameterTypeDescription
connection

kafka_list_topics

列出 Kafka 集群中的主题清单(支持按名称模式过滤并默认排除内部系统主题)

ParameterTypeDescription
connection
include_internalboolean
pattern

kafka_describe_topic

查询指定 Kafka 主题的详细拓扑(分区分布、Leader 节点、ISR 同步副本与配置)

ParameterTypeDescription
topic_name *string
connection

kafka_sample_messages

从指定 Kafka 主题以零提交位移方式只读采样消息(支持 latest/earliest/offset 策略、自适应解码与大报文截断保护)

ParameterTypeDescription
topic *string
connection
limitinteger
max_bytes_per_messageinteger
offset
partition
strategystring

kafka_list_consumer_groups

列出 Kafka 集群中的消费组清单(包含 Group ID、协议类型与活跃状态如 Stable/Empty/Dead)

ParameterTypeDescription
connection

kafka_describe_consumer_group

查询指定 Kafka 消费组的详细拓扑,包含活跃成员、分区 Committed Offset、LEO 及 Lag 积压数值

ParameterTypeDescription
group_id *string
connection

kafka_create_topic

在 Kafka 集群中创建新主题(支持指定分区数与副本因子;只读模式下不可用)

ParameterTypeDescription
topic_name *string
connection
partitionsinteger
replication_factorinteger

kafka_delete_topic

从 Kafka 集群中删除主题(高危破坏操作,必须传入 confirm=True 显式确认)

ParameterTypeDescription
topic_name *string
confirmboolean
connection

kafka_produce_message

向指定 Kafka 主题发送消息(支持 Key、JSON/文本载荷与 Headers;只读模式下不可用)

ParameterTypeDescription
topic *string
value *
connection
headers
key
partition

kafka_reset_consumer_group_offsets

重置指定消费组在目标主题上的消费位移(高危运维操作,支持 Dry-Run 预检与 earliest/latest/to_offset/to_datetime 策略)

ParameterTypeDescription
group_id *string
topic *string
confirmboolean
connection
datetime_val
dry_runboolean
forceboolean
offset
partitions
strategystring