Google BigQuery
Connect your company's Google Cloud project to Cakewalk so agents can list datasets and tables and run SQL in BigQuery through the gateway. A Google Cloud admin creates one OAuth client first.
Connect your company's Google Cloud project to Cakewalk's MCP Gateway. Every agent tool call against BigQuery passes through the gateway and is evaluated against your Policies.
Setup Flow: Register Your Own OAuth Client
Google runs a remote BigQuery MCP server at https://bigquery.googleapis.com/mcp. Google's MCP servers do not register clients automatically, so a Google Cloud admin creates one OAuth client in your project and hands the Client ID and Client Secret to your Cakewalk Admin. That happens once per company. After that, each employee signs in with their own Google account, and BigQuery applies that person's IAM permissions.
Requirements
A Google Cloud project owner or editor who can enable APIs, grant IAM roles and create OAuth clients in Google Auth Platform.
A Cakewalk Admin, to add the Connection and enter the credentials.
Step 1: Enable the BigQuery API
In the Google Cloud console, open APIs & Services > Library, search for BigQuery API and select Enable. The BigQuery MCP server is enabled together with the API. There is no separate switch.
Step 2: Grant the IAM Roles
Every employee who connects needs these roles on the project, under IAM & Admin > IAM > Grant access:
MCP Tool User (roles/mcp.toolUser)
Allows calls to Google's MCP tools
BigQuery Job User (roles/bigquery.jobUser)
Allows running queries
BigQuery Data Viewer (roles/bigquery.dataViewer)
Allows reading table data
Grant the roles to a Google group to manage access for many employees at once. BigQuery enforces these roles on every tool call, so they are also your narrowest control over which data agents can read.
Step 3: Set Up Google Auth Platform
Open Google Auth Platform in the Google Cloud console and select Get started.
Enter an app name your team recognizes, for example Cakewalk, and a support email.
Under Audience, select Internal. Only accounts in your Google Workspace organization can then sign in, and Google does not need to review the app.
Enter a contact email and select Create.
Step 4: Create the OAuth Client
In Google Auth Platform, go to Clients and select Create client.
For Application type, select Web application.
Enter a name, for example Cakewalk Gateway.
Under Authorized redirect URIs, select + Add URI and enter Cakewalk's redirect URI:
Select Create and copy the Client ID and Client Secret. Google shows the secret only once, so store it somewhere safe or download the JSON file.
Step 5: Add the Connection in Cakewalk
Go to Connections, select Add org connection, then Browse catalog.
Select Google BigQuery and select Continue.
Enter the Client ID and Client Secret from Step 4.
Select Confirm.
Credentials are encrypted in your browser before they reach Cakewalk.
Step 6: Employees Connect
From an agent platform connected to Cakewalk, the employee connects Google BigQuery, signs in with their Google account and allows access. Each call then runs with that employee's IAM roles from Step 2, and each call is still evaluated against your Policies.
What Agents Can Do
The BigQuery MCP server offers tools to list datasets and tables, read table and dataset details, and run SQL. A separate read-only SQL tool only allows queries that do not change data. Google limits results to 3,000 rows per query and stops queries after three minutes. Google Drive external tables are not supported. Query costs follow your normal BigQuery pricing for the project.
Verifying It Works
The Google BigQuery Connection card flips to Active on All Connections. From an agent platform connected to Cakewalk, ask the agent to run a small query, for example:
If BigQuery returns rows, the Connection is live.
Troubleshooting
Google shows a redirect URI mismatch error. The Authorized redirect URIs entry must match
https://mcp-gateway.getcakewalk.io/api/v1/Auth/Callbackexactly, with no trailing slash.Google blocks the sign in or says the app is not verified. The Audience is set to External. Switch it to Internal, or add the employee as a test user under Audience.
Tool calls return a permission error. The employee is missing one of the roles from Step 2 on the project that holds the data.
Tool calls say the API is not enabled. Enable the BigQuery API in the project (Step 1).
The Connection does not appear in the catalog. Add BigQuery as a custom Connection instead: Connection type OAuth with client ID and secret, MCP Url
https://bigquery.googleapis.com/mcp. See Add a Custom Connection.
Learn More
Last updated
Was this helpful?