Lists all available datasets in the configured Google Cloud project
Retrieves the schema of a specific dataset, showing tables and views
Executes a SQL query against BigQuery with read-only access
BigQuery MCP Server provides a secure bridge between Large Language Models and Google BigQuery databases. It enables natural language querying of your data, allowing you to ask questions in plain English and receive insights without writing SQL. The server maintains strict read-only access with processing limits to ensure data security while providing comprehensive access to tables and materialized views.
BigQuery MCP Server enables your AI assistants to directly query and analyze data stored in Google BigQuery. This integration allows for natural language conversations with your data, eliminating the need to manually write SQL queries or export data for analysis.
Before setting up the BigQuery MCP Server, ensure you have:
The easiest way to install BigQuery MCP Server is through Smithery:
npx @smithery/cli install @ergut/mcp-bigquery-server --client claude
The installer will guide you through the configuration process, asking for your Google Cloud project ID and BigQuery location (defaults to us-central1). Once configured, Smithery will automatically update your Claude Desktop configuration.
If you prefer manual configuration:
Authenticate with Google Cloud using one of these methods:
For development (using Google Cloud CLI):
gcloud auth application-default login
For production (using a service account): Create and download a service account key file from the Google Cloud Console
Configure Claude Desktop by editing your claude_desktop_config.json
file
The BigQuery MCP Server requires one of the following permission sets:
roles/bigquery.user
(recommended)roles/bigquery.dataViewer
and roles/bigquery.jobUser
Ensure your Google Cloud user account or service account has the appropriate permissions to access the datasets you want to query.
Once installed and configured, you can start using the BigQuery MCP Server by:
Example queries:
The server will translate your natural language questions into SQL queries, execute them against your BigQuery datasets, and return the results in a readable format.
If you encounter issues:
For persistent issues, visit the GitHub repository to report bugs or request features.