Set up the Google BigQuery connector
Configure the Google BigQuery connector in AI Studio under Connectors & Tools. The Google BigQuery connector requires organization-managed OAuth authentication.The Google BigQuery connector only supports organization-managed OAuth. You
must create your own Google Cloud OAuth application. Writer-managed OAuth is
not available for Google BigQuery.
Google OAuth credentials expire after 6 months of inactivity. If the Google
BigQuery connector is not used for 6 months, users will need to
re-authenticate.
Enable the BigQuery MCP server
Before configuring the connector, enable the BigQuery API and MCP server in your Google Cloud project:- Navigate to the Google Cloud Console
- Select your project or create a new one
- Enable the BigQuery API for your project (enabled by default for new projects)
- Enable the BigQuery MCP server by running the following command in the Google Cloud Shell or your local terminal with the Google Cloud CLI installed:
Replace
PROJECT_IDwith your Google Cloud project ID.
After March 17, 2026, the BigQuery remote MCP server is automatically enabled
when you enable BigQuery.
Create a Google OAuth application
Create a new Google OAuth application in the Google Cloud Console:- Navigate to the Google Cloud Console
- Select the same project where you enabled the BigQuery MCP server
- Navigate to APIs & Services → Credentials
- Configure the OAuth consent screen with your application details
- Create OAuth 2.0 credentials (Web application type)
- Add the Writer redirect URI to authorized redirect URIs:
- Configure the required OAuth scopes for your application
- Copy the client ID and client secret for use in AI Studio
Required OAuth scopes
https://www.googleapis.com/auth/bigquery- View and manage your data in BigQuery
Configure the connector in AI Studio
- Navigate to Connectors & Tools in AI Studio
- Select the Google BigQuery connector
- Select who has access by default (all users or specific teams)
- Select the connection type:
- Level: User level (each user authenticates their own account) or org level (shared connection to a single account)
- Select which tools to enable for your agents
- Enter your OAuth client ID and client secret
- Complete the OAuth authorization flow
Next steps
- Set up connectors: Learn how to configure and enable connectors in AI Studio
- MCP gateway overview: Learn about Writer’s MCP gateway architecture
- WRITER Agent guide: Learn how to use WRITER Agent with connected tools