ergut/mcp-bigquery-server
FreeGoogle BigQuery 集成的服务器实现,支持直接访问和查询。
About ergut/mcp-bigquery-server
A Model Context Protocol (MCP) server that provides secure, read-only access to Google BigQuery datasets. It enables Large Language Models (LLMs) such as Claude to query and analyze BigQuery data through a standardized interface without writing SQL manually. The server is read-only by design — only SELECT statements are allowed, and every query is validated by BigQuery's dry-run planner before execution to prevent any mutations. It supports access to tables and materialized views, schema exploration, configurable safe limits (via --maximum-bytes-billed), and field-level access restrictions to protect sensitive data like PII, PHI, and financial information. An auto-discovery feature scans the entire warehouse for columns matching sensitive patterns (names, emails, SSNs, medical records, API keys) and automatically adds them to the restricted list. Configuration is driven by a config.json file, allowing custom detection patterns, scan frequency, billing limits, and per-table field restrictions.
Key Features
Pros & Cons
- Read-only safety ensures no data mutations can occur
- Natural language interface eliminates need to write SQL manually
- Field-level restrictions protect sensitive data from AI agents
- Auto-discovery of sensitive columns reduces manual maintenance
- Configurable limits prevent runaway queries and cost overruns
- Limited to SELECT queries only, not suitable for data modification tasks
- Requires Google Cloud BigQuery setup and authentication
- Only works with MCP-compatible clients (e.g., Claude Desktop, Claude Code)