BigQuery MCP Server
@ergut
About BigQuery MCP Server
A Model Context Protocol (MCP) server that provides secure, read-only access to BigQuery datasets. Enables Large Language Models (LLMs) to safely query and analyze data through a standardized interface.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-bigquery-server": {
"command": "npx",
"args": [
"@ergut/mcp-bigquery-server",
"--project-id",
"your-project-id",
"--location",
"europe-west1",
"--key-file",
"/path/to/key.json",
"--config-file",
"/path/to/config.json",
"--maximum-bytes-billed",
"2000000000"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is BigQuery MCP Server?
BigQuery MCP Server lets LLMs like Claude talk directly to your BigQuery data — read-only, with no ability to mutate your warehouse. It uses the Model Context Protocol (MCP) to translate natural language into safe SQL queries, making it ideal for AI‑assisted data exploration.
How to use BigQuery MCP Server?
Set up authentication (gcloud auth application-default-login or a service account key file), then add the server to your MCP client’s config (e.g., claude_desktop_config.json or .mcp.json). Run via npx @ergut/mcp-bigquery-server with flags such as --project-id, --location, --key-file, and --config-file. Once configured, open your client and chat with your data in plain English.
Key features of BigQuery MCP Server
- Read-only by design — only
SELECTstatements are allowed. - Run SQL queries by asking questions in plain English.
- Access both tables and materialized views with schema exploration.
- Configurable safe limits via
config.jsonor command line. - Protect sensitive data with field‑level restrictions.
- Auto‑discover sensitive columns across all datasets.
Use cases of BigQuery MCP Server
- Ask “What were our top 10 customers last month?” and get an answer in plain English.
- Explore dataset schemas without writing any SQL.
- Query BigQuery from AI assistants while preventing exposure of PII/PHI.
- Automatically scan for and restrict sensitive fields across the entire warehouse.
FAQ from BigQuery MCP Server
What are the prerequisites to run the server?
You need Node.js 14+, a Google Cloud project with BigQuery enabled, and an MCP‑compatible client (e.g., Claude Desktop or Claude Code).
How do I authenticate with Google Cloud?
Use gcloud auth application-default-login for development or provide a service account key file via the --key-file argument for production.
Does the server modify my BigQuery data?
No. The server is read‑only — only SELECT statements are allowed. Every query is validated by BigQuery’s dry‑run planner, so mutations are rejected.
How can I protect sensitive data from the AI agent?
Define preventedFields in config.json to block specific columns, and enable auto‑scanning to automatically discover and restrict sensitive fields across all datasets.
What are the main limitations?
Processing limits are configurable per query. Some complex view types may not be supported. A config file is optional; without one the server uses safe defaults.
More Databases MCP servers
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
MotherDuck's DuckDB MCP Server
motherduckdbLocal MCP server for DuckDB and MotherDuck
Comments