Connect Claude, ChatGPT, Gemini and CLIs
Connecting takes a couple of minutes. Apps you use in a browser sign in to DataViz; command-line tools and scripts use a personal API key. The AI Connectors (MCP) settings tab has the same instructions with your server's address already filled in.
Before you start
- AI connectors must be on for your workspace (an admin does this: Turn on and set the policy).
- Your role needs Connect AI Clients.
- Copy your workspace's MCP server URL from Settings → AI Connectors (MCP), under Connect an AI client. Below, it's written
YOUR_MCP_SERVER_URL.
Claude (web and desktop)
Add a custom connector
In Claude, open Settings → Connectors → Add custom connector. Paste the MCP server URL and add it.
Connect and sign in
Choose Connect. A DataViz page opens: sign in, and choose the workspace and the toolsets Claude may use.
Use it
In a chat, ask about your data. Claude asks before it uses a DataViz tool the first time, depending on your Claude settings.
ChatGPT
Turn on developer mode
In ChatGPT, open Settings → Apps & Connectors → Advanced and turn on Developer mode.
Create the connector
Create a connector with the MCP server URL and OAuth authentication, then sign in to DataViz when asked.
Which tools that change things ChatGPT may use depends on your ChatGPT plan.
Gemini and Gemini Enterprise
- Gemini app
- Add a custom connected app with the MCP server URL and sign in to DataViz (available to eligible personal accounts).
- Gemini Enterprise
- A Google Workspace admin adds a custom MCP connection, using a client ID and secret that a DataViz admin creates under OAuth clients.
Claude Code
Create a personal API key
Under Personal API keys, choose New key, name it (for example "Claude Code on my laptop"), choose its toolsets and access, and choose Create key. Copy the key: it's shown only once. See API keys and connections.
Add the server
Run this in a terminal, with your URL and key in place of the placeholders:
Terminalclaude mcp add --transport http dataviz YOUR_MCP_SERVER_URL \ --header "Authorization: Bearer dvz_pat_YOUR_KEY"Check it
Start Claude Code and run /mcp: dataviz should be listed as connected. Then ask "Who am I in DataViz?" to see it call whoami.
Gemini CLI
Create a personal API key as above, then add this to ~/.gemini/settings.json, or to a project's .gemini/settings.json:
{
"mcpServers": {
"dataviz": {
"httpUrl": "YOUR_MCP_SERVER_URL",
"headers": {
"Authorization": "Bearer dvz_pat_YOUR_KEY"
}
}
}
}Restart the Gemini CLI and run /mcp to see DataViz's tools.
Other clients and your own agents
Any client that speaks MCP over Streamable HTTP works: point it at the MCP server URL and send Authorization: Bearer with a personal API key. If your client signs in with OAuth and redirects somewhere other than Claude, ChatGPT or Gemini, ask an admin to add its host to Extra allowed client hosts.
Try it with the MCP Inspector
npx @modelcontextprotocol/inspectorChoose Streamable HTTP, enter the URL, add the Authorization header with your key, and connect. You'll see the tools, prompts and resources your key allows.
Check it works
This calls whoami directly, which is handy when a client won't connect and you want to rule out the key:
curl -s YOUR_MCP_SERVER_URL \
-H "Authorization: Bearer dvz_pat_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}}'The answer names you, your workspace and role, and the connection's toolsets and access. If it's refused, check that the key hasn't expired or been revoked, and that AI connectors are on. See Troubleshooting.
First things to ask
DataViz offers ready-made prompts that most clients list in their prompt or slash-command menu: Explore a dataset, Answer a data question, Choose charts, Build a dashboard, Schedule a report and Document a dataset. Or just ask:
- "What datasets do I have in DataViz, and what's in Orders?"
- "Which product category has the best margin? Show me a chart."
- "Build a draft dashboard of revenue by month and region, with a region filter."