atengk-mcp-server-kafka
v1.3.1Kafka 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、控制器与节点地址)
| Parameter | Type | Description |
|---|---|---|
connection |
kafka_list_topics
列出 Kafka 集群中的主题清单(支持按名称模式过滤并默认排除内部系统主题)
| Parameter | Type | Description |
|---|---|---|
connection | ||
include_internal | boolean | |
pattern |
kafka_describe_topic
查询指定 Kafka 主题的详细拓扑(分区分布、Leader 节点、ISR 同步副本与配置)
| Parameter | Type | Description |
|---|---|---|
topic_name * | string | |
connection |
kafka_sample_messages
从指定 Kafka 主题以零提交位移方式只读采样消息(支持 latest/earliest/offset 策略、自适应解码与大报文截断保护)
| Parameter | Type | Description |
|---|---|---|
topic * | string | |
connection | ||
limit | integer | |
max_bytes_per_message | integer | |
offset | ||
partition | ||
strategy | string |
kafka_list_consumer_groups
列出 Kafka 集群中的消费组清单(包含 Group ID、协议类型与活跃状态如 Stable/Empty/Dead)
| Parameter | Type | Description |
|---|---|---|
connection |
kafka_describe_consumer_group
查询指定 Kafka 消费组的详细拓扑,包含活跃成员、分区 Committed Offset、LEO 及 Lag 积压数值
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
connection |
kafka_create_topic
在 Kafka 集群中创建新主题(支持指定分区数与副本因子;只读模式下不可用)
| Parameter | Type | Description |
|---|---|---|
topic_name * | string | |
connection | ||
partitions | integer | |
replication_factor | integer |
kafka_delete_topic
从 Kafka 集群中删除主题(高危破坏操作,必须传入 confirm=True 显式确认)
| Parameter | Type | Description |
|---|---|---|
topic_name * | string | |
confirm | boolean | |
connection |
kafka_produce_message
向指定 Kafka 主题发送消息(支持 Key、JSON/文本载荷与 Headers;只读模式下不可用)
| Parameter | Type | Description |
|---|---|---|
topic * | string | |
value * | ||
connection | ||
headers | ||
key | ||
partition |
kafka_reset_consumer_group_offsets
重置指定消费组在目标主题上的消费位移(高危运维操作,支持 Dry-Run 预检与 earliest/latest/to_offset/to_datetime 策略)
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
topic * | string | |
confirm | boolean | |
connection | ||
datetime_val | ||
dry_run | boolean | |
force | boolean | |
offset | ||
partitions | ||
strategy | string |