strimzi-kafka-cli
Provides tools for managing Kafka clusters, topics, users, ACLs, connectors, and more on Kubernetes via the Strimzi operator.
Strimzi Kafka CLI
Strimzi Kafka CLI is a CLI that helps traditional Apache Kafka users -both developers and administrators- to easily adapt to Strimzi, a Kubernetes operator for Apache Kafka.
The main intention is to ramp up Strimzi usage by creating a similar CLI experience with the traditional Apache Kafka tools that mostly starts with kafka-* prefix under the bin directory in an ordinary Kafka package.
Strimzi Kafka CLI uses the kfk command as an abbreviation for "Kafka For Kubernetes" or simply "k a f k a" which reminds of the kafka-* prefix of the ordinary Kafka script file names.
While having similar set of commands or options for some of the common objects, Strimzi Kafka CLI has some extra capabilities for managing or configuring Strimzi related resources.
Following are the commands of the current version of Strimzi Kafka CLI, that are used for different purposes:
Usage: kfk [OPTIONS] COMMAND [ARGS]...
Strimzi Kafka CLI.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
acls Manages ACLs on Kafka.
clusters Creates, alters, deletes, describes Kafka cluster(s).
configs Adds/Removes entity config for a topic, client, user...
connect Manages Kafka Connect clusters, connectors, and MirrorMaker2.
clusters Creates, alters, deletes, describes KafkaConnect cluster(s).
connectors Creates, alters, deletes, describes KafkaConnector(s).
mirror-maker Lists, describes, creates, deletes KafkaMirrorMaker2(s).
console-consumer Reads data from Kafka topics and outputs it to...
console-producer Reads data from standard input and publish it to Kafka.
mcp Starts the Strimzi MCP server.
node-pools Lists, describes, creates, deletes KafkaNodePool(s).
operator Installs/Uninstalls Strimzi Kafka Operator.
topics Creates, alters, deletes, describes Kafka topic(s).
users Creates, alters, deletes, describes Kafka users(s).Please take a look at the relevant article Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way for more details.
Installation
Using Python Package Installer
pip install strimzi-kafka-cli --userOr to install Strimzi Kafka CLI in an isolated environment, you can simply use pipx:
pipx install strimzi-kafka-cliTo install with MCP server support:
pip install strimzi-kafka-cli[mcp] --userUsing Homebrew
#Tap the homebrew repository first.
brew tap systemcraftsman/strimzi-kafka-cli
#Install Strimzi Kafka CLI
brew install strimzi-kafka-cliInstalling the CLI by using Homebrew already uses a virtual environment, so you don't have to worry about your main Python environment.
Project requires: Python >=3.11
Related MCP server: KafkaIQ
Examples
MCP Server
Strimzi Kafka CLI includes an MCP (Model Context Protocol) server that allows AI assistants to manage Strimzi Kafka deployments on Kubernetes.
Starting the MCP Server
kfk mcpRegistering with Claude Code
claude mcp add strimzi-kafka-cli -- kfk mcpAvailable Tools (38)
Category | Tools |
Kafka Clusters |
|
Topics |
|
Users |
|
Connect Clusters |
|
Connectors |
|
MirrorMaker2 |
|
ACLs |
|
Operator |
|
Node Pools |
|
Version |
|
Dependencies
Python Dependencies
Please see pyproject.toml file.
External Dependencies
Strimzi resources are automatically downloaded when the first kfk command is run. Strimzi Kafka CLI uses the Python Kubernetes client to interact with the cluster directly. You can check the dependency versions with:
kfk --versionThis server cannot be installed
Maintenance
Related MCP Servers
- Alicense-qualityDmaintenanceEnables interaction with Apache Kafka topics, allowing users to publish messages to and read messages from Kafka instances through natural language.Apache 2.0
- Flicense-qualityDmaintenanceEnables AI assistants to manage and monitor Apache Kafka clusters through natural language, providing real-time operations, health monitoring, consumer lag analysis, and temporal trend detection for intelligent cluster management.
- Alicense-qualityDmaintenanceAn MCP server that enables interaction with Kafka clusters to manage topics, monitor consumer groups, and stream messages. It provides a comprehensive suite of tools for broker metadata inspection and local Kafka user management.MIT
- Alicense-qualityDmaintenanceEnables interaction with Kafka clusters via MCP, supporting topic management (list, create, delete, inspect), connection initialization, and more through natural language.1Apache 2.0
Related MCP Connectors
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
Deploy apps on your cloud. Create environments, configure infrastructure, and monitor jobs.
kube-linter audit for Kubernetes manifests — 63 checks: security, availability, RBAC, network.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SystemCraftsman/strimzi-kafka-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server