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.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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.

Upstream README

View this exact version on GitHub

README.md · c7c09ff87409 · Fetched 2026-11-13 12:05:31 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

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