{
  "markdown": "<!-- mcp-name: io.github.SystemCraftsman/strimzi-kafka-cli -->\n![Build](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Build/badge.svg) ![Integration Test](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Integration%20Test/badge.svg) ![Deploy](https://github.com/systemcraftsman/strimzi-kafka-cli/workflows/Deploy/badge.svg) [![PyPI](https://img.shields.io/pypi/v/strimzi-kafka-cli)](https://pypi.org/project/strimzi-kafka-cli/) [![Downloads](https://static.pepy.tech/badge/strimzi-kafka-cli)](https://pepy.tech/project/strimzi-kafka-cli) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Strimzi](https://img.shields.io/badge/Strimzi-1.0.0-blue)](https://github.com/strimzi/strimzi-kafka-operator/releases/tag/1.0.0) [![MCP Server](https://badge.mcpx.dev?type=server&features=tools 'MCP Server')](https://github.com/systemcraftsman/strimzi-kafka-cli#mcp-server)\n\n![Strimzi CLI logo](https://github.com/SystemCraftsman/strimzi-kafka-cli/assets/10568159/596ea147-9594-4262-a0c3-d63fa14f0577)\n\n# Strimzi Kafka CLI\n\nStrimzi Kafka CLI is a CLI that helps traditional Apache Kafka users -both developers and administrators- to easily adapt to [Strimzi](https://strimzi.io/),\na [Kubernetes operator](https://operatorhub.io/operator/strimzi-kafka-operator) for [Apache Kafka](https://kafka.apache.org/).\n\nThe 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.\n\nStrimzi Kafka CLI uses the `kfk` command as an abbreviation for \"**K**afka **F**or **K**ubernetes\" or simply \"**k** a **f** **k** a\" which reminds of the `kafka-*` prefix of the ordinary Kafka script file names.\n\nWhile 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.\n\nFollowing are the commands of the current version of Strimzi Kafka CLI, that are used for different purposes:\n\n``` bash\nUsage: kfk [OPTIONS] COMMAND [ARGS]...\n\n  Strimzi Kafka CLI.\n\nOptions:\n  --version  Show the version and exit.\n  --help     Show this message and exit.\n\nCommands:\n  acls              Manages ACLs on Kafka.\n  backup            Backs up and restores Strimzi resources.\n    kafka             Backs up or restores a Kafka cluster and its resources.\n    connect           Backs up or restores a Kafka Connect cluster and its connectors.\n  clusters          Creates, alters, deletes, describes Kafka cluster(s).\n  configs           Adds/Removes entity config for a topic, client, user...\n  connect           Manages Kafka Connect clusters, connectors, and MirrorMaker2.\n    clusters          Creates, alters, deletes, describes KafkaConnect cluster(s).\n    connectors        Creates, alters, deletes, describes KafkaConnector(s).\n    mirror-maker      Lists, describes, creates, deletes KafkaMirrorMaker2(s).\n  console-consumer  Reads data from Kafka topics and outputs it to...\n  console-producer  Reads data from standard input and publish it to Kafka.\n  mcp               Starts the Strimzi MCP server.\n  node-pools        Lists, describes, creates, deletes KafkaNodePool(s).\n  operator          Installs/Uninstalls Strimzi Kafka Operator.\n  topics            Creates, alters, deletes, describes Kafka topic(s).\n  users             Creates, alters, deletes, describes Kafka users(s).\n```\n\nPlease take a look at the relevant article [Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way](https://www.systemcraftsman.com/2020/08/25/strimzi-kafka-cli-managing-strimzi-in-a-kafka-native-way/) for more details.\n\n## Installation\n\n### Using Python Package Installer\n\n``` bash\npip install strimzi-kafka-cli --user\n```\n\nOr to install Strimzi Kafka CLI in an isolated environment, you can simply use [pipx](https://pypa.github.io/pipx/):\n\n``` bash\npipx install strimzi-kafka-cli\n```\n\nTo install with MCP server support:\n\n``` bash\npip install strimzi-kafka-cli[mcp] --user\n```\n\nOr with pipx:\n\n``` bash\npipx install strimzi-kafka-cli[mcp]\n```\n\n### Using Homebrew\n\n``` bash\n#Tap the homebrew repository first.\nbrew tap systemcraftsman/strimzi-kafka-cli\n\n#Install Strimzi Kafka CLI\nbrew install strimzi-kafka-cli\n```\n\n> Installing the CLI by using Homebrew already uses a virtual environment, so you don't have to worry about your main Python environment. MCP server support is included by default.\n\nProject requires: Python >=3.11\n\n## Examples\n\n* [TLS Authentication](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/2_tls_authentication)\n* [Simple ACL Authorization](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/3_simple_acl_authorization)\n* [Topic, User and Broker Configuration](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/4_configuration)\n* [Kafka Connect](https://github.com/systemcraftsman/strimzi-kafka-cli/tree/master/examples/5_connect)\n\n## MCP Server\n\nStrimzi Kafka CLI includes an [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that allows AI assistants to manage Strimzi Kafka deployments on Kubernetes.\n\n### Starting the MCP Server\n\n``` bash\nkfk mcp\n```\n\n### Registering with Claude Code\n\n``` bash\nclaude mcp add strimzi-kafka-cli -- kfk mcp\n```\n\n### Available Tools (42)\n\n| Category | Tools |\n|----------|-------|\n| Kafka Clusters | `list_kafkas`, `get_kafka`, `get_kafka_status`, `create_kafka`, `delete_kafka`, `alter_kafka_config` |\n| Topics | `list_topics`, `get_topic`, `create_topic`, `delete_topic`, `alter_topic` |\n| Users | `list_users`, `get_user`, `create_user`, `delete_user`, `alter_user` |\n| Connect Clusters | `list_connects`, `get_connect`, `create_connect`, `delete_connect`, `alter_connect` |\n| Connectors | `list_connectors`, `get_connector`, `create_connector`, `delete_connector`, `alter_connector` |\n| MirrorMaker2 | `list_mirror_maker_2s`, `get_mirror_maker_2`, `create_mirror_maker_2`, `delete_mirror_maker_2` |\n| Backup | `backup_kafka`, `restore_kafka`, `backup_connect`, `restore_connect` |\n| ACLs | `add_or_remove_acls` |\n| Operator | `install_operator`, `uninstall_operator` |\n| Node Pools | `list_node_pools`, `get_node_pool`, `create_node_pool`, `delete_node_pool` |\n| Version | `get_version` |\n\n## Dependencies\n### Python Dependencies\nPlease see [pyproject.toml](https://github.com/SystemCraftsman/strimzi-kafka-cli/blob/main/pyproject.toml) file.\n### External Dependencies\n`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:\n\n``` bash\nkfk --version\n```\n",
  "bytes": 6803,
  "sha": "cd5e4bc8cf859cbe847bce154fc451fc57e764c303fec89b216cb74d3ac4ad22",
  "repo_slug": "systemcraftsman/strimzi-kafka-cli",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_systemcraftsman_strimzi_kafka__78bc3b2f/readme"
}