# MCP FAQ and advanced setup

Answers about signing in, roles, privacy and limits, how to narrow a connection, and what to do when something does not work.

## Do I need a token or API key?

No. datacub uses OAuth sign-in, the standard MCP clients use. The first time, your tool opens a datacub page: sign in and press **Allow**. Your tool registers itself and keeps its own access. A personal token from earlier still works for tools that take a header.

The server address is `https://datacub.to/mcp` (Streamable HTTP). Opening it in a browser brings you to these docs.

## What does the Allow page ask?

- **Project**: **All projects**, or one project. Choose one to keep the connection to that project only.
- **Make changes when you ask**: tick it only if you want your assistant to create flags, experiments, events or feedback questions. It shows only when your tool asked for it, and it needs the Member role or above. Without it, the connection only reads.

## Which team role do I need?

Your assistant works with your own role, never more, and stops working if you leave the team.

| What | Role needed |
|---|---|
| Totals, trends, funnels, retention, live, experiments and feedback results | any role |
| People one by one (`find_people`, `get_person`) | Member, Admin or Owner |
| Changes (flags, experiments, events, feedback questions) | Member, Admin or Owner, on a connection allowed to make changes |

Tool messages call this level "analyst or above": a Member has it.

## How do I disconnect a tool?

In [Settings, Connect and AI](https://datacub.to/en/settings?tab=integrations), **Connected tools** lists every tool connected to the project, with when each was last used. Press **Revoke**: it stops at once. Admins and owners see everyone's tools on the project; others see their own. Removing datacub inside your AI tool does not revoke its access in datacub, so revoke it here too.

## How long does a connection last?

Your tool renews its access by itself. After 90 days it asks you to sign in again. Revoking, leaving the team or losing access to the project ends it at once.

## Can I limit what a connection can do?

Yes. Add options to the server address when you add it to your tool:

| Address | What the connection sees |
|---|---|
| `https://datacub.to/mcp?readonly=1` | every tool that reads, none that changes anything |
| `https://datacub.to/mcp?features=web,analytics` | only these areas: `setup`, `events`, `analytics`, `web`, `people`, `flags`, `feedback` |
| `https://datacub.to/mcp?tools=web_overview,explain_change` | only these tools |

`features` and `tools` together give a tool that is in either list. `get_docs` is always there. Fewer tools also means your assistant picks the right one faster. The areas and tool names are in the [tools reference](https://docs.datacub.to/mcp/tools.md).

A connection without permission to make changes never changes anything, whatever its address.

## What never leaves datacub?

- The email, name and 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: they are masked first, so an email becomes `<email>`.
- What people wrote in feedback answers: totals only, the text stays in your dashboard.
- Anything from projects your role cannot open.

Your assistant never runs SQL. Every question goes through the dashboard's own query engine, limited to your projects. What you then do with an answer inside your AI tool follows that tool's own terms.

## Are the numbers exact?

Yes. They come from the same engine as your dashboard, with the same definitions, so they match what you see there. Each answer has a `url` to the same view. `get_docs` with topic `metrics` gives your assistant the definition of every number.

## Is there a rate limit?

A connected tool can make 300 requests a minute. Above that it gets `429` with a `Retry-After` header and can try again within the minute. Very long answers are cut at 25,000 characters with a note to ask for less: a shorter range, a filter or the next page.

## Troubleshooting

| What you see | What to do |
|---|---|
| "This connection is out of date." | Remove datacub from your AI tool, add it again, then sign in. |
| "This connection is read only." | Remove datacub from your tool, add it again, and tick **Make changes when you ask** on the Allow page. |
| "Looking at individual people needs a team role of analyst or above." | Ask the project's owner or an admin to add you as a Member. Totals work for every role. |
| "No such project." | Ask your assistant to call `list_projects`. If you chose one project on the Allow page, the connection sees only that one. |
| "Feature flags are turned off for this account." or the same for feedback | The feature is off for your account; totals and the rest still work. |
| The tool shows datacub but cannot sign in | Check you are signed in to datacub in the same browser, then try again. A read key cannot allow an app: sign in with your email. |
| No chart, only text | Charts show in Claude, ChatGPT and VS Code. Other tools get the same answer as text. |

## Plan limits in AI tools

- **Claude**: the free plan allows one custom connector. On Team and Enterprise, an owner adds datacub once for everyone. See [Claude](https://docs.datacub.to/mcp/claude.md).
- **ChatGPT**: adding your own MCP server works on the web, on plans that allow it (Business, Enterprise and Edu; read only on Pro). See [ChatGPT](https://docs.datacub.to/mcp/chatgpt.md).
