bigquery-analytics-mcp-server
v0.1.2MCP server for Google BigQuery, built for the Analytics Model platform connector contract
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_projects
List the Google Cloud projects the signed-in user can access in BigQuery.
list_datasets
List the datasets in a BigQuery project.
| Parameter | Type | Description |
|---|---|---|
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
list_tables
List ALL tables and views across every dataset in a project (or a chosen subset of datasets), in one call. Set include_details for row counts, sizes and descriptions.
| Parameter | Type | Description |
|---|---|---|
datasets | array | Limit to these dataset IDs. Omit for all datasets. |
include_details | boolean | Also fetch row count, size, description and column count (slower). |
max_tables | integer | Maximum tables to return (default 5000). |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
get_table_schema
Get a table's or view's columns (including nested fields and descriptions), partitioning, clustering, row count and size.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | |
table_id * | string | |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
preview_table
Preview rows from a table without a full scan. Native tables use the free tabledata API; views and external tables fall back to a limited query.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | |
table_id * | string | |
columns | array | Only return these columns. |
limit | integer | Rows to return (default 10). |
offset | integer | Row offset for native tables. |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
dry_run_query
Validate a read-only SQL query and estimate bytes processed and cost, without running it.
| Parameter | Type | Description |
|---|---|---|
query * | string | GoogleSQL SELECT query. |
location | string | Job location such as US, EU or asia-south1. Usually auto-detected. |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
run_query
Run a read-only GoogleSQL query (SELECT / WITH). The query is validated, dry-run for cost, and refused if it would exceed the bytes-billed limit. Results are capped at max_rows.
| Parameter | Type | Description |
|---|---|---|
query * | string | GoogleSQL SELECT query. Fully qualify tables as `project.dataset.table`. |
location | string | Job location such as US, EU or asia-south1. Usually auto-detected. |
max_bytes_billed | integer | Lower this query's bytes-billed cap (cannot exceed the server limit). |
max_rows | integer | Maximum rows to return (default and ceiling set by the server). |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
get_job_status
Get the state, error, timing and bytes processed for a BigQuery job.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
location | string | Job location such as US, EU or asia-south1. Usually auto-detected. |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |
cancel_job
Request cancellation of a running BigQuery job.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
location | string | Job location such as US, EU or asia-south1. Usually auto-detected. |
project_id | string | Google Cloud project ID. Defaults to BIGQUERY_PROJECT_ID. |