Back to MCP directory
verified_userVerifieddnsLocal runtime

mcp-bigquery-server

一个让LLM直接与BigQuery数据库交互的服务器,通过自然语言查询数据

article

README

🚀 BigQuery MCP 服务器

这是一个强大的服务器,能让大语言模型(如Claude)直接与您的BigQuery数据进行交互。它如同一位友好的翻译官,架起AI助手与数据库之间的沟通桥梁,保障二者安全高效地交流。

🚀 快速开始

这是一个服务器,可以让您的大语言模型(如Claude)直接与您的BigQuery数据对话!它就像一个友好的翻译员,坐在AI助手和数据库之间,确保它们能够安全高效地交流。

快速示例

您: "上个月的前10名客户是谁?"
Claude: *查询您的BigQuery数据库并用 plain English 给您答案*

再也不用手动编写SQL查询了——只需与模型对话即可!

✨ 主要特性

  • 支持通过MCP协议连接到BigQuery
  • 提供强大的查询功能,包括数据提取和分析
  • 集成 Google 的 BigQuery 客户端库
  • 兼容Claude的实验性MCP接口

📦 安装指南

1. 克隆仓库

git clone https://github.com/ergut/mcp-bigquery-server
cd mcp-bigquery-server
npm install

2. 构建项目

npm run build

📚 详细文档

配置方法 🔧

将以下内容添加到claudius.json配置文件中:

{
  "experimental": {
    "mcpServers": [
      {
        "id": "bigquery",
        "name": "BigQuery MCP Server",
        "description": "连接到 Google BigQuery 的 MCP 服务器",
        "enabled": true,
        "config": {
          "projectId": "your-gcp-project-id",
          "location": "asia-east1",
          "keyFile": "/path/to/service-account-key.json"
        }
      }
    ]
  }
}

使用方法 🎯

要在Claude中使用这个服务器:

claudius shell --mcp bigquery

⚠️ 重要提示

  • 目前仅支持Claude Desktop(开发者预览版)
  • 连接限制为本地运行的MCP服务器
  • 查询具有1GB处理上限且只读

🛠️ 项目背景

OREDATA 赞助,旨在推动大数据与AI的融合创新。

📄 许可证

MIT License - 详细信息请参阅 LICENSE 文件。

✍️ 作者

Salih Ergüt

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client