Skip to content

Commit 245d383

Browse files
committed
docs: add Cube agent skills guide
1 parent 8b6e94c commit 245d383

4 files changed

Lines changed: 145 additions & 41 deletions

File tree

docs-mintlify/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@
222222
"docs/integrations/semantic-layer-sync/tableau"
223223
]
224224
},
225-
"docs/integrations/mcp-server"
225+
"docs/integrations/mcp-server",
226+
"docs/integrations/agent-skills"
226227
]
227228
}
228229
]

docs-mintlify/docs/explore-analyze/skills.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Skills are authored by your data team as part of the semantic model. This page c
1414
to find and run them. To create skills, see [Skills](/admin/ai/skills) in the agent
1515
configuration docs.
1616

17+
This page covers **Agent Skills in Cube**. These are not
18+
[Cube agent skills](/docs/integrations/agent-skills), which run in a coding agent and
19+
operate Cube through the CLI, or the [Cube connector](/docs/integrations/mcp-server),
20+
which connects Claude and other MCP clients directly to Cube.
21+
1722
<Frame>
1823
<img src="https://static.cube.dev/blog/2026/06/introducing-cube-agent-skills/slash-menu.png" alt="The slash menu in Analytics Chat listing available agent skills, each with a title and description" />
1924
</Frame>
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
title: Cube agent skills
3+
description: Install official Cube skills in your coding agent to operate Cube through the CLI.
4+
---
5+
6+
[Cube agent skills](https://github.com/cube-js/cube-agent-skills) are instruction
7+
packages that teach coding agents how to use the [Cube CLI](/reference/cli). They can
8+
explore and change the semantic model, manage saved content and access, run queries,
9+
configure embedded analytics, and operate deployments.
10+
11+
> Cube agent skills run in your coding agent and operate Cube through the CLI. They are not Agent Skills in Cube, which your data team authors in the semantic model and runs from Analytics Chat.
12+
13+
They are also separate from the [Cube connector](/docs/integrations/mcp-server), which
14+
connects Claude directly to Cube for natural-language analytics.
15+
16+
## Choose the right Cube integration
17+
18+
| Thing | What it is | Where it runs |
19+
| --- | --- | --- |
20+
| [**Cube connector**](/docs/integrations/mcp-server) | Ask Cube questions in natural language | Claude — desktop, web, Code |
21+
| **Cube agent skills** | Operate Cube — model, content, access, deployments | Your coding agent, over the `cube` CLI |
22+
| [**Agent Skills in Cube**](/docs/explore-analyze/skills) | Saved workflows your data team authors in the semantic model | Analytics Chat, via the `/` menu |
23+
24+
You can install the Cube connector and Cube agent skills together. The connector gives
25+
Claude a direct path to governed analytics; the skills give your coding agent repeatable
26+
operational workflows over the CLI.
27+
28+
## Prerequisites
29+
30+
Install the Cube CLI. On Linux or macOS, run:
31+
32+
```bash
33+
curl -fsSL https://raw.githubusercontent.com/cube-js/cube/master/install-cli.sh | sh
34+
```
35+
36+
For Windows installation and other options, see [Cube CLI installation](/reference/cli#installation).
37+
38+
Then authenticate with a browser:
39+
40+
```bash
41+
cube login --url https://TENANT.cubecloud.dev
42+
```
43+
44+
For a headless environment, set `CUBE_API_URL` and `CUBE_API_KEY` instead. See
45+
[Cube CLI authentication](/reference/cli#authentication) for both methods.
46+
47+
Every skill checks that the CLI is installed, verifies authentication, and lists the
48+
available Cube contexts before it acts, so you can confirm the target tenant.
49+
50+
## Install
51+
52+
### Claude Code
53+
54+
Run these commands inside Claude Code:
55+
56+
```text
57+
/plugin marketplace add cube-js/cube-agent-skills
58+
/plugin install cube@cube
59+
```
60+
61+
### Codex, GitHub Copilot, Gemini CLI, and other compatible agents
62+
63+
Install the skills from [skills.sh](https://skills.sh):
64+
65+
```bash
66+
npx skills add cube-js/cube-agent-skills
67+
```
68+
69+
The source is public under Apache 2.0 at
70+
[`cube-js/cube-agent-skills`](https://github.com/cube-js/cube-agent-skills).
71+
72+
## Available skills
73+
74+
| Skill | What it does |
75+
| --- | --- |
76+
| `cube-explore-model` | Searches and inspects cubes, views, measures, dimensions, joins, and model files. |
77+
| `cube-build-model` | Authors cubes and views on a dev-mode branch, validates them, and prepares them to deploy. |
78+
| `cube-explore-content` | Browses workbooks, dashboards, reports, folders, and scheduled notifications. |
79+
| `cube-build-content` | Creates and updates workbooks, reports, dashboards, folders, and scheduled notifications. |
80+
| `cube-run-query` | Runs semantic-layer queries and interprets the results. |
81+
| `cube-configure-agent` | Inspects and tunes the in-product Cube agent, including rules, certified queries, and Agent Skills in Cube. |
82+
| `cube-admin` | Manages users, groups, attributes, access policies, tenant settings, SCIM, and OIDC. |
83+
| `cube-embed` | Configures embed sessions, tokens, embeddable dashboards, and embed tenants. |
84+
| `cube-deploy` | Manages deployments, environments, environment variables, builds, and logs. |
85+
86+
## Use the skills
87+
88+
Skills activate automatically when a request matches their description. You can also name
89+
a skill explicitly:
90+
91+
```text
92+
Use cube-build-model to add a churn measure.
93+
```
94+
95+
The skills distinguish between inspection and state-changing work. Exploration skills are
96+
read-only. Skills that write first inspect the current state, confirm the Cube context, and
97+
use the platform's normal safety boundaries, such as dev-mode branches for data model edits.
98+
99+
### Connector or `cube-run-query`?
100+
101+
Use the [Cube connector](/docs/integrations/mcp-server) when you want Claude to answer a
102+
natural-language data question directly in a conversation. Use `cube-run-query` when the
103+
query is part of a broader coding-agent task—for example, validating a measure you just
104+
changed, checking exact query output before saving a report, or combining query results
105+
with repository work.
106+
107+
Both paths apply the authenticated user's Cube permissions and security context. They are
108+
complementary, so a Claude Code setup can use both.
109+
110+
## Troubleshooting
111+
112+
- **The agent says the Cube CLI is missing:** Install it from the
113+
[Cube CLI reference](/reference/cli#installation), then start a new agent session.
114+
- **Authentication fails:** Run `cube whoami`. If needed, sign in again with
115+
`cube login --url https://TENANT.cubecloud.dev`.
116+
- **The request targets the wrong tenant:** Run `cube context list` and tell the agent
117+
which context to use.
118+
- **A skill does not activate automatically:** Name it in the request, for example,
119+
`Use cube-explore-model to find the revenue measure.`

docs-mintlify/docs/integrations/mcp-server.mdx

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ description: Connect MCP-aware assistants to Cube through a hosted HTTPS endpoin
55

66
Cube MCP (Model Context Protocol) lets MCP-compatible AI clients connect to Cube over HTTPS using OAuth.
77

8+
This page covers the **Cube connector**, which gives an AI assistant direct access to Cube
9+
through MCP. It is not [Cube agent skills](/docs/integrations/agent-skills), which run in a
10+
coding agent and operate Cube through the CLI, or
11+
[Agent Skills in Cube](/docs/explore-analyze/skills), which are saved workflows your data
12+
team authors for Analytics Chat.
13+
814
<Note>
915

1016
The MCP server is available on [Premium and Enterprise plans](https://cube.dev/pricing). <br />Users need the [Viewer][ref-roles] role or higher to interact with the MCP server. Which tools a
@@ -85,54 +91,27 @@ authenticated user is allowed to see.
8591

8692
## Connect to Claude
8793

88-
### Claude Code
94+
Cube is available in the
95+
[Claude Connectors Directory](https://claude.ai/customize/connectors). Connect it once
96+
and use it in Claude on the web, desktop, or Claude Code—there is no endpoint to paste or
97+
local server to configure.
8998

90-
```bash
91-
claude mcp add --transport http cube-mcp-server https://cubecloud.dev/mcp
92-
```
99+
1. In Claude on the web or desktop, open **Customize → Connectors**.
100+
2. Click **+**, choose **Browse connectors**, and search for **Cube**.
101+
3. Select Cube and click **Connect**.
102+
4. Complete the Cube OAuth flow and choose your tenant.
93103

94-
#### Authentication and usage flow:
104+
On a Team or Enterprise plan, an owner may need to enable Cube first under
105+
**Admin Settings → Connectors**.
95106

96-
1. Run the command copied from **Admin → MCP Server → AI Clients → Claude Code**.
97-
2. Then run Claude and use `/mcp` to list available servers.
98-
3. Select `cube-mcp-server` and choose `Authenticate`.
99-
4. A browser window opens for authentication.
100-
5. Log into Cube and choose your tenant.
101-
6. Return to Claude Code and start asking questions.
107+
To use Cube in a chat, open the tools menu and enable the Cube connector, then ask a data
108+
question. In Claude Code, run `/mcp` to confirm the connector is available and authenticate
109+
if prompted.
102110

103111
<Frame>
104112
<img src="https://lgo0ecceic.ucarecd.net/68c3e7e2-def2-4aec-84a5-8cded3473def/" />
105113
</Frame>
106114

107-
### Claude (Team/Enterprise)
108-
109-
1. Open Settings in Claude (web or desktop).
110-
2. Scroll to **Integrations** and click **Add more**.
111-
3. Use:
112-
- **Integration name:** Cube MCP
113-
- **Integration URL:** `https://cubecloud.dev/mcp`
114-
4. Complete the OAuth flow to grant access.
115-
5. Enable tools in any new chats.
116-
117-
#### Use Cube in Claude chat
118-
119-
1. Start a new chat in Claude.
120-
2. Open the tools menu and enable **Cube MCP** (use the tools search if you have many tools).
121-
3. Ask a data question. Toggle the tool off to disable it for that chat.
122-
123-
### Claude (Desktop app)
124-
125-
```json
126-
{
127-
"mcpServers": {
128-
"cube-mcp-server": {
129-
"command": "npx",
130-
"args": ["-y", "mcp-remote", "--transport", "http", "https://cubecloud.dev/mcp"]
131-
}
132-
}
133-
}
134-
```
135-
136115
## Connect to Cursor
137116

138117
Add the MCP endpoint under Tools & MCP Settings, then complete the OAuth flow.

0 commit comments

Comments
 (0)