Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Bigquery Server

MCP server by ergut Verified · npm:@ergut

Lets AI assistants such as Claude run read-only SQL queries against Google BigQuery data through the Model Context Protocol. It is for users who want to ask questions in plain English, including teams that need field-level restrictions on sensitive data.

  • Score 63
  • 148 stars
  • 1.9k a week
  • MIT
  • Updated

Install MCP Bigquery Server

Built from the published package, never by AI.

claude mcp add mcp-bigquery-server -- npx -y @ergut/mcp-bigquery-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Bigquery Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-bigquery-server block.

About

MCP Bigquery Server lets AI assistants such as Claude query Google BigQuery data using plain English questions. It only allows SELECT statements. Each query is validated by BigQuery's dry-run planner before it runs, so statements such as INSERT, UPDATE, DELETE and MERGE are rejected. Tables and materialized views can be queried, and dataset schemas can be explored with tables and views labeled.

An optional config.json enables Protected Mode. Administrators can define preventedFields to block sensitive columns, and an auto-scanner can find columns matching sensitive patterns across datasets. Billing limits are set per query, with a 1GB default. The server suits personal projects with non-sensitive data, and teams handling PHI, PII or financial data that need field restrictions. It is published on npm under the MIT License.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Run SQL queriesRuns SELECT queries against BigQuery when the user asks a question in plain English.
  • Explore dataset schemasLists dataset schemas with tables and views clearly labeled by resource type.
  • Query tables and materialized viewsAccesses both tables and materialized views in the user's datasets.
  • Field-level restrictionsBlocks columns listed in preventedFields so the agent cannot surface them.
  • Auto-discover sensitive fieldsScans datasets for columns matching sensitive patterns and adds them to the restricted list.

What you need

  • Node.js 14 or higher
  • A Google Cloud project with BigQuery enabled
  • Google Cloud CLI or a service account key file
  • An MCP-compatible client such as Claude Desktop or Claude Code

Try asking

  • What were our top 10 customers last month?
  • Show me the schema of the tables in my sales dataset.
  • Summarize our billing transactions without exposing card numbers.

Good to know

  • Read-only: only SELECT statements are allowed.
  • Field restrictions are cooperative guardrails, not a hard SQL firewall against adversarial attackers.
  • Some complex view types might have limitations.
  • Without a config file the server uses a 1GB query limit and has no field restrictions.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MCP Bigquery Server

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

MCP Bigquery Server: common questions

Can this MCP server change or delete data in BigQuery?

No. The server allows only SELECT statements and rejects INSERT, UPDATE, DELETE, DROP, TRUNCATE, EXPORT DATA and MERGE.

How does it protect sensitive columns?

Administrators define preventedFields in config.json, and the server blocks queries that would surface those columns. An automated scanner can also discover sensitive columns across all datasets.

How are query costs limited?

Each query has a maximum bytes billed, set by maximumBytesBilled in config.json or the --maximum-bytes-billed flag. The default is 1GB.

How do I install MCP Bigquery Server?

In Claude Code run claude mcp add mcp-bigquery-server -- npx -y @ergut/mcp-bigquery-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Bigquery Server the official server?

MCP Bigquery Server is published by npm:@ergut from its verified domain in the official MCP Registry.

Is MCP Bigquery Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Bigquery Server safe to use?

It scores 63 of 100. Grades: maintenance D, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Bigquery Server?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does MCP Bigquery Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Bigquery Server Install

Add to stack

Loading.