Connects Claude to Google BigQuery through the Model Context Protocol. Exposes three core operations: listing tables, fetching schemas, and executing arbitrary SQL queries. Resources provide browsable access to table metadata at `bigquery://tables` URIs, while the query tool lets Claude run SQL directly against your datasets. Built by SnowLeopard AI as a benchmarking tool for their platform, now open sourced. Authentication uses Google Cloud CLI credentials, and you configure it by pointing at specific datasets or tables in your project. Supports both public datasets like `bigquery-public-data.usa_names` and your private tables. Reach for this when you need to give Claude read access to your data warehouse without building custom extraction pipelines.
Public tool metadata for what this MCP can expose to an agent.
list_dataset_idsList BigQuery dataset IDs in a Google Cloud project.1 paramsList BigQuery dataset IDs in a Google Cloud project.
projectIdstringget_dataset_infoGet metadata information about a BigQuery dataset.2 paramsGet metadata information about a BigQuery dataset.
datasetIdstringprojectIdstringlist_table_idsList table ids in a BigQuery dataset.2 paramsList table ids in a BigQuery dataset.
datasetIdstringprojectIdstringget_table_infoGet metadata information about a BigQuery table.3 paramsGet metadata information about a BigQuery table.
tableIdstringdatasetIdstringprojectIdstringexecute_sqlRun a SQL query in the project and return the result. This tool is restricted to only `SELECT` statements. `INSERT`, `UPDATE`, and `DELETE` statements and stored procedures aren't allowed. If the query doesn't include a `SELECT` statement, an error is returned. For information...3 paramsRun a SQL query in the project and return the result. This tool is restricted to only `SELECT` statements. `INSERT`, `UPDATE`, and `DELETE` statements and stored procedures aren't allowed. If the query doesn't include a `SELECT` statement, an error is returned. For information...
querystringdryRunbooleanprojectIdstring
A Model Context Protocol (MCP) server for Google BigQuery that enables AI agents to interact with BigQuery databases through natural language queries and schema exploration.
This project was developed by Snow Leopard AI as a benchmarking tool for our platform, and we're making it publicly available for the community to use and build upon.
The Model Context Protocol (MCP) is an open standard that allows AI applications to securely connect to external data sources and tools. This BigQuery MCP server acts as a bridge between AI agents and your BigQuery datasets.
| Resource URI | Description |
|---|---|
bigquery://tables | List all tables available to the agent |
bigquery://tables/{table}/schema | Get the schema of a specific table |
| Tool | Description |
|---|---|
list_tables(table: str) (optional) | List available tables |
get_schema(table: str) (optional) | Get the schema of a given table |
query(sql: str) | Execute BigQuery SQL and return results |
Before getting started, ensure you have:
First, we need to authenticate with Google.
gcloud auth application-default login
This opens your browser to authenticate your local machine with Google Cloud.
Edit your claude_desktop_config.json file to add the BigQuery MCP server.
Application: Claude > Settings > Developer > Edit Config
Mac: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\\Claude\\claude_desktop_config.json
You will need to set your project to a Google Cloud project with permissions to submit bigquery jobs. If you do not have a project that you can run bigquery jobs on, create and test one by following Google's BigQuery Quickstart Guide Create a project and follow the instructions to query a public dataset.
{
"mcpServers": {
"bigquery": {
"command": "uvx",
"args": [
"sl-bigquery-mcp",
"--dataset",
"bigquery-public-data.usa_names",
"--project",
"🚨 <projectName> 🚨"
]
}
}
}
Depending on how you have installed uv, the uvx executable may not be in Claude Desktop's PATH if it is launched from the GUI. To be sure uvx is accessible from Claude Desktop, let's run it in the terminal.
open -a claude
After saving the configuration, restart Claude Desktop. You should now be able to ask Claude questions about your BigQuery data!
What are the top 10 most popular names in 2020?
To see a complete list of parameters:
uvx sl-bigquery-mcp --help
Usage: sl-bigquery-mcp [OPTIONS]
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --mode [stdio|sse|streamable-http] MCP transport protocol [default: stdio] │
│ --dataset TEXT Dataset(s) for mcp resources. Will create resources for all tables. │
│ --table TEXT Table(s) for mcp resources. Can be specified as project.dataset.table or dataset.table │
│ --enable-list-tables-tool --no-enable-list-tables-tool Registers list_resources tool [default: enable-list-tables-tool] │
│ --enable-schema-tool --no-enable-schema-tool Registers get_schema tool [default: enable-schema-tool] │
│ --project TEXT BigQuery project [env var: BQ_PROJECT] [default: None] │
│ --api-method [INSERT|QUERY] BigQuery client api_method [default: QUERY] │
│ --port INTEGER [default: 8000] │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
First, check out your Claude Desktop app logs (in the same directory as the config file) for more verbose errors / logging
This usually means Claude is having issues starting the mcp server. Frequently this is due to uvx being inaccessible from
the application. In this case, use the full path to your uvx executable instead of just uvx in claude_desktop_config.json.
To find your uv executable, run
which uvx
Otherwise, this may be caused by bad arguments, dependency version incompatibilities, or bugs. If you run into the last two, please file an issue describing the problem.
This may be a misconfiguration mcp server, authentication issues, the llm getting too much data, or of course, product bugs. After checking the logs, consider using the MCP Inspector to debug your issue. And of course, file any bugs you find on our issue board.
git clone https://github.com/SnowLeopard-AI/bigquery-mcp.git
cd bigquery-mcp
uv sync
source .venv/bin/activate
sl-bigquery-mcp --help
The following command will launch a browser for you to login to your google cloud account. You must have a Google Cloud
project with BigQuery enabled. If you don't, see Google's bigquery setup guide.
gcloud auth application-default login
gcloud config set project <projectName>
gcloud auth application-default set-quota-project <projectName>
Run the tests to make sure your dev environment is properly configured.
pytest tests
Note: the tests run actual BigQuery queries against public datasets and require authentication.
For hands-on testing and development, use the MCP Inspector tool:
npx @modelcontextprotocol/inspector uv run sl-bigquery-mcp --dataset bigquery-public-data.usa_names
We welcome contributions! Please coordinate with us on discord to ensure your changes can quicly make it into the repo. Communicating before coding always saves time.
For logistics of contributing to an open source project, see the first contributions repository.
Issues: GitHub Issues
Documentation: BigQuery Documentation
MCP Protocol: Model Context Protocol
Contact: Discord Server
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json