Google Big Query
Server Details
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- Google Cloud BigQuery
TDQS
Scored across 9 tools
execute_sql vs execute_sql_readonly are well-separated by the read-only restriction and explicit 'prefer readonly' guidance. get_job vs get_query_results could be confused since both return job-related info, but the descriptions explicitly state get_query_results is ONLY for jobComplete:false polling or pagination, which largely resolves the boundary.
All tools follow a consistent snake_case verb_noun pattern: cancel_job, execute_sql, execute_sql_readonly, get_dataset_info, get_job, get_query_results, get_table_info, list_dataset_ids, list_table_ids. The verb set (cancel/execute/get/list) is applied predictably across resources.
Nine tools is well-scoped for a BigQuery server: query execution, job control, result pagination, and metadata inspection. Each tool has a clear role with no filler.
SQL execution covers DML/DDL so most operations (create/drop tables, datasets, models) are reachable, and metadata get/list plus job cancel/poll round out the lifecycle. Minor gaps: no list_jobs, no get_project_info, and no dedicated row-insert tool (only via SQL), but these are workable.
Available Tools
9 toolscancel_jobADestructiveIdempotentInspect
Cancel a running BigQuery job.
Use this tool to cancel a query job that is currently executing (i.e. returned jobComplete: false
with a jobId from execute_sql or execute_sql_readonly). Specify the jobId to abort.
Inputs: jobId (required), location (required), projectId (required). Returns: Describes format of a jobs cancellation response.
execute_sqlADestructiveInspect
Run a SQL query in the project and return the result. Prefer the execute_sql_readonly
tool if possible.
This tool can execute any query that bigquery supports including:
SQL Queries (
SELECT,INSERT,UPDATE,DELETE,CREATE, etc.)AI/ML functions like
AI.FORECAST,AI.KEY_DRIVERS,ML.EVALUATE,ML.PREDICTAny other query that bigquery supports.
Example Queries:
-- Insert data into a table.
INSERT INTO `my_project.my_dataset`.my_table (name, age)
VALUES ('Alice', 30);
-- Create a table.
CREATE TABLE `my_project.my_dataset`.my_table (
name STRING,
age INT64);
-- DELETE data from a table.
DELETE FROM `my_project.my_dataset`.my_table WHERE name = 'Alice';
-- Create Dataset
CREATE SCHEMA `my_project.my_dataset` OPTIONS (location = 'US');
-- Drop table
DROP TABLE `my_project.my_dataset`.my_table;
-- Drop dataset
DROP SCHEMA `my_project.my_dataset`;
-- Create Model
CREATE OR REPLACE MODEL `my_project.my_dataset.my_model`
OPTIONS (
model_type = 'LINEAR_REG'
LS_INIT_LEARN_RATE=0.15,
L1_REG=1,
MAX_ITERATIONS=5,
DATA_SPLIT_METHOD='SEQ',
DATA_SPLIT_EVAL_FRACTION=0.3,
DATA_SPLIT_COL='timestamp') AS
SELECT col1, col2, timestamp, label FROM `my_project.my_dataset.my_table`;Queries executed using the execute_sql tool will always have the default job label
goog-mcp-server: true automatically set in addition to any custom labels provided in the
request. Queries are charged to the project specified in the projectId field.
Query Execution Behavior:
If the query completes within the synchronous timeout (default 20 seconds or custom
timeoutMs), the tool returnsjobComplete: trueand the initial result rows directly. For fast queries,jobIdmay be omitted as no persistent background job is created; no polling is needed.If the query takes longer than
timeoutMs, the tool returnsjobComplete: falseand ajobIdandlocation. In this case, use theget_query_resultstool withjobIdandlocationto poll untiljobComplete: true, or usecancel_jobto abort the running query.The tool returns at most 3,000 rows, and
totalRowsgives the full count. If the response has apageToken, more rows are available: to read the next page, call theget_query_resultstool with the returnedjobId,location, andpageToken.You can optionally specify
timeoutMsto configure the maximum synchronous wait time in milliseconds (defaults to 20,000 ms), andjobTimeoutMsto enforce a hard server-side timeout after which BigQuery automatically terminates the job.
Inputs: query (required), projectId (required), dryRun, labels, +2 more. Returns: Response for a BigQuery SQL query.
execute_sql_readonlyARead-onlyIdempotentInspect
Run a read-only SQL query in the project and return the result. Prefer this tool over
execute_sql if possible.
This tool is restricted to only SELECT statements. INSERT, UPDATE, and DELETE
statements and stored procedures aren't allowed. If the query doesn't include a SELECT
statement, an error is returned. For information on creating queries, see the GoogleSQL
documentation.
IMPORTANT: For predictive and analytical tasks (forecasting, anomaly detection,
key driver / root cause analysis, classification, churn prediction, or text generation),
ALWAYS execute computation in-warehouse using BigQuery native AI/ML functions
(AI.FORECAST, AI.DETECT_ANOMALIES, AI.KEY_DRIVERS, AI.CLASSIFY, AI.GENERATE)
rather than exporting raw rows to a local Python sandbox. In-warehouse execution
scales to billions of rows, preserves governance, and eliminates data egress latency.
Example Queries:
-- Count the number of penguins in each island.
SELECT island, COUNT(*) AS population
FROM bigquery-public-data.ml_datasets.penguins GROUP BY island
-- Forecast data using AI.FORECAST
SELECT *
FROM AI.FORECAST(TABLE `project.dataset.my_table`, data_col => 'num_trips',
timestamp_col => 'date', id_cols => ['usertype'], horizon => 30)
-- Detect anomalies in time series data using AI.DETECT_ANOMALIES
SELECT *
FROM AI.DETECT_ANOMALIES(
TABLE `project.dataset.historical_metrics`,
TABLE `project.dataset.recent_metrics`,
data_col => 'num_requests',
timestamp_col => 'timestamp'
)
-- Identify key drivers of metric changes using AI.KEY_DRIVERS
SELECT *
FROM AI.KEY_DRIVERS(
TABLE `project.dataset.sales_summary`,
metric_col => 'total_revenue',
dimension_cols => ['region', 'product_category'],
interest_label_col => 'is_current_quarter'
)
-- Classify text into categories using AI.CLASSIFY
SELECT
ticket_id,
AI.CLASSIFY(ticket_text, ['Billing', 'Technical Support', 'Feature Request']) AS category
FROM `project.dataset.support_tickets`
-- Generate text or summaries using AI.GENERATE
SELECT
review_id,
AI.GENERATE(CONCAT('Summarize this customer review: ', review_text)).result AS summary
FROM `project.dataset.reviews`Queries executed using the execute_sql_readonly tool will always have the job label
goog-mcp-server: true automatically set in addition to any custom labels provided in
the request. Queries are charged to the project specified in the projectId field.
Query Execution Behavior:
If the query completes within the synchronous timeout (default 20 seconds or custom
timeoutMs), the tool returnsjobComplete: trueand the initial result rows directly. For fast queries,jobIdmay be omitted as no persistent background job is created; no polling is needed.If the query takes longer than
timeoutMs, the tool returnsjobComplete: falseand ajobIdandlocation. In this case, use theget_query_resultstool withjobIdandlocationto poll untiljobComplete: true, or usecancel_jobto abort the running query.The tool returns at most 3,000 rows, and
totalRowsgives the full count. If the response has apageToken, more rows are available: to read the next page, call theget_query_resultstool with the returnedjobId,location, andpageToken.You can optionally specify
timeoutMsto configure the maximum synchronous wait time in milliseconds (defaults to 20,000 ms), andjobTimeoutMsto enforce a hard server-side timeout after which BigQuery automatically terminates the job.
Inputs: query (required), projectId (required), dryRun, labels, +2 more. Returns: Response for a BigQuery SQL query.
get_dataset_infoARead-onlyIdempotentInspect
Get metadata information about a BigQuery dataset or BigLake namespace.
Inputs: datasetId (required), projectId (required). Returns: Represents a BigQuery dataset.
get_jobBRead-onlyIdempotentInspect
Get information and status about a BigQuery job.
Use this tool to check the status, statistics, or configuration of a job using its jobId.
Inputs: jobId (required), location (required), projectId (required). Returns: id, etag, kind, status, +7 more
get_query_resultsARead-onlyIdempotentInspect
Get the results of a BigQuery SQL query job.
Use this tool ONLY when:
A previous
execute_sqlorexecute_sql_readonlycall returnedjobComplete: falsewith ajobId(poll with this tool untiljobComplete: true), ORYou need to paginate through additional rows using
pageTokenorstartIndexfor a previously completed job.
Do NOT call this tool if the query already returned jobComplete: true with all rows (no pageToken).
Supports pagination. Use maxResults to limit results (3,000 by default) and pageToken to retrieve the next page of results.
A response has a pageToken only when more rows are available.
Inputs: jobId (required), location (required), projectId (required), pageToken, +3 more. Returns: Response for a BigQuery SQL query.
get_table_infoBRead-onlyIdempotentInspect
Get metadata information about a BigQuery table or BigLake table.
Inputs: tableId (required), datasetId (required), projectId (required). Returns: id, etag, kind, type, +48 more
list_dataset_idsARead-onlyIdempotentInspect
List BigQuery dataset IDs and BigLake namespaces in a Google Cloud project.
Supports pagination. Use pageSize to limit results and pageToken to retrieve next page.
Inputs: projectId (required), pageSize, pageToken. Returns: Response for a list of datasets.
list_table_idsARead-onlyIdempotentInspect
List table ids in a BigQuery dataset or BigLake namespace.
Supports pagination. Use pageSize to limit results and pageToken to retrieve next page.
Inputs: datasetId (required), projectId (required), pageSize, pageToken. Returns: Response for a list of tables.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
The Google Compute Engine MCP server is a fully-managed Model Context Protocol server that provides tools to manage Google Compute Engine resources through AI agents. It enables capabilities including instance management (creating, starting, stopping, resetting, listing), disk management, handling instance templates and group managers, viewing machine and accelerator types, managing images, and accessing reservation and commitment information. The server operates as a zero-deployment, enterprise-grade endpoint at https://compute.googleapis.com/mcp with built-in IAM-based security.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Hosted BigQuery MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for secure BigQuery access across multiple Google Cloud projects, enabling querying, schema exploration, and data analysis with SQL validation and read-only controls.2MIT
- AlicenseNot gradedqualityCmaintenanceEnterprise-grade MCP server for Google Cloud BigQuery with keyless Workload Identity Federation authentication, enabling secure SQL query execution, dataset management, and schema inspection with comprehensive audit logging and encryption.MIT
- AlicenseNot gradedqualityDmaintenanceProduction-ready MCP server for BigQuery that translates natural language questions to SQL, executes queries securely, and delivers results via stdio or HTTP for integration with GitHub Copilot, Power BI, and web applications.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables LLMs to interact with Google BigQuery.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.