Skip to content

MCP server

BigQuery MCP server

Google's remote BigQuery MCP server lets AI list datasets and tables and run SQL, with a read-only query tool and IAM controls.

At a glance

Maintained by
Google Cloud
Tools exposed
6 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

BigQuery is Google Cloud's data warehouse, often home to analytics exports, marketing data and business reporting. Google hosts an official remote MCP server for it. An assistant can list datasets and tables, read table details and run SQL, with Google Cloud identity and IAM roles deciding what it can see.

For teams that already send Google Analytics or ad data to BigQuery, this is a direct path from question to answer.

The server offers a read-only query tool and a full SQL tool. We use the read-only tool for business users and block the full tool with an IAM deny policy where writes are not needed. Keep an eye on query costs, since large scans are billed.

Use cases

Best business use cases

Marketing analysis

Ask about campaign results stored in BigQuery.

Dataset discovery

List datasets and describe tables for new analysts.

Report drafts

Draft weekly summaries from warehouse data.

Ad hoc questions

Answer one-off questions without a new dashboard.

Analytics agents

Agents that combine BigQuery data with other sources.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read by default with execute_sql_readonly; execute_sql allows writes and can be blocked with an IAM deny policy.

  • list_dataset_ids

    Lists datasets in a project.

  • get_dataset_info

    Gets dataset metadata.

  • list_table_ids

    Lists tables in a dataset.

  • get_table_info

    Gets table schema and metadata.

  • execute_sql_readonly

    Runs read-only SQL queries.

  • execute_sql

    Runs read-write SQL; 3 minute timeout, 3,000 row limit.

Workflows

Example workflows

Campaign performance question

  1. 1

    Grant the assistant a role with data viewer access.

  2. 2

    Ask for conversions by campaign last month.

  3. 3

    It finds the right table and writes SQL.

  4. 4

    It runs the read-only query.

  5. 5

    It summarizes results and flags outliers.

Onboard a new analyst

  1. 1

    The analyst asks what datasets exist.

  2. 2

    The assistant lists them with descriptions.

  3. 3

    It describes key tables and fields.

  4. 4

    It runs a sample query.

  5. 5

    The analyst builds on the example.

Prompts

Example prompts

  • “Which campaigns had the most conversions last month, and at what cost per conversion?”

  • “List our datasets and describe the main tables in each.”

  • “Estimate how much data this query would scan before running it.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.json

{
    "name": "bigquery",
    "url": "https://bigquery.googleapis.com/mcp",
    "type": "streamable-http"
}

Claude Code: terminal

claude mcp add --transport http bigquery https://bigquery.googleapis.com/mcp
  • Hosted server: https://bigquery.googleapis.com/mcp (Streamable HTTP, Google OAuth 2.0 and IAM).
  • Needs: Google Cloud identity via OAuth 2.0 (scope https://www.googleapis.com/auth/bigquery); IAM roles: roles/mcp.toolUser, roles/bigquery.jobUser, roles/bigquery.dataViewer; BigQuery API enabled in the project.

Security

Security considerations

  • Read-only tool

    Prefer the read-only SQL tool and block full SQL with IAM where possible.

  • IAM roles

    Grant only the roles the task needs.

  • Cost control

    Large queries are billed. Set quotas and review scans.

  • Sensitive data

    Use authorized views to hide personal data.

Related servers

Servers that pair well with it

Snowflake

Snowflake's managed MCP server exposes admin-defined tools, such as Cortex agents, Cortex Analyst, Cortex Search and SQL, to AI assistants.

Google Analytics

Google Analytics' official MCP server lets AI run GA4 reports, funnels and realtime reports and read property settings. Read-only.

Google Cloud

Google's gcloud MCP servers let AI run gcloud commands, read logs, metrics, alerts and traces, and work with Cloud Storage.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.