MCP Kafka Server

MCP Kafka Server

mcp-kafka-server•byyufule

An MCP server exposing Kafka topic and message operations so large language models can inspect, read, write, and replay Kafka data.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Lists all available topics in the Kafka cluster.
  • •Retrieves detailed topic information including partition counts, offsets, and message counts.
  • •Sends messages to a specified topic with an optional key.
  • •Reads recent messages from a topic and replays messages within a specified time range.

BEST FOR

  • •Letting an LLM inspect Kafka topics and partition offsets before investigating an issue.
  • •Having an assistant send or read Kafka messages for debugging or testing.
  • •Replaying messages from a specific time window selected by a model.

ABOUT MCP-KAFKA-SERVER

MCP Kafka Server is cataloged as an MCP server attributed to yufule. An MCP server exposing Kafka topic and message operations so large language models can inspect, read, write, and replay Kafka data. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Kafka Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

上游原版 README

在 GitHub 查看同一版本原文

README.md · c7c09ff87409 · 采集于 2026-11-13 12:05:31 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Kafka工具

这是一个基于MCP(Model Context Protocol)协议的Kafka工具,可以通过大模型连接Kafka,提供以下功能:

  1. 查询指定topic的信息
  2. 往指定topic里面读写数据
  3. 回放指定时间,指定topic的数据

安装依赖

pip install -r requirements.txt

使用方式

本地模式(STDIO)

直接运行mcp_kafka_server.py文件:

python mcp_kafka_server.py

然后在MCP客户端(如Claude、Cherry Studio等)中连接本地MCP服务器。

Web服务模式(SSE)

运行mcp_kafka_sse_server.py文件启动Web服务:

python mcp_kafka_sse_server.py

服务将启动在 http://localhost:8000,MCP端点为 http://localhost:8000/mcp

然后在MCP客户端中连接这个远程MCP服务器。

主要功能

1. 列出所有Topic

list_topics()

返回Kafka中所有可用的Topic列表。

2. 获取Topic信息

get_topic_info(topic_name)

获取指定Topic的详细信息,包括分区数量、每个分区的起始和结束偏移量以及消息数量。

3. 发送消息

send_message(topic_name, message, key)

向指定Topic发送消息,message可以是JSON字符串或普通字符串,key为可选参数。

4. 读取消息

read_messages(topic_name, max_messages, timeout_ms)

从指定Topic读取最新的消息,max_messages指定最大读取消息数(默认10条),timeout_ms指定超时时间(默认1000毫秒)。

5. 回放历史消息

replay_messages(topic_name, start_time, end_time, max_messages)

回放指定时间段内的消息,start_time和end_time为ISO格式的时间字符串(如'2023-01-01T00:00:00'),max_messages指定最大回放消息数(默认100条)。

配置Kafka连接

默认连接到localhost:9092,如需修改连接地址,请在KafkaManager类的初始化参数中修改bootstrap_servers。

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Kafka Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-kafka-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage