BigQuery Data Platform

v0.4.0
io.github.deBilla/data-platform-mcp Checked 9 hours ago Published 2 months ago

Read-only BigQuery tools for plain-language data questions, with a cost gate on every query

Values you need

VariableWhat it is
BQ_MCP_ENVIRONMENTSoptional 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_ENVIRONMENToptional Environment used when a tool call omits the environment argument.
BQ_MCP_CONFIGoptional Path to a TOML config file, overriding ~/.config/data-platform-mcp/config.toml.
BQ_IMPERSONATE_SERVICE_ACCOUNToptional 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_PROJECToptional GCP project whose BigQuery datasets are queried. Falls back to the project associated with Application Default Credentials.
BQ_LOCATIONoptional BigQuery location for jobs and datasets. Defaults to US.
BQ_CODE_ASSET_LOCATIONoptional 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_ALLOWLISToptional Comma-separated dataset IDs the server may read. Empty means all datasets.
BQ_WARN_BYTESoptional Scan size above which a query is returned for user confirmation instead of run. Defaults to 1 GiB.
BQ_MAX_BYTES_BILLEDoptional Hard per-query scan cap; a query estimated above this never runs. Defaults to 5 GiB.
BQ_MCP_AUDIT_LOGoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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