AKHQ MCP Server
Manage AKHQ environments and interact with Kafka cluster resources through AKHQ's REST API.
Switch between configured AKHQ environments, inspect the current environment/auth details, and set or clear bearer tokens.
Inspect cluster/user info, default topic configs, and ACLs.
Create, inspect, configure, and delete topics; read/produce messages; delete records; view topic ACLs.
Manage consumer groups: list, inspect, delete, get/update offsets, members, topics, and ACLs.
Manage Schema Registry schemas, subjects, and versions.
Inspect nodes/brokers, their configs and logs; update node configs.
Manage Kafka Connect connectors and tasks: create, inspect, configure, delete, pause/resume/restart.
Work with ksqlDB: get info, list queries/streams/tables, execute statements, and run pull queries.
Allows AI assistants to interact with Apache Kafka clusters via AKHQ's REST API, providing tools for managing topics, consumer groups, schema registry, nodes/brokers, Kafka Connect, ksqlDB, and ACLs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AKHQ MCP Server list all topics in the dev environment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AKHQ MCP Server
An MCP (Model Context Protocol) server for AKHQ — the GUI for Apache Kafka.
Enables AI assistants (Claude, Cursor, etc.) to interact with Kafka clusters through AKHQ's REST API.
Features
Multi-environment support — configure multiple AKHQ instances (dev, staging, prod) and switch between them at runtime
Flexible authentication — supports no auth, HTTP Basic auth, and Bearer auth
Comprehensive AKHQ API coverage — topics, consumer groups, schema registry, nodes/brokers, Kafka Connect, ksqlDB, ACLs
Related MCP server: KafkaIQ
Installation
npm install
npm run buildOr run directly via npx:
{
"mcpServers": {
"akhq": {
"command": "npx",
"args": ["akhq-mcp-server"]
}
}
}Configuration
Option 1: Config file (recommended for multiple environments)
Set the AKHQ_CONFIG_FILE environment variable to point to a JSON config file:
AKHQ_CONFIG_FILE=/path/to/akhq-config.json npx akhq-mcp-serverExample config file (akhq-config.json):
{
"environments": [
{
"name": "local",
"baseUrl": "http://localhost:8080",
"auth": { "type": "none" }
},
{
"name": "dev",
"baseUrl": "https://akhq-dev.example.com",
"auth": {
"type": "basic",
"username": "admin",
"password": "secret"
}
},
{
"name": "prod",
"baseUrl": "https://akhq-prod.example.com",
"auth": {
"type": "bearer",
"token": "eyJhbGci..."
}
}
],
"defaultEnvironment": "local"
}Auth types:
"none"— no authentication"basic"— HTTP Basic authentication (username + password)"bearer"— Bearer authentication
Option 2: Environment variables (single environment)
Variable | Description | Default |
| Base URL of your AKHQ instance |
|
| Name for this environment |
|
| Auth type: |
|
| Username (for | |
| Password (for | |
| Bearer token (for |
Example with basic auth:
AKHQ_BASE_URL=https://akhq.example.com \
AKHQ_AUTH_TYPE=basic \
AKHQ_AUTH_USERNAME=admin \
AKHQ_AUTH_PASSWORD=secret \
node dist/main.jsMCP Client Setup
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"akhq": {
"command": "node",
"args": ["/path/to/akhq-mcp-server/dist/main.js"],
"env": {
"AKHQ_CONFIG_FILE": "/path/to/akhq-config.json"
}
}
}
}Cursor
Add to .cursor/mcp.json in your project or globally:
{
"mcpServers": {
"akhq": {
"command": "node",
"args": ["/absolute/path/to/akhq-mcp-server/dist/main.js"],
"env": {
"AKHQ_CONFIG_FILE": "/path/to/akhq-config.json"
}
}
}
}When AKHQ_CONFIG_FILE defines multiple environments (for example nonprod and prod with different bearer tokens), switch targets with set_environment only. Do not use set_base_url to switch prod/nonprod.
Available Tools
Environment Management
Tool | Description |
| List all configured AKHQ environments |
| Switch the active AKHQ environment by name ( |
| Get the currently active environment ( |
| URL-only override for single-environment setups. In multi-environment configs, use |
General
Tool | Description |
| Get all auth details for current instance |
| Get all cluster info |
| Get current user info |
| Get default topic configuration |
Topics
Tool | Description |
| List all topics |
| Create a new topic |
| Get topic details |
| Delete a topic |
| Get topic configuration |
| Update topic configuration |
| Get topic messages |
| Produce a message to a topic |
| Delete records from a topic |
| Get ACLs for a topic |
Consumer Groups
Tool | Description |
| List all consumer groups |
| Get consumer group details |
| Delete a consumer group |
| Get consumer group offsets |
| Update consumer group offsets |
| Get ACLs for a consumer group |
| Get consumer group members |
| Get topics for a consumer group |
Schema Registry
Tool | Description |
| List all schemas |
| Create a new schema |
| Get schema by subject |
| Delete a schema |
| Get all versions of a schema |
| Get a specific schema version |
Nodes / Brokers
Tool | Description |
| List all nodes |
| Get node details |
| Get node configuration |
| Update node configuration |
| Get node log configuration |
Kafka Connect
Tool | Description |
| List all connectors |
| Create a connector |
| Get connector details |
| Delete a connector |
| Get connector configuration |
| Update connector configuration |
| Pause a connector |
| Resume a connector |
| Restart a connector |
| Get connector tasks |
| Restart a connector task |
| List connect plugins |
ksqlDB
Tool | Description |
| Get ksqlDB server info |
| List ksqlDB queries |
| List ksqlDB streams |
| List ksqlDB tables |
| Execute a ksqlDB statement |
| Execute a ksqlDB pull query |
ACLs
Tool | Description |
| List all ACLs for a cluster |
| Get ACLs for a specific principal |
Development
npm run build # Compile TypeScript
npm run dev # Watch modeLicense
This project is licensed under the MIT License.
Available Tools
58 toolsclear_bearer_tokenADestructiveIdempotent
Clear the stored bearer token for an AKHQ environment. The next API call will fail with an auth error prompting for a new token.
Inputs: environment (required).
delete_connectBDestructive
Delete a connect definition
Inputs: name (required), cluster (required), connectId (required).
delete_groupBDestructive
Delete a consumer group
Inputs: cluster (required), groupName (required).
delete_schemaBDestructive
Delete a schema subject
Inputs: cluster (required), subject (required).
delete_topicBDestructive
Delete a topic
Inputs: cluster (required), topicName (required).
delete_topic_recordsCDestructive
Delete records from a topic
Inputs: offset (required), cluster (required), partition (required), topicName (required).
get_aclsARead-onlyIdempotent
List all ACLs for a cluster
Inputs: cluster (required), search.
get_acls_by_principalCRead-onlyIdempotent
Get ACLs for a specific principal
Inputs: cluster (required), principal (required), resourceType.
get_authsBRead-onlyIdempotent
Get all auth details for current instance
Inputs: no named parameters.
get_clusterARead-onlyIdempotent
Get all cluster info for current instance
Inputs: no named parameters.
get_connect_by_nameBRead-onlyIdempotent
Get a specific connect definition
Inputs: name (required), cluster (required), connectId (required).
get_connect_configsBRead-onlyIdempotent
Get configuration of a connector
Inputs: name (required), cluster (required), connectId (required).
get_connect_pauseCRead-onlyIdempotent
Pause a connector
Inputs: name (required), cluster (required), connectId (required).
get_connect_pluginsBRead-onlyIdempotent
List all connect plugins
Inputs: cluster (required), connectId (required).
get_connect_restartCRead-onlyIdempotent
Restart a connector
Inputs: name (required), cluster (required), connectId (required).
get_connect_resumeCRead-onlyIdempotent
Resume a connector
Inputs: name (required), cluster (required), connectId (required).
get_connectsARead-onlyIdempotent
List all connect definitions for a cluster
Inputs: cluster (required), connectId (required), page, search, +1 more.
get_connect_task_restartCRead-onlyIdempotent
Restart a specific connector task
Inputs: name (required), taskId (required), cluster (required), connectId (required).
get_connect_tasksBRead-onlyIdempotent
Get tasks for a connector
Inputs: name (required), cluster (required), connectId (required).
get_current_environmentARead-onlyIdempotent
Get the currently active AKHQ environment
Inputs: no named parameters.
get_group_aclsBRead-onlyIdempotent
Get ACLs for a consumer group
Inputs: cluster (required), groupName (required).
get_group_by_nameBRead-onlyIdempotent
Get details for a specific consumer group
Inputs: cluster (required), groupName (required).
get_group_membersCRead-onlyIdempotent
Get members of a consumer group
Inputs: cluster (required), groupName (required).
get_group_offsetsBRead-onlyIdempotent
Get offsets for a consumer group
Inputs: cluster (required), groupName (required).
get_groupsBRead-onlyIdempotent
List all consumer groups
Inputs: cluster (required), page, search, perPage.
get_group_topicsARead-onlyIdempotent
Get topics for a consumer group
Inputs: cluster (required), groupName (required).
get_ksqldb_infoCRead-onlyIdempotent
Get ksqlDB server info
Inputs: ksqldb (required), cluster (required).
get_ksqldb_queriesBRead-onlyIdempotent
List all ksqlDB queries
Inputs: ksqldb (required), cluster (required).
get_ksqldb_streamsARead-onlyIdempotent
List all ksqlDB streams
Inputs: ksqldb (required), cluster (required).
get_ksqldb_tablesARead-onlyIdempotent
List all ksqlDB tables
Inputs: ksqldb (required), cluster (required).
get_meARead-onlyIdempotent
Get current user info
Inputs: no named parameters.
get_nodeARead-onlyIdempotent
Get details for a specific node
Inputs: nodeId (required), cluster (required).
get_node_configsBRead-onlyIdempotent
Get configuration for a node
Inputs: nodeId (required), cluster (required).
get_node_logsBRead-onlyIdempotent
Get log configuration for a node
Inputs: nodeId (required), cluster (required).
get_nodesARead-onlyIdempotent
List all nodes (brokers) in a cluster
Inputs: cluster (required).
get_schema_by_subjectCRead-onlyIdempotent
Get a schema by subject
Inputs: cluster (required), subject (required).
get_schemasCRead-onlyIdempotent
List all schemas in the schema registry
Inputs: cluster (required), page, search, perPage.
get_schema_versionCRead-onlyIdempotent
Get a specific version of a schema
Inputs: cluster (required), subject (required), version (required).
get_schema_versionsARead-onlyIdempotent
Get all versions of a schema
Inputs: cluster (required), subject (required).
get_topicBRead-onlyIdempotent
Get details for a specific topic
Inputs: cluster (required), topicName (required).
get_topic_aclsARead-onlyIdempotent
Get ACLs for a specific topic
Inputs: cluster (required), topicName (required).
get_topic_configsCRead-onlyIdempotent
Get configuration for a topic
Inputs: cluster (required), topicName (required).
get_topic_defaults_configsARead-onlyIdempotent
Get default topic configuration
Inputs: no named parameters.
get_topic_logsCRead-onlyIdempotent
Get logs (messages) for a topic
Inputs: cluster (required), topicName (required), page, sort, +5 more.
get_topicsCRead-onlyIdempotent
List all topics for a cluster
Inputs: cluster (required), page, show, search, +3 more.
list_environmentsARead-onlyIdempotent
List all configured AKHQ environments
Inputs: no named parameters.
post_connectC
Create a new connect definition
Inputs: name (required), cluster (required), configs (required), connectId (required).
post_connect_configsC
Update a connector configuration
Inputs: name (required), cluster (required), configs (required), connectId (required).
post_group_offsetsC
Update consumer group offsets
Inputs: cluster (required), offsets (required), groupName (required).
post_node_configsC
Update configuration for a node
Inputs: nodeId (required), cluster (required), configs (required).
post_schemaC
Create a new schema
Inputs: schema (required), cluster (required), subject (required), schemaType.
post_topicC
Create a new topic
Inputs: name (required), cluster (required), configs, partition, +1 more.
post_topic_configsC
Update configuration for a topic
Inputs: cluster (required), configs (required), topicName (required).
post_topic_produceB
Produce a message to a topic
Inputs: value (required), cluster (required), topicName (required), key, +2 more.
put_ksqldb_executeCIdempotent
Execute a ksqlDB statement
Inputs: ksql (required), ksqldb (required), cluster (required), streamsProperties.
put_ksqldb_queryCIdempotent
Execute a ksqlDB pull query
Inputs: sql (required), ksqldb (required), cluster (required).
set_bearer_tokenAIdempotent
Set or refresh the bearer token for an AKHQ environment. Use this when a request fails with an expired/unauthorized token error.
Inputs: token (required), environment (required).
set_environmentBIdempotent
Switch the active AKHQ environment
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 58 tools
Each tool targets a distinct resource/action, and overlapping areas like topics, groups, schemas, and connectors are separated by resource names. A few names are misleading—get_connect_pause, get_connect_resume, and get_topic_produce imply reads rather than actions—but descriptions make the intended purpose clear.
Most tools follow a get_/post_/delete_/put_ resource pattern, with list_ and set_ used for environment operations. However, mutating actions like pause, resume, restart, and produce are inconsistently prefixed with get_ instead of post_ or action verbs, making the convention less predictable.
With 58 tools, the server presents an extremely large surface for an agent to reason about, far beyond the typical well-scoped MCP server range. Even though the tools map to distinct AKHQ modules, the sheer count is an extreme mismatch for usability and tool selection.
The tool surface covers nearly every AKHQ domain: environments, topics, consumer groups, schemas, nodes, connectors, and ksqlDB, including lifecycle actions and config updates. The main gap is the lack of ACL create/delete operations, and schema deletion only removes a subject rather than individual versions.
Maintenance
Related MCP Connectors
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Kaiva Bridge turns your API, database or documents into a managed MCP server for Claude, ChatGPT, Cursor and VS Code. Point it at an OpenAPI or Swagger spec, an API docs link, a cURL command, a Postman collection, a GraphQL endpoint, Postgres, MySQL, MariaDB or SQL Server, spreadsheets, PDFs and other documents, or an MCP server you already run. Bridge reads the source and proposes tools, and you choose which ones your AI client sees. No code to write and nothing to run. Connect this server and your agent does the setup for you: it lists your servers, shows one, drafts a new server from an OpenAPI spec, and refreshes a server's tools when its API changes. Free plan: 10 servers and 200,000 tool calls a month, no credit card. Pricing: https://kaiv.ai/bridge/pricing Security: https://kaiv.ai/bridge/security Docs: https://kaiv.ai/bridge/docs
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Apache Kafka topics, allowing users to publish messages to and read messages from Kafka instances through natural language.1Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables 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.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Apache Kafka through natural language, supporting operations like producing/consuming messages, managing topics, and querying brokers, partitions, and consumer group offsets.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Kafka clusters via MCP, supporting topic management (list, create, delete, inspect), connection initialization, and more through natural language.1Apache 2.0