Connect Claude Code to BigQuery in 2 steps with MCP
Wire Claude Code into BigQuery with Google's prebuilt MCP toolbox in two steps — list datasets, inspect schemas, and run SQL from any session.
You can connect Claude Code to BigQuery using Google’s prebuilt MCP toolbox. Once set up, Claude Code can list tables, inspect schemas and run SQL queries. You do not need to write a custom server.
MCP (Model Context Protocol) is how Claude Code talks to outside tools. The toolbox is a small program that connects Claude Code to BigQuery. You do not need to build the integration yourself.
What you’ll achieve
- Claude Code can list datasets, inspect table schemas, and run SQL against your BigQuery project from any session.
- No custom MCP server code — you point Claude at Google’s prebuilt toolbox binary.
Tutorial setup 3 prerequisites · 3 values
- Claude Code — installed and working from your terminal.
- A Google Cloud project — with the BigQuery API enabled.
- Application Default Credentials —
sign in once with
gcloud auth application-default login. Install gcloud on Mac if you have not done this yet.
Step-by-step guide
Step 1: Install the toolbox
Download the binary to your home directory and make it executable:
mkdir -p ~/.mcp && cd ~/.mcp \
&& curl -O https://storage.googleapis.com/genai-toolbox/v1.1.0/darwin/arm64/toolbox \
&& chmod +x toolbox
No. Everything goes into your home directory. Claude Code runs the toolbox as you. If a step asks for sudo, check the path. You have probably picked the wrong install location.
Step 2: Register the MCP server
Run this command — your project ID from the box above is already substituted in:
claude mcp add bigquery \
--scope user \
-e BIGQUERY_PROJECT={{BIGQUERY_PROJECT_ID}} \
-- ~/.mcp/toolbox --prebuilt bigquery --stdio
The -- separates Claude Code’s flags from the toolbox’s own arguments. Your shell expands ~ to a full path before Claude Code sees it.
Verification / Testing
Restart Claude Code and ask it something like “list the tables in dataset X” or “show me the schema for orders”. You should see tool calls to the BigQuery server in the transcript, with results coming back from your project.
If nothing shows up, run claude mcp list in a fresh terminal to confirm the bigquery server is registered under your user scope.
What you learned
- How MCP servers register at user scope so they’re available in every Claude Code session.
- How to point Claude Code at Google’s prebuilt BigQuery toolbox without writing custom server code.
Related articles
Connect Tableau Server to Claude Code via MCP + PAT
Wire Claude Code into Tableau Server using the official MCP server, authenticated with a Personal Access Token — list workbooks and views from chat.
Connect Cursor to BigQuery with Google's MCP toolbox
Wire Cursor into BigQuery via Google's prebuilt MCP toolbox, merging it into ~/.cursor/mcp.json with jq so existing servers stay intact.
Give Claude Code system-wide memory with CLAUDE.md
Put your KPIs, role, and writing style in one file at ~/.claude/CLAUDE.md and Claude Code reads it on every prompt — across every project.