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 分