Appearance
Connect Claude Code to Taufinity Studio
Connect Claude Code to your Taufinity Studio organisation in under a minute. After setup, Claude Code can query your dashboards, run BigQuery insights, send widget chat messages, and read knowledge files, all from the same conversation.
30-second TL;DR
- In Studio, open AI assistants in the menu and copy the Claude Code command.
- Run it in your terminal.
- In Claude Code, type
/mcp, pick the server, sign in to Studio in your browser and click Approve.
No API key and no Taufinity CLI needed.
Prerequisites
- Claude Code, a recent version. Check with
claude --version. - A Taufinity Studio login for the organisation you want to connect.
- Your organisation's connector URL,
https://studio.taufinity.io/mcp/<your-org-slug>. Studio shows it under AI assistants with a Copy button. Always use thestudio.taufinity.ioaddress, also if your organisation has its own portal domain.
Installation (recommended: sign in with Studio)
bash
claude mcp add --transport http --scope user taufinity-<your-org-slug> https://studio.taufinity.io/mcp/<your-org-slug>--scope user makes the server available in all your projects. Leave it out to add it to the current project only (Claude Code's default, local), or use --scope project to share it with your team through the project's .mcp.json (each person still signs in with their own account).
Then sign in:
- Start Claude Code and type
/mcp. - Pick
taufinity-<your-org-slug>and follow the steps in your browser. - Sign in to Studio as usual and click Approve on the approval screen (read and change your data in <your organisation>).
From a shell, claude mcp login taufinity-<your-org-slug> does the same without opening a session (add --no-browser over SSH). Claude Code stores the sign-in securely and refreshes it on its own.
Several organisations: the URL belongs to one organisation. A connection only reaches the organisation it was approved for: even when your account belongs to other organisations, or is a Studio administrator, the assistant cannot read or change anything outside this one. Add one server per organisation, each with its own name.
Permissions: mcp.read (read your data) and mcp.write (read and change your data), both shown on the approval screen. Claude Code acts as you within that one organisation, so it reaches only what your own Studio account can there. System administration tools are not available through this route.
Alternative: Taufinity CLI with a token
If you already use the Taufinity CLI, or you need a token-based setup (for example for automation), the CLI writes a token-based entry for the plain https://studio.taufinity.io/mcp endpoint instead:
bash
taufinity version
taufinity auth login # opens your browser for the device-code flowOption 1: One-command install
taufinity mcp install --client claude-codeBehind the scenes, this writes the snippet below to your Claude Code config. If you prefer to do it manually, the snippet is reproduced under Without the CLI.
Config file location
- macOS:
~/.claude.json (user) or <project>/.mcp.json (project) - Linux:
~/.claude.json (user) or <project>/.mcp.json (project) - Windows:
%USERPROFILE%\.claude.json (user) or <project>\.mcp.json (project)
Option 2: Manual install, paste this snippet
{
"mcpServers": {
"taufinity": {
"type": "http",
"url": "https://studio.taufinity.io/mcp",
"headers": {
"Authorization": "Bearer ${TAUFINITY_API_TOKEN}"
}
}
}
}Notes
- Claude Code reads ${ENV_VAR} substitutions at launch, export TAUFINITY_API_TOKEN before starting the session.
Verify it works
Start a new Claude Code session and ask "list my Taufinity sites". claude mcp list shows the server and whether it is connected.
When the assistant uses the connection you'll see a tool-use indicator in the Claude Code session output.
Available tools
The Studio MCP server exposes ~70 tools across these groups:
Data & dashboards
| Tool | Purpose |
|---|---|
list_dashboards | List dashboards configured for your organization |
query_dashboard | Fetch rows from a specific dashboard with optional date / group-by filters |
list_data_sources | List BigQuery tables available for natural-language queries |
query_insights | Plain-language question → validated SQL → read-only execution |
query_sql | Your own BigQuery SELECT, checked by BigQuery before it runs; see Querying your data |
Widget chat
| Tool | Purpose |
|---|---|
list_widgets | List widgets in your account |
create_conversation | Open a new conversation on a widget |
send_chat_message | Send a message and receive the AI response (full widget pipeline including RAG, content gates, playbooks) |
get_conversation | Retrieve a full conversation |
list_widget_conversations | List conversations for a widget |
Knowledge base
| Tool | Purpose |
|---|---|
search_knowledge | Query the RAG vector index directly |
Agents
| Tool | Purpose |
|---|---|
list_agent_archetypes | The six shapes an agent can take, with what each costs |
create_agent | Create an agent from a goal in plain language. Always created switched off |
list_agents | The organization's agents, with their state and ceilings |
get_agent | One agent: what it does, what it may use, what it costs |
start_agent | Run one now. Joins the run in progress if there already is one |
update_agent | Turn the schedule on or off, change the cadence, rename, change its question (admins) |
delete_agent | Remove the agent. Everything it produced is kept |
list_agent_templates | The agents you can install, with cost and, when one uses a package, its name and version |
install_agent_template | Install a template: creates the agent switched off and, for a packaged template, its package pin and your right to run it (packaged templates need an organization admin). Takes the same optional name, subject, schedule, sources and goal as creating an agent |
upgrade_agent_package | Move an agent to a newer released package version you have been granted (organization admins and staff) |
Staff also have create_agent_template, update_agent_template, delete_agent_template, record_package_evaluation, grant_package_entitlement, set_library_organization and rollback_agent_package.
Your existing agents also appear as tools of their own, named after the agent, so you can start one by name without listing anything first. Each carries what it does, what it costs at most, and the promise that starting one twice joins the first run rather than spending twice. Up to ten are surfaced this way, and the list refreshes when agents change.
Creating an agent through this surface reaches the same handlers, the same ceilings and the same approvals as creating one in Studio. See Agents.
Without the CLI (token)
For a token-based entry without the taufinity binary, add the server manually to ~/.claude/mcp.json:
json
{
"mcpServers": {
"taufinity-studio": {
"type": "http",
"url": "https://studio.taufinity.io/mcp",
"headers": {
"Authorization": "Bearer YOUR_TAUFINITY_TOKEN"
}
}
}
}Get your token from Studio → Settings → API Keys. When your token is rotated, update this file by hand.
For older Claude Code versions that only accept stdio transports, use the mcp-remote bridge (requires Node.js 18+):
json
{
"mcpServers": {
"taufinity": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://studio.taufinity.io/mcp",
"--header", "Authorization: Bearer YOUR_TAUFINITY_TOKEN"]
}
}
}Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
/mcp shows the server as needing authentication | Not signed in yet, or access was revoked | Pick the server in /mcp and sign in again |
| Studio says you are not a member | Signed in with an account outside that organisation | Sign out of Studio, then sign in again from /mcp with the right account |
| A tool says a permission is missing | You approved read only | Clear authentication in /mcp, sign in again and approve both permissions |
tools/list returns 401 | Token expired or wrong | Re-run taufinity auth login, restart Claude Code |
tools/list returns 403 | Account lacks access to the targeted org | Run taufinity --site <slug> auth login |
tools/list returns 429 | Hit the per-IP rate limit (300/window) | Wait, then try again. If sustained, kill any runaway agent |
| Connection times out / SSE drops on a long call | Cloudflare idle-timeout | Re-issue the call. Studio is working on resumable streaming. |
Tool returns trace_id: … and a generic error | Server-side error logged in audit trail | Send the trace_id to your Studio admin to investigate |
FAQ
What data leaves my laptop? Only the prompts and tool arguments Claude Code sends. Claude Code itself never sees your raw data. Studio runs queries and returns results.
Where is my sign-in stored? With the recommended setup, Claude Code stores it securely itself; no token is written to .mcp.json or ~/.claude.json. With the token alternative, the token is in ~/.claude.json (user scope) or your project's .mcp.json.
How do I revoke access? Signed in with Studio: open AI assistants in Studio and click Revoke next to Claude Code. Access stops immediately. claude mcp logout <name> also removes the sign-in from your machine. Token setup: Studio → Settings → API Keys → revoke the relevant key. Claude Code's next request returns 401.
See also
- Claude.ai and Claude Desktop: the same one-URL connector in the Claude apps
- Codex: the same setup in the Codex CLI
- Cursor: Cursor's IDE chat with the same MCP server
- API Keys: full reference for keys, scopes, rotation
- Data Governance: the security model