datacub MCP
Ask your AI assistant about your product in plain words, and get your real numbers back. The datacub MCP server connects Claude, ChatGPT, Cursor and other AI tools to your datacub project.
What it is
MCP (Model Context Protocol) is a standard way for AI assistants to use outside tools. Once you connect datacub, your assistant can open your analytics the way you would: it picks the right report, reads the numbers and explains them.
You do not need to know SQL, event names or where a report lives. Ask the way you would ask a colleague:
- "How did the shop do this week?"
- "Why did visitors drop yesterday?"
- "Where do people leave the checkout?"
- "Which campaign brought the people who paid?"
- "Is datacub set up right on my site?"
Why you can trust the answers
- Exact numbers. Every number comes from the same engine as your dashboard. No sampling, no rounding.
- A link back. Every answer carries a
urlthat opens the same view in datacub, so you can check it yourself. - Charts in the chat. In Claude, ChatGPT and VS Code, answers about numbers come with a real chart drawn in the conversation. Other tools get the same answer as text.
Connect in 30 seconds
- Open Settings, Connect and AI in datacub, under Connect your AI tool.
- Pick your tool and do the one step it shows: press a button, or copy a command or the address.
- Your tool opens datacub. Sign in and press Allow.
There is no token to make or paste. The server address is https://datacub.to/mcp.


Step by step for each tool: Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code, Gemini CLI, Windsurf, Zed, and other AI tools.
Not sure how? In the same card, Copy setup prompt gives you a message to paste into your AI tool. It walks you through each step, then checks everything works.
What your assistant can do
- Read your traffic, sources, pages, funnels, retention, engagement, live visitors, experiments and feedback answers.
- Explain why a number moved, and compare two periods, such as Ramadan and the month before.
- Look at people one by one, if you are a Member, Admin or Owner on the project.
- Check your setup, and help a coding assistant install datacub in your code.
- Make changes when you ask: create a feature flag or experiment, declare an event, write a feedback question. Only with a connection you allowed to make changes.
Real prompts and what happens behind them: Use cases. Every tool: Tools reference.
Safe by design
- Your assistant sees only what your own team role allows, on the projects you choose when you allow it.
- It never receives the email, name or phone number your users gave in
identify(). Values in your events that look like an email address, an IBAN or a long number such as a phone number are masked before they leave. - It never runs SQL. Every question goes through the dashboard's own query engine, limited to your projects.
- It changes nothing unless you allowed changes and asked for one.
- You can cut a tool off at any time under Connected tools in Settings, Connect and AI.
More on roles, revoking, narrowing a connection and troubleshooting: FAQ and advanced setup.