Skip to main content
This page connects the Kubit MCP server to your AI assistant. At the end, you can ask your assistant a question about your Kubit data and get back a Kubit report. Setup takes about 5 minutes per client. Every client uses the same server URL, https://agent.kubit.ai/mcp, and the same browser sign-in. Only the place you add the URL differs. The examples name the server kubit-agent, the name the Kubit plugin uses. Any name works.

Before you start

  • A Kubit account. Sign-up needs an early-access link from Kubit or an invite from your organization. See Set up your organization.
  • One of the clients below, on a version that supports remote MCP servers over HTTP
  • For the Kubit plugin: Node.js 18+, for npx

Prompt for your coding agent

Paste this into Claude Code, Cursor or Codex to have it set up the connection:

Claude Code

Claude Code connects to Kubit in one of two ways. The Kubit plugin adds the MCP server and the Kubit skills, and is the recommended setup. A manual setup adds the MCP server only.

Install the Kubit plugin

1

Run the installer

Pick Claude Code for the runtime, and Global (the default) or Local for the location. The plugin adds the Kubit MCP server as kubit-agent.
2

Restart Claude Code

Restart Claude Code so it loads the server and the skills.
3

Sign in

Run /mcp, pick kubit-agent and complete the sign-in in your browser.
4

Pick a workspace

Run /kubit-connect to choose the organization and workspace for this conversation.
Agent plugin covers the plugin’s /kubit-integrate skill, which wires Kubit tracing into a repo.

Add the MCP server manually

1

Add the server

The server is added for you, in the current project only. Add --scope user to use it in every project, or --scope project to write it to a shared .mcp.json at the project root.
2

Sign in

In Claude Code, run /mcp, pick kubit-agent and choose Authenticate. Complete the sign-in in your browser.
To add the server by editing .mcp.json yourself, set "type": "http". Without it, Claude Code doesn’t load the server.
.mcp.json

Cursor

Cursor connects through the Kubit plugin or a manual MCP config. The plugin also installs the Kubit skills.

Install the Kubit plugin

Restart Cursor afterwards. Cursor asks you to sign in to the Kubit MCP server the first time a Kubit tool runs.

Add the MCP server manually

1

Open the MCP settings

In Cursor, open Customize and click New MCP Server.
2

Add the config

mcp.json
3

Sign in

Save the config, click Connect and complete the sign-in in your browser.

Claude and Claude Desktop

Claude on the web and Claude Desktop connect through a custom connector.
1

Add a custom connector

Open Settings > Connectors and click Add custom connector.
2

Enter the URL

Name the connector Kubit, enter https://agent.kubit.ai/mcp as the Remote MCP server URL and click Add.
3

Sign in

Click Connect and complete the sign-in in your browser.
Changing the connector’s URL later clears its sign-in. Connect again after any URL change.

Codex

Codex connects with its codex mcp commands or a config.toml entry.
1

Add the server

2

Sign in

Complete the sign-in in your browser without pausing. The local callback that receives the sign-in expires after a short wait.
To configure the server by hand, add this block to ~/.codex/config.toml, or to .codex/config.toml in a project to use it in that project only. A project file’s settings override the global file.
~/.codex/config.toml
tool_timeout_sec = 120 gives reports over wide date ranges time to finish. The Codex default is 60 seconds.

ChatGPT, VS Code and other clients

Any MCP client that supports remote servers over streamable HTTP and OAuth sign-in can connect. Give it these settings: Availability: Kubit accepts OAuth sign-in redirects from ChatGPT, Claude, Cursor, VS Code, Docker MCP Toolkit and clients that listen on localhost or 127.0.0.1. A client that redirects anywhere else can’t complete the sign-in.

Kubit skills

The Kubit plugin installs 8 skills into Claude Code and Cursor, such as /kubit-report for reports and /kubit-blame for finding the commit behind a regression. Each one calls the Kubit MCP server. Kubit skills covers every skill, the installer flags and updates.

Verify

Ask your assistant:
“Which Kubit workspace am I connected to?”
The answer names your organization and workspace. The assistant gets them from the init tool. In Claude Code, claude mcp list also shows kubit-agent as connected. In Codex, codex mcp list does the same.

If it fails

Next steps