AI connectors (MCP): how they work
AI connectors let Claude, ChatGPT, Gemini and command-line tools work with your DataViz workspace: answer questions from your data, build charts and dashboards, and schedule reports, always as you and never with more than you're allowed.
What AI connectors are
DataViz runs an MCP server. MCP, the Model Context Protocol, is an open standard that lets an AI app use tools another service offers. Add your workspace's MCP server to your AI client once, and the client can find your datasets, query them and create things in DataViz while you chat with it.
What you can ask
- "Which region had the highest revenue last quarter, and what was its margin?"
- "Recommend charts for the Orders dataset that show where profit comes from."
- "Build a draft dashboard of weekly orders by channel, with a date filter."
- "Email me the Sales overview dashboard every Monday at 9."
- "Document the columns of the Orders dataset." (with the Semantic layer toolset)
In clients that can show interactive content, charts and dashboards appear right in the chat; elsewhere you get a link to open them in DataViz.
How it works
| Step | What happens |
|---|---|
| 1. Connect | You add your workspace's MCP server URL to your AI client, and either sign in to DataViz in the browser (Claude, ChatGPT, Gemini) or give the client a personal API key (Claude Code, the Gemini CLI, scripts). |
| 2. Choose what it may do | You pick the toolsets and access level for that connection, within what your workspace and your role allow. |
| 3. Ask | The client calls DataViz tools such as whoami, list_datasets, query_dataset or build_dashboard, as you. |
| 4. DataViz checks every call | Your permissions, data scopes and row and column rules are applied to each call, exactly as if you'd done it yourself. |
| 5. Risky steps wait | Sharing, deleting or sending to other people returns an approval link instead of happening. |
Three layers of limits
An AI connection can only do what all three of these allow:
- The workspace policy
- Set by admins: whether AI connectors are on at all, which toolsets and access levels any connection may have, raw SQL, approvals and daily limits. See Turn on and set the policy.
- Your role
- Connect AI Clients to connect at all, an AI toolset permission for each toolset beyond Core, and AI may change things or AI may use admin tools for the higher access levels. See Members and roles.
- The connection
- The toolsets and access level you chose for this key or app. You can narrow them at any time. See API keys and connections.
Underneath all three, every call still runs with your own permissions and data rules. An AI client never sees a row you can't.
Access levels
- Read
- Read data, charts and dashboards you can see.
- Write
- Create and change things for you. Risky changes still ask you first.
- Admin
- Use the workspace admin tools (members, roles, security policies, audit log). The workspace must have admin tools turned on, and you must hold those rights yourself.
Toolsets group the tools themselves: Core, Charts, Dashboards, Schedules, Workflows, Semantic layer, Data context, Warehouse, Raw SQL & Python, Delete & restore and Workspace admin. Every tool is listed in Tools and prompts reference.
What an AI client can't do
- Anything you can't: every call runs with your permissions, scopes and row and column rules.
- Share, delete, or send something to other people without your approval.
- Reach another organization: a connection belongs to one workspace.
- Keep working after you revoke its key, disconnect it, or an admin turns AI connectors off.
Everything AI clients do is recorded. See Approvals, undo and AI activity.
Insight AI or an AI client?
| Insight AI | AI connectors (MCP) | |
|---|---|---|
| Where you ask | Inside DataViz | In Claude, ChatGPT, Gemini, a CLI or your own agent |
| Whose AI account | Your organization's key, set by an admin | The AI client's own account |
| Best for | Quick answers next to your dashboards | Working across tools, building things, automation |
| Permissions and data rules | Yours | Yours |
Both use the same tools
Insight AI and AI clients call the same DataViz tools and follow the same approval rules, and both appear in AI Activity, so you review them in one place.
Get started
- An admin turns AI connectors on: Turn on and set the policy.
- You connect your client: Connect Claude, ChatGPT, Gemini and CLIs.
- Try a prompt: in most clients DataViz's ready-made prompts, such as "Answer a data question", appear in the prompt list.