Skip to main content

BigQuery

Google hosts the BigQuery MCP server at https://bigquery.googleapis.com/mcp over streamable HTTP. The Official card has that URL filled in. Each person signs in with a Google account, and tool calls run with that account's permissions. Google's remote MCP servers have no dynamic client registration and no client ID metadata document, so an admin creates an OAuth client and pastes its client ID and secret into Willow. It is the BigQuery card with the Official badge.

The server is available once the BigQuery API is enabled on the project.

Before you start​

  • A Google Cloud project. Enable the BigQuery API if it is off. New projects have it on already. Enabling an API needs the Owner role or Service Usage Admin (roles/serviceusage.serviceUsageAdmin).
  • On that project, each person who signs in needs:
    • MCP Tool User (roles/mcp.toolUser) — mcp.tools.call
    • BigQuery Job User (roles/bigquery.jobUser) — bigquery.jobs.create
    • BigQuery Data Viewer (roles/bigquery.dataViewer) — bigquery.tables.getData
  • The Official card added in Willow, so you can copy the redirect URL from the server Setup tab.

Some tasks need further BigQuery permissions. Google lists them under BigQuery IAM roles and permissions.

Set up Google Cloud​

If Google Auth Platform says it is not configured, open Branding and click Get Started. Enter an app name, a user support email, an audience, and a contact email, then create the app.

  • Internal, when everyone who signs in belongs to your Google Workspace organization. Google does not ask you to list scopes for an internal app, and sensitive scopes skip the extra review.
  • External for anyone else. Under Audience → Test users, add each person who will sign in. Under Data Access → Add or Remove Scopes, add https://www.googleapis.com/auth/bigquery. Reaching users beyond the test list needs Google's verification.

Then create the client:

  1. In the Google Cloud console, go to Google Auth Platform → Clients → Create client. Select the project if asked.

  2. Set Application type to Web application and enter a name. A web client is the type that accepts Willow's redirect URL.

  3. Under Authorized redirect URIs, click + Add URI and paste the URL from Willow. On the server Setup tab, select Client ID & secret and copy the URL shown there.

    • SaaS: https://{org}.withwillow.ai/{org}/api/auth/callback
    • On-prem: {CONNECT_URL}/{org}/api/auth/callback

    Google uses the redirect URL your application documents. Paste the copied URL so the scheme, host, path, and any trailing slash match.

  4. Click Create. Copy the Client ID. In Client secrets, copy the client secret and store it. Google shows the secret once.

The BigQuery MCP scope is https://www.googleapis.com/auth/bigquery (view and manage data in BigQuery, and see the Google account's email). A tool call can also need another scope from the BigQuery API.

Set up Willow​

  1. Go to MCP Servers → + Add MCP server, open the BigQuery card with the Official badge, and click + Use.
  2. Keep OAuth sign-in. Select Client ID & secret.
  3. Paste the Client ID and Client Secret.
  4. Open Advanced settings. Under Scopes, add https://www.googleapis.com/auth/bigquery. With your own OAuth client, Willow requests only the scopes listed there.
  5. Save, then click Check connection and sign in with a Google account that has the roles above. Assign groups and Publish.

Troubleshooting​

Automatic discovery fails​

Cause: This server has no dynamic client registration and no client ID metadata document.

Solution: Select Client ID & secret, paste the client you created, and add the BigQuery scope under Advanced settings.

Google reports redirect_uri_mismatch​

Cause: The authorized redirect URI and the URL Willow sent differ.

Solution: Copy the URL from the Setup tab again and add that value under Authorized redirect URIs. Scheme, host, path, and trailing slash all have to match.

Sign-in is rejected for the scope​

Cause: Scopes is empty, so Willow sends no scope. On an External app, the scope is missing from Data Access, or the Google account is not a test user.

Solution: Add https://www.googleapis.com/auth/bigquery under Advanced settings → Scopes. On an External app, add that scope under Data Access and add the person under Test users.

A tool call returns a permission error​

Cause: The signed-in account is missing mcp.tools.call, bigquery.jobs.create, or bigquery.tables.getData, or another permission named in the error.

Solution: Grant MCP Tool User, BigQuery Job User, and BigQuery Data Viewer on the project, then grant any further permission the error names.

Additional Resources​