# mcp-server-bigquery

> mcp-server-bigquery is an open-source MCP server for databases. MCP server giving AI assistants schema inspection and SQL querying on Google BigQuery. It is available on CLI and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/lucashild/mcp-server-bigquery
- **GitHub stars:** 129
- **License:** MIT
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-12-01

## About

Connects an AI client to a Google BigQuery project so a model can look at table structures and run queries against live data. Requests go out in BigQuery's SQL dialect, and results come back to the assistant for analysis.

Setup needs a GCP project ID and location. Access can be narrowed to specific datasets, authenticated with a service account key file or the default Google credentials, and bounded with a query timeout. It is launched with uvx and registered with clients such as Claude Code and Codex.

It suits data analysts and developers who want an assistant to explore BigQuery schemas and answer questions in natural language without leaving their editor or terminal.

## Features

- **Table listing:** Enumerates the tables available in the project or in the selected datasets.
- **Schema description:** Shows the column structure of a given table so the model can write correct queries.
- **SQL execution:** Runs BigQuery-dialect SQL statements and returns the results to the client.
- **Dataset filtering:** Restricts the server to chosen datasets instead of exposing the whole project.
- **Flexible authentication:** Accepts a service account key file or falls back to default Google Cloud credentials.
- **Query timeout:** Optional limit on how long a query may run before the server stops waiting.

## Good for

- Asking an assistant questions about data stored in BigQuery in plain language
- Letting a model inspect table schemas before drafting SQL
- Exploring unfamiliar datasets from inside a coding assistant
- Running ad hoc analytical queries without opening the BigQuery console

## Tools

From the tool list in its README, going by the names, 1 of 3 tools changes data. From the server's own tool labels and tool names; not verified by us.

- `execute-query` (name suggests: changes): Executes a SQL query using BigQuery dialect
- `list-tables` (name suggests: reads): Lists all tables in the BigQuery database
- `describe-table` (name suggests: reads): Describes the schema of a specific table

## FAQ

### Which tools does the server expose?

Three tools: execute-query runs a SQL query in BigQuery dialect, list-tables lists tables, and describe-table shows a table's schema.

### How is authentication handled?

You can pass a service account key file with --key-file or the BIGQUERY_KEY_FILE variable. If omitted, the server uses default credentials.

### Can I limit which datasets are visible?

Yes. Use --dataset one or more times, or set BIGQUERY_DATASETS as a comma-separated list. Without it, all datasets in the project are considered.

### Which arguments are required?

The GCP project ID (--project) and the GCP location (--location) are required.

### Is mcp-server-bigquery free?

Yes. mcp-server-bigquery is open source, so you can use and self-host it for free.

### What are the best alternatives to mcp-server-bigquery?

The closest alternatives to mcp-server-bigquery are mcp-bigquery-server, Bigquery MCP, sql-query-mcp, mysql_mcp_server and postgres_mcp.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [mcp-bigquery-server](https://ai-powered.com/mcp/mcp-bigquery-server): mcp-bigquery-server is an open-source MCP server for databases.
- [Bigquery MCP](https://ai-powered.com/mcp/bigquery-mcp-2): Bigquery MCP is an open-source MCP server for databases.
- [sql-query-mcp](https://ai-powered.com/mcp/sql-query-mcp): sql-query-mcp is an open-source MCP server for databases.
- [mysql_mcp_server](https://ai-powered.com/mcp/mysql-mcp-server-4): mysql_mcp_server is an open-source MCP server for databases.
- [postgres_mcp](https://ai-powered.com/mcp/postgres-mcp-5): postgres_mcp is an open-source MCP server for databases.
- [postgres-mcp](https://ai-powered.com/mcp/postgres-mcp-4): postgres-mcp is an open-source MCP server for databases.
- [pgmcp](https://ai-powered.com/mcp/pgmcp-2): pgmcp is an open-source MCP server for databases.
- [bigtableadmin.googleapis.com](https://ai-powered.com/mcp/bigtableadmin-googleapis-com): bigtableadmin.googleapis.com is an MCP server for databases.

---
Source: https://ai-powered.com/mcp/mcp-server-bigquery
