BigQuery Data Platform
v0.4.0Read-only BigQuery tools for plain-language data questions, with a cost gate on every query
Values you need
| Variable | What it is | |
|---|---|---|
BQ_MCP_ENVIRONMENTS | optional | JSON map of environment name to BigQuery settings (project, location, impersonate, dataset_allowlist, byte caps). Omit when using a config file at ~/.config/data-platform-mcp/config.toml. |
BQ_MCP_DEFAULT_ENVIRONMENT | optional | Environment used when a tool call omits the environment argument. |
BQ_MCP_CONFIG | optional | Path to a TOML config file, overriding ~/.config/data-platform-mcp/config.toml. |
BQ_IMPERSONATE_SERVICE_ACCOUNT | optional | Read-only service account to impersonate, making read-only a property of the identity rather than of this code. Create it with `data-platform-mcp setup`. |
BQ_PROJECT | optional | GCP project whose BigQuery datasets are queried. Falls back to the project associated with Application Default Credentials. |
BQ_LOCATION | optional | BigQuery location for jobs and datasets. Defaults to US. |
BQ_CODE_ASSET_LOCATION | optional | Region holding BigQuery Studio notebooks and saved queries. Separate from BQ_LOCATION and usually different: code assets are regional and Dataform rejects multi-regions, so datasets in US typically pair with code assets in a region like us-central1. A wrong region returns an empty list rather than a |
BQ_DATASET_ALLOWLIST | optional | Comma-separated dataset IDs the server may read. Empty means all datasets. |
BQ_WARN_BYTES | optional | Scan size above which a query is returned for user confirmation instead of run. Defaults to 1 GiB. |
BQ_MAX_BYTES_BILLED | optional | Hard per-query scan cap; a query estimated above this never runs. Defaults to 5 GiB. |
BQ_MCP_AUDIT_LOG | optional | Path for the JSONL tool-call audit log, or 'off' to disable it. SQL text is never recorded, only a hash and a length. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add data-platform-mcp -- uvx data-platform-mcp==0.4.0Add to
claude_desktop_config.json{
"mcpServers": {
"data-platform-mcp": {
"args": [
"data-platform-mcp==0.4.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"data-platform-mcp": {
"args": [
"data-platform-mcp==0.4.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"data-platform-mcp": {
"args": [
"data-platform-mcp==0.4.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.data-platform-mcp]
command = "uvx"
args = ["data-platform-mcp==0.4.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_environments, list_datasets, list_tables, get_table_schema, check_table_freshness, list_scheduled_queries, get_scheduled_query, list_code_assets, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json