Prerequisites
You’ll need to create a custom role and service account in GCP. This role and service account must be added to each Project you want Sidecar to ingest metadata for.1. Setting up a role and service account
- GCP Console
- Bash Script
Create a custom role in GCP
- Navigate to
Rolesin theIAM & Adminsection. - Click the
+ Create Rolebutton. - Give the new role a name such as
Sidecar Data BigQuery. - Click
+ Add Permissions, and add the following permissions:
- Click
Createto create the role. - Repeat the role creation process for each Project you want Sidecar to ingest metadata for.
Create a service account
- Navigate to
Service accountsin theIAM & Adminsection. - Click
+ Create Service Account. - Give the new service account a name like
sidecar-data. - Under “Grant this service account access to project”, select the custom role you created above.
- Click
Done. - For all other Projects you want Sidecar to ingest metadata for:
- Navigate to
IAMin theIAM & Adminsection. - Click
+ Grant Access. - Under “Add principals”, enter the email address generated for the service account.
- Under “Assign roles”, select the custom role you created.
- Click
Save.
- Navigate to
2. Create and download key credentials
- For your primary Project, navigate to
Service accountsin theIAM & Credentialssection. - Find the service account you created for Sidecar, click the 3 dots and click
Manage keys. - Click
Add key, thenCreate new key. - Select JSON as the Key type.
- Click
Create. This will download a JSON file to your machine.
3. Upload your service account key to Sidecar
- In the Onboarding page (or Account Settings), navigate to “Connect your data warehouse” and select “BigQuery”.
- Select the downloaded JSON key file from Step 2.
- Click
TestthenSave.
4. Additional Permissions
- Cloud Resource Manager API and Cloud Asset API must be enabled.
- Add the
Cloud Asset Viewerrole to the Sidecar service account.
Add BigQuery MCP to Agent Console
The warehouse connection above does not automatically provide query tools to agents. Themcp.tools.call permission in the custom role enables Google’s
managed MCP servers. Follow Set up BigQuery
MCP to confirm the connection.