mcp-bigquery
v0.7.1Minimal 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
| Parameter | Type | Description |
|---|---|---|
sql * | string | The SQL query to validate |
params | object | Optional query parameters (key-value pairs) |
bq_dry_run_sql
Perform a dry-run of a BigQuery SQL query to get cost estimates and metadata
| Parameter | Type | Description |
|---|---|---|
sql * | string | The SQL query to dry-run |
params | object | Optional query parameters (key-value pairs) |
pricePerTiB | number | Price per TiB for cost estimation (defaults to env var or 5.0) |
bq_extract_dependencies
Extract table and column dependencies from BigQuery SQL
| Parameter | Type | Description |
|---|---|---|
sql * | string | The SQL query to analyze |
params | object | Optional query parameters (key-value pairs) |
bq_validate_query_syntax
Enhanced syntax validation with detailed error reporting
| Parameter | Type | Description |
|---|---|---|
sql * | string | The SQL query to validate |
params | object | Optional query parameters (key-value pairs) |
bq_list_datasets
List all datasets in the BigQuery project
| Parameter | Type | Description |
|---|---|---|
max_results | integer | Maximum number of datasets to return |
project_id | string | GCP project ID (uses default if not provided) |
bq_list_tables
List all tables in a BigQuery dataset with metadata
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | The dataset ID |
max_results | integer | Maximum number of tables |
project_id | string | GCP project ID (uses default if not provided) |
table_type_filter | array | Filter by table types (TABLE, VIEW, EXTERNAL, MATERIALIZED_VIEW) |
bq_describe_table
Get table schema, metadata, and statistics
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | The dataset ID |
table_id * | string | The table ID |
format_output | boolean | Whether to format schema as table string |
project_id | string | GCP project ID (uses default if not provided) |
bq_get_table_info
Get comprehensive table information including partitioning and clustering
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | The dataset ID |
table_id * | string | The table ID |
project_id | string | GCP project ID (uses default if not provided) |
bq_preview_table
Get a preview of table data without running a query job (cost-free)
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | The dataset ID |
table_id * | string | The table ID |
max_results | integer | Maximum number of rows to preview (default: 5, hard limit: 10) |
project_id | string | GCP project ID (uses default if not provided) |