Bigquery MCP logo

Bigquery MCP

Lets AI agents query Google BigQuery, inspect table schemas, and discover available tables through MCP.

Install Bigquery MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "bigquery-mcp": {
      "command": "uvx",
      "args": [
        "sl-bigquery-mcp"
      ],
      "env": {
        "BQ_PROJECT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx sl-bigquery-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Query Google BigQuery with the bigquery-mcp MCP server using natural-language requests translated into BigQuery SQL. It exposes table and schema resources, plus optional discovery tools and a SQL query tool over stdio, SSE, or streamable HTTP. Use it when an AI client needs controlled access to specified BigQuery datasets or tables.

Use cases

  • Query BigQuery datasets with natural-language prompts
  • Inspect table schemas before generating SQL
  • List tables available in a configured dataset
  • Test BigQuery MCP workflows with public datasets

Key features

  • Execute BigQuery SQL through MCP
  • Expose table-listing and schema resources
  • Optionally register table and schema tools
  • Support stdio, SSE, and streamable HTTP transports
  • Target datasets or individual tables
  • Configure the Google Cloud project by argument or environment variable

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/27 checks healthy over the last 105d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · sl-bigquery-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Bigquery MCP works

What bigquery-mcp MCP server does

The bigquery-mcp MCP server connects AI applications to Google BigQuery through the Model Context Protocol. It gives an agent access to table metadata and query results, allowing users to ask questions about configured datasets in natural language while the server executes BigQuery SQL.

The server can publish a resource listing the available tables at bigquery://tables. Individual table schemas are available through resource URIs in the form bigquery://tables/{table}/schema. These resources help an agent understand which data is available and how its columns are structured before composing a query.

How it works

The command-line entry point is sl-bigquery-mcp. By default, it uses the stdio MCP transport, which is suitable for desktop clients that launch local processes. It also supports SSE and streamable HTTP modes through the --mode option. HTTP mode uses port 8000 by default and can be changed with --port.

A dataset can be supplied with --dataset, and the server creates resources for the tables in that dataset. Specific tables can instead be supplied with --table, using either project.dataset.table or dataset.table notation. The Google Cloud project used for BigQuery operations is set with --project or the BQ_PROJECT environment variable.

Setup and configuration

Running the bigquery-mcp MCP server requires a Google Cloud project with BigQuery enabled and Google application-default credentials. Authenticate locally with:

bash
gcloud auth application-default login

The README demonstrates launching it through uvx and configuring Claude Desktop with a dataset and project. The package name used in that configuration is sl-bigquery-mcp. Run uvx sl-bigquery-mcp --help to view the available command-line options.

For local development, clone the repository, run uv sync, activate the virtual environment, and invoke sl-bigquery-mcp. The test suite uses real queries against public datasets, so authenticated Google Cloud access is needed for those tests.

Tools and capabilities

Available MCP tools include:

  • query(sql: str): Executes BigQuery SQL and returns the results.
  • list_tables(table: str): Lists available tables when the list-tables tool is enabled.
  • get_schema(table: str): Returns the schema for a selected table when the schema tool is enabled.

The list-tables and schema tools are enabled by default but can be disabled with --no-enable-list-tables-tool and --no-enable-schema-tool. The corresponding positive flags are also available. Resource exposure and tool registration can therefore be limited to the metadata access an MCP client needs.

Limitations and notes

The server does not provide a separate data store; queries run against Google BigQuery using the configured Google Cloud project and credentials. Access depends on those credentials having permission to submit BigQuery jobs and read the requested data.

Large result sets, authentication failures, invalid arguments, dependency issues, and startup problems can affect resource or tool usage. If a desktop client cannot locate uvx, use its full executable path in the client configuration. The README recommends checking client logs and using MCP Inspector when diagnosing startup or request errors.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Bigquery MCP

bigquery-mcp is an MCP server that connects AI applications to Google BigQuery datasets. Its main tools execute SQL queries, list available tables, and retrieve table schemas. Table-listing and schema tools are optional, while the query tool runs BigQuery SQL and returns results through the configured MCP transport.

Install and run it through the `sl-bigquery-mcp` package with `uvx`, or clone the repository and use `uv sync` for local development. You also need the Google Cloud CLI, a BigQuery-enabled project, and application-default authentication.

Add an MCP server entry that runs `uvx sl-bigquery-mcp` and passes `--dataset` plus `--project` arguments. After saving `claude_desktop_config.json`, restart Claude Desktop; if the application cannot find `uvx`, use its full executable path.

Yes, bigquery-mcp supports SSE and streamable HTTP in addition to its default stdio transport. Select the transport with `--mode` and change the default HTTP port of 8000 with `--port`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBigquery MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bigquery-mcp?style=directory)](https://allmcps.com/mcp/bigquery-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/bigquery-mcp"><img src="https://allmcps.com/api/badge/bigquery-mcp?style=directory" alt="Bigquery MCP on AllMCPs" /></a>