Marketer MCP Setup Guide
Platform:
← All Guides

Marketer MCP Setup Guide

Five steps to connect Claude to BigQuery and start asking plain-English questions about client data.

Mac or Windows? Use the Platform toggle in the header to switch all command blocks to your OS.

What This Enables

What this enables today:

Proof of Progress

Component Status Notes
Google Cloud CLI ✅ Installed in pilot env v567.0.0
MCP Toolbox v0.32.0 ✅ Installed and verified ~/bin/toolbox
Developer Knowledge MCP ✅ Connected at user scope API key auth, used to look up Google docs in real time
BigQuery MCP (toolbox) ✅ Connected as timothy@aimclear.com Real GA4 data queryable
Test query against real GA4 ✅ Returned correct row p_ga4_Audiences_213566908, 2026-05-04 partition
Plain-English → SQL → narrative ✅ Demonstrated end-to-end "Which channel is most efficient?" worked on synthetic test data

Step 1 — Install Google Cloud CLI

Install via Homebrew:

brew install --cask google-cloud-sdk

Or, if Homebrew isn't available:

curl https://sdk.cloud.google.com | bash
exec -l $SHELL

Download and run the installer:
https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe

Default options are fine. After install, open a new PowerShell window so PATH updates pick up.

Verify (works on either OS):

gcloud --version

Step 2 — Install MCP Toolbox

mkdir -p ~/bin && cd ~/bin
curl -O https://storage.googleapis.com/genai-toolbox/v0.32.0/darwin/arm64/toolbox
chmod +x toolbox
On Intel Mac, replace arm64 with amd64 in the URL.
$dir = "$env:USERPROFILE\bin"
New-Item -ItemType Directory -Force -Path $dir
Invoke-WebRequest -Uri "https://storage.googleapis.com/genai-toolbox/v0.32.0/windows/amd64/toolbox.exe" -OutFile "$dir\toolbox.exe"

Add %USERPROFILE%\bin to your user PATH if it isn't already: System → About → Advanced system settings → Environment Variables → User → Path → Edit → New.

Verify (works on either OS):

./toolbox --version

Step 3 — Authenticate to Google

Run the following command (same on both platforms):

gcloud auth application-default login

A browser window opens. Sign in as your AimClear Google account (e.g., amber@aimclear.com). Approve the requested scopes.

This creates a credentials file stored locally:

macOS: ~/.config/gcloud/application_default_credentials.json

Windows: %APPDATA%\gcloud\application_default_credentials.json

Keep this file private — anyone with it can act as your Google account. The file contains a refresh token that auto-renews access; you only need to run this command once per machine.
Sheets-backed external tables: If a BigQuery dataset includes tables backed by Google Sheets, you'll need to add Drive scope to the login: --scopes=https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/bigquery. Without it you get Permission denied while getting Drive credentials. Most pure-BigQuery setups don't need this.

Step 4 — Configure Claude

Option A — Claude Code (recommended for now)

claude mcp add --scope user bigquery ~/bin/toolbox -- --prebuilt bigquery --stdio
claude mcp add --scope user bigquery "$env:USERPROFILE\bin\toolbox.exe" -- --prebuilt bigquery --stdio

This single entry covers all client projects — no separate entry per client, no project ID needed. Access to each project is controlled entirely by Google Cloud IAM on the GCP side.

Verify (works on either OS):

claude mcp list

You should see bigquery — ✓ Connected. If it shows ✗ Failed to connect, see Troubleshooting below.

Option B — Claude Desktop

Edit (or create) the config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add (merge with existing mcpServers if present):

{
  "mcpServers": {
    "bigquery": {
      "command": "/Users/YOURNAME/bin/toolbox",
      "args": ["--prebuilt", "bigquery", "--stdio"]
    }
  }
}

Windows: %APPDATA%\Claude\claude_desktop_config.json

Add (merge with existing mcpServers if present):

{
  "mcpServers": {
    "bigquery": {
      "command": "C:\\Users\\YOURNAME\\bin\\toolbox.exe",
      "args": ["--prebuilt", "bigquery", "--stdio"]
    }
  }
}

On Windows, command should be the full path with .exe and double backslashes.

No project ID needed in the config — one entry covers all clients.

Restart Claude Desktop fully (quit + reopen) for the change to take effect.

Step 5 — Test It Works

In a fresh Claude conversation, ask:

"What datasets and tables are in BigQuery for me?"

You should see Claude call list_dataset_ids and report back with the actual dataset names. If yes, you're done.

Daily Use

Good question patterns

Marketers don't need to know SQL or BigQuery internals. Just ask in natural language. Examples that work well:

Just refer to the client by name — Claude will look up which project they're in and route the query there. Example: "For the Amsoil account, how did paid search perform last week?"

Things to know

If something looks weird

FAQ

Q: Can I use this for clients I don't normally work with?

Only if you've been added to that client's IAM grants. Ask your account lead to coordinate with Alyssa.

Q: My answer looks wrong. What do I do?

Ask Claude to show the SQL it ran and explain its logic. If the SQL looks wrong, ask Claude to try a different approach. If it consistently struggles, message Timothy — the schema may need better documentation.

Q: Can I save a question/dashboard?

Not yet. For now, repeat the question or save the answer in a doc. Saved queries / saved views is on the roadmap.

Q: Can I export the data I get back to Excel / Sheets / Looker?

Claude can format results as a CSV-shaped table that you copy out. For larger exports, we'd build a different tool — this MCP is optimized for "quick questions in plain English," not "pull a 50K-row dataset."

Troubleshooting

bigquery-X — ✗ Failed to connect after claude mcp list

Check, in order:

  1. Toolbox binary is present and executable: ~/bin/toolbox --version should print a version
  2. ADC is set up: gcloud auth application-default print-access-token should print a token
  3. The configured BIGQUERY_PROJECT exists and you have access: gcloud projects describe PROJECT_ID
  4. MCP service is enabled on the project: check with Alyssa

Error 403: BigQuery: Permission denied while getting Drive credentials

The query touches a Sheets-backed external table but ADC lacks Drive scope. Re-auth with:

gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/bigquery

Error 403: SERVICE_DISABLED: Data Analytics API with Gemini has not been used

Only the ask_data_insights tool needs this. Either:

Claude Desktop config not picked up

Restart Claude Desktop fully (quit + reopen), don't just close the window. On macOS: Cmd+Q. On Windows: right-click the tray icon → Quit, then reopen.

Claude Code MCP showing as connected but tools not appearing in conversation

Start a fresh Claude Code session — MCP tools are registered at session start. /reload-plugins does NOT reload MCP servers (it's for plugins/skills/agents/hooks).