Skip to content

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 ​

  1. In Studio, open AI assistants in the menu and copy the Claude Code command.
  2. Run it in your terminal.
  3. 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 the studio.taufinity.io address, also if your organisation has its own portal domain.
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:

  1. Start Claude Code and type /mcp.
  2. Pick taufinity-<your-org-slug> and follow the steps in your browser.
  3. 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 flow

Option 1: One-command install

taufinity mcp install --client claude-code

Behind 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 ​

ToolPurpose
list_dashboardsList dashboards configured for your organization
query_dashboardFetch rows from a specific dashboard with optional date / group-by filters
list_data_sourcesList BigQuery tables available for natural-language queries
query_insightsPlain-language question → validated SQL → read-only execution
query_sqlYour own BigQuery SELECT, checked by BigQuery before it runs; see Querying your data

Widget chat ​

ToolPurpose
list_widgetsList widgets in your account
create_conversationOpen a new conversation on a widget
send_chat_messageSend a message and receive the AI response (full widget pipeline including RAG, content gates, playbooks)
get_conversationRetrieve a full conversation
list_widget_conversationsList conversations for a widget

Knowledge base ​

ToolPurpose
search_knowledgeQuery the RAG vector index directly

Agents ​

ToolPurpose
list_agent_archetypesThe six shapes an agent can take, with what each costs
create_agentCreate an agent from a goal in plain language. Always created switched off
list_agentsThe organization's agents, with their state and ceilings
get_agentOne agent: what it does, what it may use, what it costs
start_agentRun one now. Joins the run in progress if there already is one
update_agentTurn the schedule on or off, change the cadence, rename, change its question (admins)
delete_agentRemove the agent. Everything it produced is kept
list_agent_templatesThe agents you can install, with cost and, when one uses a package, its name and version
install_agent_templateInstall 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_packageMove 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 ​

SymptomCauseFix
/mcp shows the server as needing authenticationNot signed in yet, or access was revokedPick the server in /mcp and sign in again
Studio says you are not a memberSigned in with an account outside that organisationSign out of Studio, then sign in again from /mcp with the right account
A tool says a permission is missingYou approved read onlyClear authentication in /mcp, sign in again and approve both permissions
tools/list returns 401Token expired or wrongRe-run taufinity auth login, restart Claude Code
tools/list returns 403Account lacks access to the targeted orgRun taufinity --site <slug> auth login
tools/list returns 429Hit 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 callCloudflare idle-timeoutRe-issue the call. Studio is working on resumable streaming.
Tool returns trace_id: … and a generic errorServer-side error logged in audit trailSend 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 ​