bigquery-analytics-mcp-server

v0.1.2
bigquery-analytics-mcp-server Checked 2 days ago Published 1 month ago

MCP 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.

ParameterTypeDescription
project_idstringGoogle 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.

ParameterTypeDescription
datasetsarrayLimit to these dataset IDs. Omit for all datasets.
include_detailsbooleanAlso fetch row count, size, description and column count (slower).
max_tablesintegerMaximum tables to return (default 5000).
project_idstringGoogle 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.

ParameterTypeDescription
dataset_id *string
table_id *string
project_idstringGoogle 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.

ParameterTypeDescription
dataset_id *string
table_id *string
columnsarrayOnly return these columns.
limitintegerRows to return (default 10).
offsetintegerRow offset for native tables.
project_idstringGoogle 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.

ParameterTypeDescription
query *stringGoogleSQL SELECT query.
locationstringJob location such as US, EU or asia-south1. Usually auto-detected.
project_idstringGoogle 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.

ParameterTypeDescription
query *stringGoogleSQL SELECT query. Fully qualify tables as `project.dataset.table`.
locationstringJob location such as US, EU or asia-south1. Usually auto-detected.
max_bytes_billedintegerLower this query's bytes-billed cap (cannot exceed the server limit).
max_rowsintegerMaximum rows to return (default and ceiling set by the server).
project_idstringGoogle Cloud project ID. Defaults to BIGQUERY_PROJECT_ID.

get_job_status

Get the state, error, timing and bytes processed for a BigQuery job.

ParameterTypeDescription
job_id *string
locationstringJob location such as US, EU or asia-south1. Usually auto-detected.
project_idstringGoogle Cloud project ID. Defaults to BIGQUERY_PROJECT_ID.

cancel_job

Request cancellation of a running BigQuery job.

ParameterTypeDescription
job_id *string
locationstringJob location such as US, EU or asia-south1. Usually auto-detected.
project_idstringGoogle Cloud project ID. Defaults to BIGQUERY_PROJECT_ID.