mcp-bigquery

v0.7.1
mcp-bigquery Checked 20 hours ago Published 3 months ago

Minimal MCP server for BigQuery SQL validation and dry-run analysis

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bq_validate_sql

Validate BigQuery SQL syntax without executing the query

ParameterTypeDescription
sql *stringThe SQL query to validate
paramsobjectOptional query parameters (key-value pairs)

bq_dry_run_sql

Perform a dry-run of a BigQuery SQL query to get cost estimates and metadata

ParameterTypeDescription
sql *stringThe SQL query to dry-run
paramsobjectOptional query parameters (key-value pairs)
pricePerTiBnumberPrice per TiB for cost estimation (defaults to env var or 5.0)

bq_extract_dependencies

Extract table and column dependencies from BigQuery SQL

ParameterTypeDescription
sql *stringThe SQL query to analyze
paramsobjectOptional query parameters (key-value pairs)

bq_validate_query_syntax

Enhanced syntax validation with detailed error reporting

ParameterTypeDescription
sql *stringThe SQL query to validate
paramsobjectOptional query parameters (key-value pairs)

bq_list_datasets

List all datasets in the BigQuery project

ParameterTypeDescription
max_resultsintegerMaximum number of datasets to return
project_idstringGCP project ID (uses default if not provided)

bq_list_tables

List all tables in a BigQuery dataset with metadata

ParameterTypeDescription
dataset_id *stringThe dataset ID
max_resultsintegerMaximum number of tables
project_idstringGCP project ID (uses default if not provided)
table_type_filterarrayFilter by table types (TABLE, VIEW, EXTERNAL, MATERIALIZED_VIEW)

bq_describe_table

Get table schema, metadata, and statistics

ParameterTypeDescription
dataset_id *stringThe dataset ID
table_id *stringThe table ID
format_outputbooleanWhether to format schema as table string
project_idstringGCP project ID (uses default if not provided)

bq_get_table_info

Get comprehensive table information including partitioning and clustering

ParameterTypeDescription
dataset_id *stringThe dataset ID
table_id *stringThe table ID
project_idstringGCP project ID (uses default if not provided)

bq_preview_table

Get a preview of table data without running a query job (cost-free)

ParameterTypeDescription
dataset_id *stringThe dataset ID
table_id *stringThe table ID
max_resultsintegerMaximum number of rows to preview (default: 5, hard limit: 10)
project_idstringGCP project ID (uses default if not provided)