flin-bigquery-mcp

v0.1.3
flin-bigquery-mcp Checked 5 hours ago Published 25 days ago

MCP server for exploring BigQuery and running bounded read-only SQL queries.

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

health_check

Check local configuration without contacting Google or opening a browser. ADC is not probed.

ParameterTypeDescription
account

connection_status

Report local setup only: no network, browser, token refresh or query costs. A saved token cannot prove Google still accepts it. Use list_datasets for an explicit metadata access test; this status call never claims live access.

ParameterTypeDescription
account

list_projects

List one page of accessible projects. First use may open Google sign-in and save a local token.

ParameterTypeDescription
account
page_sizeinteger
page_token

list_datasets

List one page of datasets in project_id or the configured default project.

ParameterTypeDescription
account
page_sizeinteger
page_token
project_id

get_dataset

Get dataset location, description and labels. dataset_id must not include the project prefix.

ParameterTypeDescription
dataset_id *string
account
project_id

list_tables

List one page of tables and views within a dataset.

ParameterTypeDescription
dataset_id *string
account
page_sizeinteger
page_token
project_id

get_table

Read nested schema, size, row count, partitioning and clustering before writing SQL.

ParameterTypeDescription
dataset_id *string
table_id *string
account
project_id

preview_table

Read a bounded page from a physical table without a SQL query job. Row order is unspecified.

ParameterTypeDescription
dataset_id *string
table_id *string
account
page_sizeinteger
page_token
project_id

dry_run_query

Validate a single SELECT and estimate bytes without executing it. Named parameters use @name in SQL.

ParameterTypeDescription
sql *string
account
location
maximum_bytes_billed
parameters
project_id

run_query

Dry-run then submit a SELECT job that can incur Google charges. Never raises the configured byte ceiling. Returns a job reference immediately. Use get_query_results to poll and paginate; do not resubmit to poll. project_id is the billing/job project; fully qualified SQL may read data from other accessible projects.

ParameterTypeDescription
sql *string
account
location
maximum_bytes_billed
parameters
project_id

get_query_results

Poll a query job or read one result page. Reuse project_id, location and account from submission. If job_complete is false, call again later. Pass next_page_token unchanged to read the next page. NUMERIC values are decimal strings, dates are ISO strings, bytes are base64 strings.

ParameterTypeDescription
job_id *string
account
location
page_sizeinteger
page_token
project_id