Bigquery Mcp

io.github.SnowLeopard-AI由 GitHub 帳號 SnowLeopard-AI 發布v0.1.1更新於 Oct 24, 2026

A SnowLeopardAI-managed MCP server that provides access to Google BigQuery data.

已驗證STDIO僅桌面資料庫資料與分析

概覽

AI 產生的概覽

讓助理以自然語言瀏覽 Google BigQuery 資料集並執行 SQL 查詢。

可以做什麼
這個 MCP 伺服器在 AI 助理與 Google BigQuery 之間建立橋接。它提供資源來列出可用的資料表並回傳指定資料表的 schema,也提供列出資料表、取得 schema 以及執行 BigQuery SQL 的查詢工具。啟動時可限定資料集與資料表,查詢結果會回傳給助理解讀。
適用情境
當你希望助理回答已存放在 BigQuery 中的資料問題、檢視資料表結構,或直接在對話中執行臨時 SQL 時,適合使用。它適合已經在使用 BigQuery 專案、希望以對話方式存取這些資料的分析師與開發者。
執行需求
以本機 Python 套件(sl-bigquery-mcp)形式執行,透過 uvx 啟動,需要 Python 工具鏈與 uv 套件管理器。需要一個已啟用 BigQuery 的 Google Cloud 專案,並透過 gcloud auth application-default login 取得應用程式預設憑證。專案以 --project 選項或 BQ_PROJECT 環境變數指定,資料集或資料表以 --dataset 或 --table 設定。僅支援桌面用戶端。
安裝前請注意
伺服器會代你執行 BigQuery SQL,查詢可能讀取資料,並在設定的專案上產生 BigQuery 作業與儲存費用。它依賴你的 Google Cloud 應用程式預設憑證,該憑證具有對應帳號的完整權限。請檢查所設定的資料集與專案範圍,並留意查詢結果會傳送給助理及其模型供應商。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Bigquery Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Snow Leopard BigQuery MCP

[Test] [Coverage] [PyPI - Version] [Discord]




A Model Context Protocol (MCP) server for Google BigQuery that enables AI agents to interact with BigQuery databases through natural language queries and schema exploration.

This project was developed by Snow Leopard AI as a benchmarking tool for our platform, and we're making it publicly available for the community to use and build upon.

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI applications to securely connect to external data sources and tools. This BigQuery MCP server acts as a bridge between AI agents and your BigQuery datasets.

Snow Leopard BigQuery MCP Server Features

Resources

Resource URIDescription
bigquery://tablesList all tables available to the agent
bigquery://tables/{table}/schemaGet the schema of a specific table

Tools

ToolDescription
list_tables(table: str) (optional)List available tables
get_schema(table: str) (optional)Get the schema of a given table
query(sql: str)Execute BigQuery SQL and return results

Quick Start: Claude Desktop

Prerequisites

Before getting started, ensure you have:

1. Setup Google Cloud

First, we need to authenticate with Google.

bash
gcloud auth application-default login

This opens your browser to authenticate your local machine with Google Cloud.

2. Configure Claude Desktop

Edit your claude_desktop_config.json file to add the BigQuery MCP server.

Application: Claude > Settings > Developer > Edit Config
Mac: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\\Claude\\claude_desktop_config.json

You will need to set your project to a Google Cloud project with permissions to submit bigquery jobs. If you do not have a project that you can run bigquery jobs on, create and test one by following Google's BigQuery Quickstart Guide Create a project and follow the instructions to query a public dataset.

json
{  "mcpServers": {    "bigquery": {      "command": "uvx",      "args": [        "sl-bigquery-mcp",         "--dataset",        "bigquery-public-data.usa_names",        "--project",        "🚨 <projectName> 🚨"      ]    }  }}

3. Close Claude Desktop and Launch it from the terminal

Depending on how you have installed uv, the uvx executable may not be in Claude Desktop's PATH if it is launched from the GUI. To be sure uvx is accessible from Claude Desktop, let's run it in the terminal.

bash
open -a claude

After saving the configuration, restart Claude Desktop. You should now be able to ask Claude questions about your BigQuery data!

Example Query
What are the top 10 most popular names in 2020?

Configuration Options

To see a complete list of parameters:

bash
uvx sl-bigquery-mcp --help
Usage: sl-bigquery-mcp [OPTIONS]
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ --mode                       [stdio|sse|streamable-http]  MCP transport protocol [default: stdio]                                                     ││ --dataset                    TEXT                         Dataset(s) for mcp resources. Will create resources for all tables.                         ││ --table                      TEXT                         Table(s) for mcp resources. Can be specified as project.dataset.table or dataset.table      ││ --enable-list-tables-tool    --no-enable-list-tables-tool Registers list_resources tool [default: enable-list-tables-tool]                            ││ --enable-schema-tool         --no-enable-schema-tool      Registers get_schema tool [default: enable-schema-tool]                                     ││ --project                    TEXT                         BigQuery project [env var: BQ_PROJECT] [default: None]                                      ││ --api-method                 [INSERT|QUERY]               BigQuery client api_method [default: QUERY]                                                 ││ --port                       INTEGER                      [default: 8000]                                                                             │╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Troubleshooting / FAQ

An MCP Error has occurred

First, check out your Claude Desktop app logs (in the same directory as the config file) for more verbose errors / logging

On Startup

This usually means Claude is having issues starting the mcp server. Frequently this is due to uvx being inaccessible from the application. In this case, use the full path to your uvx executable instead of just uvx in claude_desktop_config.json.

To find your uv executable, run

bash
which uvx

Otherwise, this may be caused by bad arguments, dependency version incompatibilities, or bugs. If you run into the last two, please file an issue describing the problem.

On Resource / Tool Usage

This may be a misconfiguration mcp server, authentication issues, the llm getting too much data, or of course, product bugs. After checking the logs, consider using the MCP Inspector to debug your issue. And of course, file any bugs you find on our issue board.

Local Development & Testing

Setup Development Environment

  1. Clone the repository
  2. Setup virtual environment and install dependencies
  3. Verify installation
bash
git clone https://github.com/SnowLeopard-AI/bigquery-mcp.gitcd bigquery-mcp
uv syncsource .venv/bin/activate
sl-bigquery-mcp --help

Authenticate with Google Cloud

The following command will launch a browser for you to login to your google cloud account. You must have a Google Cloud project with BigQuery enabled. If you don't, see Google's bigquery setup guide.

bash
gcloud auth application-default logingcloud config set project <projectName>gcloud auth application-default set-quota-project <projectName>

Running Tests

Run the tests to make sure your dev environment is properly configured.

bash
pytest tests

Note: the tests run actual BigQuery queries against public datasets and require authentication.

Local MCP Inspector

For hands-on testing and development, use the MCP Inspector tool:

bash
npx @modelcontextprotocol/inspector uv run sl-bigquery-mcp --dataset bigquery-public-data.usa_names

Contributing

We welcome contributions! Please coordinate with us on discord to ensure your changes can quicly make it into the repo. Communicating before coding always saves time.

For logistics of contributing to an open source project, see the first contributions repository.

Support

Issues: GitHub Issues
Documentation: BigQuery Documentation
MCP Protocol: Model Context Protocol
Contact: Discord Server

來源:README.md,提交 d32a772

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分