MCP.so
登录

BigQuery MCP Server

@ergut

基本信息

分类

数据库

许可证

MIT

传输方式

stdio

作者

ergut

关于 BigQuery MCP Server

A Model Context Protocol (MCP) server that provides secure, read-only access to BigQuery datasets. Enables Large Language Models (LLMs) to safely query and analyze data through a standardized interface.

BigQuery MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-bigquery-server": {
      "command": "npx",
      "args": [
        "@ergut/mcp-bigquery-server",
        "--project-id",
        "your-project-id",
        "--location",
        "europe-west1",
        "--key-file",
        "/path/to/key.json",
        "--config-file",
        "/path/to/config.json",
        "--maximum-bytes-billed",
        "2000000000"
      ]
    }
  }
}

BigQuery MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is BigQuery MCP Server?

BigQuery MCP Server lets LLMs like Claude talk directly to your BigQuery data — read-only, with no ability to mutate your warehouse. It uses the Model Context Protocol (MCP) to translate natural language into safe SQL queries, making it ideal for AI‑assisted data exploration.

How to use BigQuery MCP Server?

Set up authentication (gcloud auth application-default-login or a service account key file), then add the server to your MCP client’s config (e.g., claude_desktop_config.json or .mcp.json). Run via npx @ergut/mcp-bigquery-server with flags such as --project-id, --location, --key-file, and --config-file. Once configured, open your client and chat with your data in plain English.

Key features of BigQuery MCP Server

  • Read-only by design — only SELECT statements are allowed.
  • Run SQL queries by asking questions in plain English.
  • Access both tables and materialized views with schema exploration.
  • Configurable safe limits via config.json or command line.
  • Protect sensitive data with field‑level restrictions.
  • Auto‑discover sensitive columns across all datasets.

Use cases of BigQuery MCP Server

  • Ask “What were our top 10 customers last month?” and get an answer in plain English.
  • Explore dataset schemas without writing any SQL.
  • Query BigQuery from AI assistants while preventing exposure of PII/PHI.
  • Automatically scan for and restrict sensitive fields across the entire warehouse.

常见问题

1

What are the prerequisites to run the server?

You need Node.js 14+, a Google Cloud project with BigQuery enabled, and an MCP‑compatible client (e.g., Claude Desktop or Claude Code).

2

How do I authenticate with Google Cloud?

Use `gcloud auth application-default-login` for development or provide a service account key file via the `--key-file` argument for production.

3

Does the server modify my BigQuery data?

No. The server is read‑only — only `SELECT` statements are allowed. Every query is validated by BigQuery’s dry‑run planner, so mutations are rejected.

4

How can I protect sensitive data from the AI agent?

Define `preventedFields` in `config.json` to block specific columns, and enable auto‑scanning to automatically discover and restrict sensitive fields across all datasets.

5

What are the main limitations?

Processing limits are configurable per query. Some complex view types may not be supported. A config file is optional; without one the server uses safe defaults.

评论

数据库 分类下的更多 MCP 服务器