Cube MCP (Model Context Protocol) lets MCP-compatible AI clients connect to Cube over HTTPS using OAuth.Documentation Index
Fetch the complete documentation index at: https://docs.cube.dev/llms.txt
Use this file to discover all available pages before exploring further.
The MCP server is available on Premium and Enterprise plans.
Users need the Viewer role or higher to interact with the MCP server.
Users need the Viewer role or higher to interact with the MCP server.
What is MCP?
Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools. The Cube MCP server acts as a bridge between your AI assistant and Cube’s analytics platform, allowing you to ask data questions directly from your coding environment.Overview
Cube hosts an MCP server endpoint for your tenant. MCP clients connect over HTTPS and authenticate via OAuth.- Endpoint:
https://<cube-mcp-server-host>/api/mcp - OAuth discovery:
https://<cube-mcp-server-host>/.well-known/oauth - OAuth flow: Authorization Code + PKCE,
client_id=cube-mcp-client, scope =mcp-agent-access - Agent selection: Uses the MCP Defaults (default deployment + agent) set by your admin
Admin setup
Prerequisites
Before enabling MCP, make sure you have:- Admin privileges in your Cube instance
- An active Cube tenant
- MCP server URL configured
1) Confirm MCP server URL
MCP uses your Cube MCP server host. If the URL isn’t configured, the MCP page will show “MCP configuration is unavailable.”2) Set MCP Defaults
Go to Admin → MCP and select:- Default Deployment
- Default Agent
Connect to Claude
Claude Code
Authentication and usage flow:
- Run the command copied from Admin → MCP → Claude → Claude Code.
- Then run Claude and use
/mcpto list available servers. - Select
cube-mcp-serverand chooseAuthenticate. - A browser window opens for authentication.
- Log into Cube and choose your tenant.
- Return to Claude Code and start asking questions.
Claude (Team/Enterprise)
- Open Settings in Claude (web or desktop).
- Scroll to Integrations and click Add more.
- Use:
- Integration name: Cube MCP
- Integration URL:
https://<cube-mcp-server-host>/api/mcp
- Complete the OAuth flow to grant access.
- Enable tools in any new chats.
Use Cube in Claude chat
- Start a new chat in Claude.
- Open the tools menu and enable Cube MCP (use the tools search if you have many tools).
- Ask a data question. Toggle the tool off to disable it for that chat.
Claude (Desktop app)
Connect to Cursor
Add the MCP endpoint under Tools & MCP Settings, then complete the OAuth flow.Connect to Codex
Preferred (CLI):~/.codex/config.toml:
codex mcp login cube-mcp-server to authenticate.
Connect to other MCP clients
For any MCP-compatible client:- Add a new server with the MCP endpoint.
- The client will auto-discover OAuth and prompt for authentication.
- Complete the OAuth flow to grant access to your Cube deployment.
Available actions
- Chat with your Cube AI agent over MCP
- Query data and request analysis
- Receive responses directly in your MCP client
Example workflows
- Ask a data question in natural language
- Get SQL generated by the agent
- Request summaries, trends, and insights
Troubleshooting
- MCP configuration is unavailable: Configure the MCP server URL.
- MCP OAuth integration is not configured: Enable MCP in Admin → Team & Security → OAuth Integrations.
- MCP defaults are not configured: Set defaults in Admin → MCP under MCP Defaults.
- redirect_uri is not allowed: For self-hosted or custom clients, update
MCP_ALLOWED_REDIRECT_PATTERNSon console-server.