Skip to main content
Connect an AI assistant to the Model Context Protocol (MCP) server built into Conduktor Console. The assistant then uses the permissions of the token you give it to answer questions about your Kafka platform and to make changes to it.

Prerequisites

Choose a token

MCP accepts two kinds of token. We recommend a machine identity for every connection that isn’t your own local experiment.
Using a dedicated, narrowly scoped credential for each workload is standard security practice. A personal access token is tied to you and carries all of your permissions, so don’t use one for long-running or automated jobs, and don’t share it. Give each of those a machine identity instead: it has its own name, expiry and permissions, and you can revoke it without affecting anything else.

Connect with a machine identity

A machine identity is a token with its own name, expiry and permissions. It acts for a Console user and can’t hold more permissions than that user, but you choose which of them it gets, for example to let an assistant change topics on one cluster only.
1

Create the identity

Create an identity in Console and select the permissions the assistant needs. The tools reference lists what each tool needs.
2

Copy the token

Console shows the token once, when you create the identity. Copy it before you click Finish: it can’t be displayed again.
3

Add the configuration to your MCP client

In Claude Desktop, go to Settings > Developer and click Edit Config to open claude_desktop_config.json:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Add Console under mcpServers, with the identity’s token as CONDUKTOR_API_TOKEN:
4

Restart your client and test the connection

Restart your MCP client, then ask it a question such as:
The assistant calls list-clusters and lists the clusters the identity has access to. If it does, you’re connected.

Connect with a personal access token

Use a personal access token to try MCP yourself, from an assistant on your own machine. For anything shared, long-running or automated, connect with a machine identity instead.
1

Open the MCP setup page

In Console, go to Settings > MCP.MCP connection setup page in Console
2

Generate a token

Click Generate token and configure. Console creates a personal access token named MCP Token - <date> and adds it to the configuration shown on the page.Copy the configuration straight away: the token won’t be visible once you leave the page.To create the token yourself, click create a token manually or go to Settings > API Keys. Find out more about personal access tokens.If the page says that MCP accepts machine identities only, an administrator has turned off personal access tokens for MCP. Connect with a machine identity instead.
3

Add the configuration to your MCP client

Paste the configuration from Console into your MCP client, then restart the client and test the connection. Both steps are the same as for a machine identity.

Manage access

The token you connect with decides what the assistant can see and do: MCP refuses admin API keys, application tokens, application instance tokens and the session token of a user signed in to Console. A request with one of these gets a 401 response.
A personal access token created by an administrator has administrator permissions. Because the assistant can create and change topics, schemas and connectors, give it a machine identity with only the permissions it needs, and keep personal access tokens for local, personal use.
To disconnect an assistant, revoke its token:
  • Machine identity: switch the sidebar to Agentic, go to Identities, open the menu on the identity’s row and click Revoke.
  • Personal access token: go to Settings > API Keys. Find out more about revoking API keys.

Choose which tokens MCP accepts

Administrators can enforce this practice: limit MCP to machine identities, or stop Console issuing personal access tokens altogether, in the Console configuration. Both settings are true by default and take effect when Console restarts. They’re also listed in the MCP and personal access token properties. To limit MCP to machine identities:
To stop Console issuing personal access tokens:
With either setting, Settings > MCP stops offering to generate a token and points users to machine identities instead.

Turn off MCP

To turn MCP off for your whole organization, set enable_mcp to false in the Console configuration and restart Console. It’s true by default. This setting takes effect from Console 1.49.0.
With MCP turned off:
  • No MCP client can connect, whichever token it uses.
  • Settings > MCP is removed.
  • Console stops issuing personal access tokens, and Settings > API Keys no longer lists them.

Troubleshoot the connection

The assistant doesn’t list some topics, consumer groups or other resources: tools that list resources leave out the ones your token can’t access, without reporting an error. Check your permissions in Console. The assistant previews a change but doesn’t make it: the tools that create or change resources only report what would change until the assistant asks Console to apply it. Ask the assistant to apply the change. See make changes with the apply tools. The Insights tools, query-topics or aggregate-topics are missing: these tools are only available when Insights is enabled. Ask your admin to check the enable_insights setting. See Disable Insights. The client gets a 401 response with “This token is not valid for the MCP API.”: Console recognizes the token, but MCP doesn’t accept that kind of token. This happens with an admin API key, an application token or an application instance token. It also happens with a personal access token when an administrator has turned off personal access tokens for MCP or for Console as a whole. Connect with a machine identity, or with a personal access token where they’re accepted. The client gets a 401 response with “Invalid token.”: Console doesn’t recognize the token. Check that you copied it in full and that it hasn’t been revoked. Settings doesn’t have an MCP page: an administrator has turned off MCP. The MCP setup page doesn’t offer to generate a token: an administrator has turned off personal access tokens for MCP. Connect with a machine identity instead. The client can’t connect: check that the endpoint ends in /api/mcp. If you use Claude Desktop, check that Node.js and npm are installed and that npx is on your PATH.

Next steps

Find out which tools the assistant can use, how it makes changes and what you can ask it about your topics with aggregate-topics.