byconfluentinc· 2 MCP servers
Claude Code plugin for Confluent Cloud infrastructure provisioning
$git clone https://github.com/confluentinc/claude-code-confluent-pluginInstalls into the current project.
Install claude-code-confluent-plugin by running `git clone https://github.com/confluentinc/claude-code-confluent-plugin`, then use it for the current task and follow its documentation at https://github.com/confluentinc/claude-code-confluent-plugin.
| 1 | # Confluent Cloud Claude Code Plugin |
| 2 | |
| 3 | A Claude Code plugin that lets developers build Confluent Cloud infrastructure and data streaming applications using natural language. Provides Claude Skills (slash commands) for managing environments, clusters, topics, and API keys — powered by MCP (Model Context Protocol). |
| 4 | |
| 5 | ## Architecture |
| 6 | |
| 7 | This plugin provides a single MCP server (`confluent-infra`) with 15 tools covering full Confluent Cloud lifecycle management: infrastructure provisioning + data plane operations. |
| 8 | |
| 9 | ## Quick Start |
| 10 | |
| 11 | ### Prerequisites |
| 12 | |
| 13 | - [Node.js](https://nodejs.org/) 22+ |
| 14 | - [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) |
| 15 | - A [Confluent Cloud](https://confluent.cloud/) account with an API key |
| 16 | |
| 17 | ### 1. Set environment variables |
| 18 | |
| 19 | Add these to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.): |
| 20 | |
| 21 | ```bash |
| 22 | export CONFLUENT_CLOUD_API_KEY=your-api-key |
| 23 | export CONFLUENT_CLOUD_API_SECRET=your-api-secret |
| 24 | ``` |
| 25 | |
| 26 | Generate API keys at [Confluent Cloud Settings > API Keys](https://confluent.cloud/settings/api-keys). Use a **Cloud resource management** API key (not a cluster-scoped key). |
| 27 | |
| 28 | ### 2. Add the 'Claude Code plugin for Confluent' to Claude Code |
| 29 | |
| 30 | ```bash |
| 31 | claude mcp add -s user confluent-infra \ |
| 32 | -e CONFLUENT_CLOUD_API_KEY=${CONFLUENT_CLOUD_API_KEY} \ |
| 33 | -e CONFLUENT_CLOUD_API_SECRET=${CONFLUENT_CLOUD_API_SECRET} \ |
| 34 | -- npx -y @confluentinc/claude-code-confluent-plugin@latest |
| 35 | ``` |
| 36 | |
| 37 | This registers the plugin globally so it's available in any directory. |
| 38 | |
| 39 | ### 3. Install slash commands |
| 40 | |
| 41 | ```bash |
| 42 | npx @confluentinc/claude-code-confluent-plugin@latest install-commands |
| 43 | ``` |
| 44 | |
| 45 | This copies the plugin's slash commands to `~/.claude/commands/` so they're available globally. |
| 46 | |
| 47 | ### 4. Open Claude Code |
| 48 | |
| 49 | ```bash |
| 50 | claude |
| 51 | ``` |
| 52 | |
| 53 | ### 5. Use the slash commands |
| 54 | |
| 55 | **Environments:** |
| 56 | - `/environments-create` — Create a new Confluent Cloud environment |
| 57 | - `/environments-list` — List all environments |
| 58 | - `/environments-update` — Update environment name or governance package |
| 59 | - `/environments-use` — Set active environment for subsequent commands |
| 60 | - `/environments-delete` — Delete an environment |
| 61 | |
| 62 | **Clusters:** |
| 63 | - `/clusters-create` — Create a Kafka cluster (with provisioning wait + API key creation) |
| 64 | - `/clusters-list` — List clusters in an environment |
| 65 | - `/clusters-delete` — Delete a cluster |
| 66 | |
| 67 | **Topics:** |
| 68 | - `/topics-create` — Create a Kafka topic |
| 69 | - `/topics-list` — List topics in a cluster |
| 70 | - `/topics-delete` — Delete a topic |
| 71 | |
| 72 | **API Keys:** |
| 73 | - `/api-keys-create` — Create a cluster-scoped API key |
| 74 | - `/api-keys-list` — List API keys |
| 75 | - `/api-keys-delete` — Delete an API key |
| 76 | |
| 77 | **Setup:** |
| 78 | - `/setup-streaming-app` — Full end-to-end: environment → cluster → API key → topics → optional app scaffold |
| 79 | |
| 80 | ## MCP Tools |
| 81 | |
| 82 | ### Management Plane |
| 83 | |
| 84 | | Tool | Description | |
| 85 | |------|-------------| |
| 86 | | `create_environment` | Create a Confluent Cloud environment | |
| 87 | | `list_environments` | List all environments | |
| 88 | | `update_environment` | Update environment name or governance package | |
| 89 | | `delete_environment` | Delete an environment | |
| 90 | | `create_cluster` | Create a Kafka cluster (returns immediately, async provisioning) | |
| 91 | | `get_cluster` | Get cluster details and provisioning status | |
| 92 | | `list_clusters` | List clusters in an environment | |
| 93 | | `delete_cluster` | Delete a cluster | |
| 94 | | `create_api_key` | Create a cluster-scoped API key | |
| 95 | | `list_api_keys` | List API keys (optional resource filter) | |
| 96 | | `delete_api_key` | Delete an API key | |
| 97 | |
| 98 | ### Data Plane (requires cluster-scoped API credentials) |
| 99 | |
| 100 | | Tool | Description | |
| 101 | |------|-------------| |
| 102 | | `create_topic` | Create a Kafka topic | |
| 103 | | `list_topics` | List all topics in a cluster | |
| 104 | | `delete_topic` | Delete a topic | |
| 105 | |
| 106 | ## Configuration |
| 107 | |
| 108 | The `claude mcp add` command in [Step 2](#2-add-the-mcp-server-to-claude-code) registers the MCP server in your user-level Claude Code settings (`~/.claude.json`), making it available from any directory. |
| 109 | |
| 110 | ## Development |
| 111 | |
| 112 | ```bash |
| 113 | # Install dependencies |
| 114 | npm install |
| 115 | |
| 116 | # Build (cleans dist/ first) |
| 117 | npm run build |
| 118 | |
| 119 | # Watch mode |
| 120 | npm run dev |
| 121 | ``` |
| 122 | |
| 123 | ## License |
| 124 | |
| 125 | Confluent Community License Agreement |