# bigquery-mcp [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/SnowLeopard-AI/bigquery-mcp  
**GitHub Stars:** 10  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bigquery-mcp

## Description
A SnowLeopardAI-managed MCP server that provides access to Google BigQuery data.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "bigquery-mcp": {
    "command": "uvx",
    "args": ["sl-bigquery-mcp"],
    "env": {
      "BQ_PROJECT": ""
    }
  }
}
```

**Requires environment variables:** `BQ_PROJECT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/bigquery-mcp/readme_

