MCP Server
Seamlessly integrate Kubit's digital insights into your favorite AI tools and workflows
Kubit MCP is a Model Context Protocol integration that allows AI development tools like Cursor and Claude to securely access Kubit's analytical capabilities through standardized MCP tools. By connecting an MCP-compatible IDE or assistant to Kubit, users can explore schemas, execute Reports, retrieve raw data and find existing Reports without leaving their development workflow.
Kubit's MCP server exposes several tools that mirror common actions performed in the Kubit platform, enabling a highly productive, code-assisted analytics experience.
What the Kubit MCP Server Provides
The Kubit MCP server includes a set of analytical tools that developers or analysts can use programmatically.
Available MCP Tools
- getUserContext – Initialize User Context
- Always the first call. Retrieves:
- User context
- Available schemas
- Active schema selection
- Parameters: Initialization details required by the Kubit application.
- Always the first call. Retrieves:
- getSchema – Explore Schema Details
- Retrieves full metadata for a specific schema, including:
- Event definitions
- Properties
- Dimensions
- Parameters: Reference to the desired schema.
- Retrieves full metadata for a specific schema, including:
- createReport – Create and Execute Reports
- Generates analytical queries and returns:
- A summary of results
- A link to the full report in the Kubit app
- A
formulaTemplateIdandanalysisIdfor further editing
- Parameters: Arguments required by Kubit to generate a new report.
- Generates analytical queries and returns:
- getRawData – Export Raw Report Data
- Exports CSV-like raw output from an existing report.
- Parameters: Reference to the previously generated report.
- searchKubit – Search Reports and Dashboards
- Searches for reports or dashboards across your organization.
- Parameters: Query text suitable for locating Kubit assets.
Connecting Kubit MCP to Cursor
- Open
Customize→MCPs - Select
New MCP Server. - Paste the following JSON configuration:
{
"mcpServers": {
"KubitMCP": {
"url": "https://mcp.kubit.ai/mcp"
}
}
}- Create a project folder if prompted.
Create a new project for the Kubit MCP server.
- Click
Connectnext to the MCP server. - Enter your organization name (org:
<org name>). - Complete the authentication and authorization steps.
Troubleshoot
- Open Cursor Settings (
Cmd/Ctrl + Shift + J), go to "Tools & MCPs" -> "Installed MCP Servers" - Find
KubitMCP, click the icon next to it to Restart (refresh) or Disable/Enable it. - You may also consider reload Cursor by completely reload the editor context: Open the command palette (
Cmd/Ctrl + Shift + P) and runDeveloper: Reload Window.
Connecting Kubit MCP to Claude Desktop
- Open
Settings→Connectors. - Select
Add custom connector. - Name the connector
KubitMCP. - For Remote MCP URL, enter: https://mcp.kubit.ai/mcp
- Click Add.
- Enter your organization name (org:
<org name>). - Complete the Kubit login and authorization process.
Troubleshoot
- Use
/mcpcommand to check the status of theKubitMCPserver. - If the connector is listed but no tools appear, open
Settings→Connectors, disable and re-enable it. - Changing the Remote MCP URL invalidates the stored credentials. Re-authorize the connector after any URL change.
Connecting Kubit MCP to Claude Code
- Add the server from your terminal:
claude mcp add --transport http KubitMCP https://mcp.kubit.ai/mcp- Run
/mcpinside Claude Code, selectKubitMCP, then chooseAuthenticate. You can also runclaude mcp login KubitMCP. - Enter your organization name (org:
<org name>). - Complete the Kubit login and authorization process.
By default the server is added at local scope — your user, current project only. Add --scope user to make it available in all your projects, or --scope project to share it with your team through version control. Project scope writes a .mcp.json file at the project root:
{
"mcpServers": {
"KubitMCP": {
"type": "http",
"url": "https://mcp.kubit.ai/mcp"
}
}
}Unlike the Cursor configuration,
.mcp.jsonrequires"type": "http"alongside the URL. Without it, Claude Code reportsMCP server "KubitMCP" has a "url" but no "type".
Troubleshoot
- Use
/mcpcommand to check the status of theKubitMCPserver. - Run
claude mcp listto confirm the server is configured and connected, orclaude mcp get KubitMCPfor its details. - If the server connects but tool calls fail, the stored token is stale. Run
claude mcp logout KubitMCP, thenclaude mcp login KubitMCP. - Reports over wide date ranges may exceed the default tool timeout. Narrow the date range if calls time out.
Connecting Kubit MCP to Codex
- Add the server from your terminal:
codex mcp add KubitMCP --url https://mcp.kubit.ai/mcpAlternatively, add it directly to ~/.codex/config.toml:
[mcp_servers.KubitMCP]
url = "https://mcp.kubit.ai/mcp"
auth = "oauth"
startup_timeout_sec = 30
tool_timeout_sec = 120- Authenticate:
codex mcp login KubitMCP- Enter your organization name (org:
<org name>). - Complete the Kubit login and authorization process.
Raise
tool_timeout_secabove the 60 second default. Reports over large date ranges routinely take longer, and a timeout is returned as a failed tool call rather than a partial result.
For a project-scoped setup, create .codex/config.toml in the project root with the same block. Codex merges project configuration over your global file.
Troubleshoot
- Run
codex mcp listto confirm the server is configured and connected. - If the server never appears, your Codex build may keep remote MCP support behind a feature flag, in which case a URL-based server is skipped silently. Add the following to
~/.codex/config.toml:
[features]
experimental_use_rmcp_client = trueNewer builds rename this to rmcp_client and recent versions enable it by default. Upgrading Codex with npm install -g @openai/codex is the cleaner fix.
- If the server connects but tool calls fail, the stored token is stale. Run
codex mcp login KubitMCPagain. - If the browser callback page shows a connection error, the local listener has expired. Start the login again and complete it without pausing.
Additional Reference: GitHub Repository
For developers who want to review the MCP server source code, configuration patterns, or contribution guidelines, the full repository is available here: https://github.com/Kubit-AI/mcp-server
Updated 11 days ago
