This repository provides a Model Context Protocol (MCP) server for accessing BigQuery, enabling LLMs to inspect schemas and execute SQL queries. It supports listing tables, describing schemas, and running queries
This is a Model Context Protocol (MCP) server designed to provide Large Language Models (LLMs) with access to BigQuery. It allows LLMs to inspect database schemas and execute queries against BigQuery datasets.
The server implements the following tools:
execute-query
: Executes SQL queries using the BigQuery dialect.list-tables
: Lists all tables within the BigQuery database.describe-table
: Describes the schema of a specified table.The server requires configuration with the following arguments:
--project
: The GCP project ID.--location
: The GCP location (e.g., europe-west9
).--dataset
(optional): Specifies BigQuery datasets to consider. Multiple datasets can be specified by repeating the argument. If omitted, all datasets in the project are considered.Installation instructions are provided for both Smithery and manual configuration with Claude Desktop.
Instructions are provided for building, publishing, and debugging the server, including the use of uv
for dependency management and the MCP Inspector for debugging over stdio.
LucasHild/mcp-server-bigquery
December 3, 2024
March 28, 2025
Python