The prebuilt BigQuery configuration in MCP Toolbox for Databases gives a local MCP client a documented route to BigQuery. This guide follows that route from credentials to a connection check. It does not compare tool counts with a separate managed service or assume that a hosted endpoint removes setup requirements.
Sources checked September 10, 2026. No authenticated BigQuery installation or query was run for this article.
Prepare your Google Cloud project
Use a project with billing enabled and the BigQuery API enabled. Ask the project administrator for the access needed for the intended datasets and operations; Google's guide identifies BigQuery User and Data Viewer roles or equivalent permissions. Configure Application Default Credentials for the environment running the client. Google's BigQuery Toolbox guide.
For local user credentials, Google's ADC setup documents the following command after installing the Google Cloud CLI:
gcloud auth application-default loginFollow the browser flow for the account with the intended access. ADC setup is separate from choosing a project in an application, so confirm which identity your local process will use. Local ADC instructions.
Install the Toolbox binary
Use the download section in the official setup guide to select a release for your operating system and CPU architecture. Save the binary to a location you will keep. On macOS or Linux, make it executable and check its version from that directory:
chmod +x toolbox
./toolbox --versionConfigure Claude Code
Create or merge into .mcp.json in your project root:
{
"mcpServers": {
"bigquery": {
"command": "/absolute/path/to/toolbox",
"args": ["--prebuilt", "bigquery", "--stdio"],
"env": {
"BIGQUERY_PROJECT": "YOUR_PROJECT_ID"
}
}
}
}Replace both placeholders. On Windows, supply the actual executable path using JSON-escaped backslashes or forward slashes. This example uses the prebuilt configuration, so there is no tools.yaml to create. Google's client section documents these arguments and the project environment variable. Client configuration.
Verify access before querying data
Start Claude Code in the project, inspect the server in /mcp, then ask it to list the datasets it can access without executing SQL or changing data. Compare the result with the Cloud console using the same account.
If the process fails to start, check the executable path and permissions. If it starts but access fails, check ADC, the selected project, and IAM permissions. Record the first failing operation rather than replacing the configuration with an unrelated server.
For the next test, use a dataset you understand and review the proposed SQL before execution. A successful connection does not establish that a generated query is correct, economical, or authorized. Browse database integrations for discovery; use the publisher's setup documentation for each server you actually install.