Google BigQuery MCP server
62 operations0 webhooks
Serverless data warehouse for running SQL analytics on massive datasets at scale.
Try Google BigQuery with your agent
Connect Google BigQuery, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Google BigQuery on my account, then run one read-only example and show me the result.
Google BigQuery tools and triggers
Tools are what your agent can do in Google BigQuery through Corsair's MCP server. Triggers are the Google BigQuery events a routine can start from.
Iam
- Create Locations DatapoliciesWrite
Create a column-level security / data masking policy
iam.createLocationsDatapolicies
- Get Connection Iam PolicyRead-only
Get a connection's IAM policy
iam.getConnectionIamPolicy
- Get Routine Iam PolicyRead-only
Get a routine's IAM policy
iam.getRoutineIamPolicy
- Get Service AccountRead-only
Get the project's BigQuery service account email
iam.getServiceAccount
- Get Table Iam PolicyRead-only
Get a table's IAM policy
iam.getTableIamPolicy
- List Locations DatapoliciesRead-only
List data policies in a location
iam.listLocationsDatapolicies
- List Row Access PoliciesRead-only
List a table's row-level access policies
iam.listRowAccessPolicies
- Set Routine Iam PolicyWrite
Replace a routine's IAM policy
iam.setRoutineIamPolicy
- Test Routine Iam PermissionsRead-only
Test which permissions the caller has on a routine
iam.testRoutineIamPermissions
Queries
- Cancel JobDestructive
Request cancellation of a running job
queries.cancelJob
- Delete Job MetadataDestructive
Delete a job's metadata
queries.deleteJobMetadata
- Get JobRead-only
Get a job by ID
queries.getJob
- Get Query ResultsRead-only
Fetch additional pages of results for a running/completed query job
queries.getQueryResults
- Insert AllWrite
Stream rows into a table (supports insertId-based deduplication)
queries.insertAll
- Insert JobWrite
Start a query, load, extract, or copy job (supports dry-run)
queries.insertJob
- Insert Job With UploadWrite
Start a load job that uploads an inline file as the data source
queries.insertJobWithUpload
- List JobsRead-only
List jobs for a project
queries.listJobs
- QueryRead-only
Run a SQL query and return inline results
queries.query
Reservations
- CreateWrite
Create a new slot reservation (has billing impact)
reservations.create
- Create AssignmentWrite
Assign a project/folder/org to a reservation
reservations.createAssignment
- Create Capacity CommitmentWrite
Purchase a new capacity commitment (has billing impact)
reservations.createCapacityCommitment
- ListRead-only
List slot reservations in a location
reservations.list
- List AssignmentsRead-only
List a reservation's assignments
reservations.listAssignments
- List Capacity CommitmentsRead-only
List capacity commitments in a location
reservations.listCapacityCommitments
- List GroupsRead-only
List reservation groups in a location
reservations.listGroups
- Search All AssignmentsRead-only
Search assignments across a location
reservations.searchAllAssignments
Analytics Hub
- Create Data ExchangeWrite
Create a new data exchange
analyticsHub.createDataExchange
- Create ListingWrite
Create a new listing (shareable dataset) in a data exchange
analyticsHub.createListing
- Create Query TemplateWrite
Create a new query template in a data exchange
analyticsHub.createQueryTemplate
- List Dataexchanges ListingsRead-only
List data exchanges in a location
analyticsHub.listDataexchangesListings
- List ListingsRead-only
List listings in a data exchange
analyticsHub.listListings
- List Organization Data ExchangesRead-only
List data exchanges across an organization
analyticsHub.listOrganizationDataExchanges
- List Query TemplatesRead-only
List query templates in a data exchange
analyticsHub.listQueryTemplates
Datasets
- CreateWrite
Create a new dataset
datasets.create
- DeleteDestructive
Permanently delete a dataset [DESTRUCTIVE · IRREVERSIBLE]
datasets.delete
- GetRead-only
Get a dataset by ID
datasets.get
- ListRead-only
List datasets in a project
datasets.list
- PatchWrite
Partially update a dataset
datasets.patch
- UndeleteWrite
Restore a recently deleted dataset
datasets.undelete
- UpdateWrite
Replace a dataset (full update)
datasets.update
Tables
- CreateWrite
Create a new table or view
tables.create
- DeleteDestructive
Permanently delete a table [DESTRUCTIVE · IRREVERSIBLE]
tables.delete
- Get SchemaRead-only
Get a table's schema and metadata
tables.getSchema
- ListRead-only
List tables in a dataset
tables.list
- List Table DataRead-only
List a table's row data
tables.listTableData
- PatchWrite
Partially update a table
tables.patch
- UpdateWrite
Replace a table (full update)
tables.update
Ml
- Delete ModelDestructive
Permanently delete a model [DESTRUCTIVE · IRREVERSIBLE]
ml.deleteModel
- Get Bigquery ModelRead-only
Get a BigQuery ML model by ID
ml.getBigqueryModel
- List LocationsRead-only
List available BigQuery locations for a project
ml.listLocations
- List ModelsRead-only
List BigQuery ML models in a dataset
ml.listModels
- List ProjectsRead-only
List projects visible to the caller
ml.listProjects
- Patch ModelWrite
Partially update a model's metadata
ml.patchModel
Routines
- CreateWrite
Create a new routine (UDF or stored procedure)
routines.create
- DeleteDestructive
Permanently delete a routine [DESTRUCTIVE · IRREVERSIBLE]
routines.delete
- GetRead-only
Get a routine by ID
routines.get
- ListRead-only
List routines (UDFs/stored procedures) in a dataset
routines.list
- UpdateWrite
Replace a routine (full update)
routines.update
Connections
- CreateWrite
Create a new external data source connection
connections.create
- List Big Query ConnectionsRead-only
List BigQuery connections across all locations
connections.listBigQueryConnections
- List Locations ConnectionsRead-only
List BigQuery connections in a specific location
connections.listLocationsConnections
- UpdateWrite
Update an existing connection
connections.update
Connect Google BigQuery to Claude, ChatGPT or Cursor
- 1
Connect Google BigQuery in Corsair
Sign in to Google BigQuery once in Corsair. Corsair stores the credential encrypted and makes the Google BigQuery API calls for your agent, so it never goes into a prompt or a config file. Connect Google BigQuery
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Google BigQuery. On a ChatGPT personal plan, connect Google BigQuery here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Google BigQuery's read and write operations run right away and its 6 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/googlebigquery, add the Google BigQuery plugin, and connect with OAuth. Then call methods like corsair.googlebigquery.api.analyticsHub.createDataExchange() from your app. Corsair stores tokens, and syncs data per tenant.
Yes. Google BigQuery needs an OAuth app with scopes that match what you automate. Register the app in Google BigQuery, configure redirect URLs, then connect through Corsair or managed OAuth in Hub.
Yes. One Corsair client can hit Google BigQuery, GitHub, Notion, Stripe, and the rest. Trigger Google BigQuery from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for serverless data warehouse for running SQL analytics on massive datasets at scale. Common builds include sync jobs, admin tooling, and agents that call Google BigQuery APIs from your backend. Local DB entities let you query synced Google BigQuery records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Google BigQuery API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/googlebigquery in the open repo. When Google BigQuery ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Google BigQuery data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Google BigQuery data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Google BigQuery on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 6 destructive Google BigQuery operations. You can change a link's mode at hub.corsair.dev/me.