Best for
- Developers and analysts who want to query BigQuery quickly via AI assistants
- Organizations that need to prevent AI agents from modifying data
- Environments with sensitive data that require field-level access restrictions
This server provides secure read-only access to BigQuery, ideal for teams that want to use AI for data queries while enforcing strict controls on sensitive data. It defaults to read-only and offers field-level restrictions, adding a layer of safety. However, users must be aware that data is sent to LLM providers and that field restrictions are not a firewall.
BigQuery MCP Server is a Model Context Protocol (MCP) server that provides secure, read-only access to BigQuery datasets. It acts as a translator between AI assistants and your data warehouse, allowing you to query data in natural language. The server only allows SELECT statements; every query is validated by BigQuery's dry-run planner, so INSERT, UPDATE, DELETE, DROP, TRUNCATE, EXPORT DATA, and MERGE are all rejected. It supports configurable query byte limits, field-level access restrictions, and automatic discovery of sensitive columns (e.g., names, emails, SSNs) to prevent AI agents from reading PII, PHI, or financial data.
gcloud auth application-default login.{
"mcpServers": {
"bigquery": {
"command": "npx",
"args": ["-y", "@ergut/mcp-bigquery-server", "--project-id", "your-project-id"]
}
}
}
{
"mcpServers": {
"bigquery": {
"command": "npx",
"args": [
"-y",
"@ergut/mcp-bigquery-server",
"--project-id",
"your-project-id"
]
}
}
}