
mcp-bigquery-server
Read-only MCP server letting AI assistants query Google BigQuery data with field-level
mcp-bigquery-server is an open-source MCP server for databases. It is available on CLI, API and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- GitHub stars
- 148
- Last commit
- Language
- TypeScript
- License
- MIT
Similar MCP servers
About mcp-bigquery-server
Connects an AI assistant such as Claude to a BigQuery project so questions asked in plain English are turned into SQL and run against tables and materialized views. Only SELECT statements are accepted; each query is checked by BigQuery's dry-run planner before it executes, and write operations such as INSERT, DELETE, MERGE or EXPORT DATA are rejected.
Beyond the basic setup, administrators can restrict specific columns so the assistant cannot surface them, and an optional scanner searches datasets for columns matching sensitive name patterns and adds them to that restricted list. Behaviour, billing caps and scan frequency are controlled through a config.json file or command-line flags. Without a config file it runs with a default 1GB per-query billing limit and no field restrictions.
It suits analysts and developers who want conversational access to warehouse data, and teams in regulated fields who need guardrails on which personal or health columns reach the model. Field restrictions are described by the project as cooperative guardrails rather than a hard SQL firewall.
What it does
- Read-only query enforcement
- Only SELECT statements run, and each query is validated by BigQuery's dry-run planner before execution.
- Field-level restrictions
- Named table columns can be blocked so the assistant returns aggregates or omits them instead of raw values.
- Sensitive column scanner
- Optional scheduled scan of datasets that flags columns matching configurable name patterns.
- Query cost limits
- Maximum bytes billed per query is set in config or overridden from the command line.
- Table and view access
- Reads both tables and materialized views and labels resource types when exploring schemas.
- Service account or local auth
- Works with Google Cloud application default credentials or a service account key file.
Good for
- Asking an AI assistant for business metrics from BigQuery without writing SQL by hand
- Letting analysts explore warehouse schemas conversationally
- Giving an AI agent query access while keeping PII or health columns out of model context
- Capping query spend when AI-generated queries run against large datasets
- Running a pinned or locally built copy of the server for internal testing
Pricing
Open source
Free and open source under the MIT licence; BigQuery charges apply separately.
mcp-bigquery-server FAQ
Can the server modify data in BigQuery?
No. Only SELECT statements are allowed, and statements such as INSERT, UPDATE, DELETE, DROP, TRUNCATE, EXPORT DATA and MERGE are rejected.
What is the default query cost limit?
Without a config file the default maximum is 1GB billed per query, and this can be changed in config.json or with the maximum-bytes-billed flag.
How do I install mcp-bigquery-server?
Authenticate with the Google Cloud CLI or a service account key, then add an npx-based entry for @ergut/mcp-bigquery-server with your project ID to your MCP client config.
Is mcp-bigquery-server free to use?
The code is released under the MIT licence and runs on your own machine; BigQuery usage is billed by Google separately.
What are the best alternatives to mcp-bigquery-server?
The closest alternatives to mcp-bigquery-server are mcp-server-bigquery, BigQuery MCP, Bigquery MCP, Dbridge MCP and BigQuery Data Platform.
Where this comes from
- Description: written from the project's README.

