npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flinkhouse/server-kafkamanager

v0.1.1

Published

MCP server for managing Kafka clusters

Readme

Kafka Manager MCP Server

Model Context Protocol (MCP) server for managing Kafka clusters. This server provides tools for Kafka management operations including:

  • Starting and stopping Kafka clusters
  • Managing topics (list, create, delete, modify)
  • Managing consumer groups (list, delete)
  • Viewing topic data

Prerequisites

  • Node.js (v16+)
  • Kafka installation (2.5.0+)

Installation

npm install -g @modelcontextprotocol/server-kafkamanager

Or you can use it without installing:

npx @modelcontextprotocol/server-kafkamanager /path/to/kafka/home

Usage

The server requires the path to your Kafka installation directory:

mcp-server-kafkamanager /path/to/kafka/home

For example:

mcp-server-kafkamanager /Users/jian.zhang04/Documents/kafka_2.12-2.5.0

Available Tools

Start Kafka Cluster

Starts a Kafka cluster by launching ZooKeeper and Kafka broker processes.

start_kafka_cluster [--dryRun]

Options:

  • dryRun: Only display the command without running it (optional, default: false)

Stop Kafka Cluster

Stops a running Kafka cluster by shutting down both the Kafka broker and ZooKeeper.

stop_kafka_cluster [--dryRun]

Options:

  • dryRun: Only display the command without running it (optional, default: false)

List Topics

Lists all topics in the Kafka cluster with their configurations.

list_topics [--bootstrap_server <server>]

Options:

  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

Create Topic

Creates a new Kafka topic with specified configuration.

create_topic --topic_name <name> [--partitions <num>] [--replication_factor <num>] [--bootstrap_server <server>]

Options:

  • topic_name: Name of the topic to create
  • partitions: Number of partitions (optional, default: 1)
  • replication_factor: Replication factor (optional, default: 1)
  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

Delete Topic

Deletes a Kafka topic.

delete_topic --topic_name <name> [--bootstrap_server <server>]

Options:

  • topic_name: Name of the topic to delete
  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

Modify Topic

Modifies an existing Kafka topic's configuration.

modify_topic --topic_name <name> --partitions <num> [--bootstrap_server <server>]

Options:

  • topic_name: Name of the topic to modify
  • partitions: New number of partitions
  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

List Consumer Groups

Lists all consumer groups in the Kafka cluster with their status and offsets.

list_consumer_groups [--bootstrap_server <server>]

Options:

  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

Delete Consumer Group

Deletes a consumer group from the Kafka cluster.

delete_consumer_group --group_id <id> [--bootstrap_server <server>]

Options:

  • group_id: Consumer group ID to delete
  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

View Topic Data

Views data in a Kafka topic by consuming a specified number of messages.

view_topic_data --topic_name <name> [--max_messages <num>] [--bootstrap_server <server>]

Options:

  • topic_name: Name of the topic to view
  • max_messages: Maximum number of messages to consume (optional, default: 10)
  • bootstrap_server: Kafka bootstrap server (optional, default: "localhost:9092")

Docker Usage

You can also run this server using Docker:

docker build -t kafkamanager .
docker run -it --network host kafkamanager /path/to/kafka/home

Example

# Start Kafka cluster
start_kafka_cluster

# Create a topic
create_topic --topic_name my-topic --partitions 3 --replication_factor 1

# List all topics
list_topics

# View messages in a topic
view_topic_data --topic_name my-topic --max_messages 5

# Stop Kafka cluster
stop_kafka_cluster

Troubleshooting

  • If you encounter connection issues, make sure Kafka and ZooKeeper are running properly
  • Check Kafka logs in /tmp/kafka.log and ZooKeeper logs in /tmp/zookeeper.log
  • Verify the bootstrap server address (default is localhost:9092)

License

MIT