Bq MCP Server

This is a Python-based MCP (Model Context Protocol) server that retrieves dataset, table, and schema information from Google Cloud BigQuery, caches

Local serverstdioPython

What is the Bq MCP MCP server?

Bq MCP MCP server exists for a simple reason — assistants are far more useful when they can act on Bq MCP directly instead of describing what you should do. This is a Python-based MCP (Model Context Protocol) server that retrieves dataset, table, and schema information from Google Cloud BigQuery, caches it locally, and serves it via MCP. Its primary purpose is to enable generative AI systems.

What you get

  • Metadata Management — Retrieves and caches information about BigQuery datasets, tables, and columns
  • Keyword Search — Supports keyword search of cached metadata
  • Secure Query Execution — Provides SQL execution capabilities with automatic LIMIT clause insertion and cost control
  • File Export — Execute queries and save results to local files in CSV or JSONL format
  • MCP Compliance — Offers tools via the Model Context Protocol

Setting it up

Installation goes through your MCP client rather than a global install: point it at bq_mcp_server on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What the assistant can call

Once Bq MCP is connected, these are the calls the assistant has available:

  • save_query_result — The save_query_result tool provides advanced query execution with file export capabilities:
  • Prerequisites — The Prerequisites tool exposed by this server

Configuration and credentials

  • Python 3.11 or later - Google Cloud Platform account - GCP project with BigQuery API enabled

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the bq mcp mcp server does with a few real requests.

Choosing this one

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Bq MCP's toolset — save_query_result, Prerequisites — is a fair guide to whether it matches your workflow. It is maintained by takada-at; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
save_query_resultThe save_query_result tool provides advanced query execution with file export capabilities:
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Bq MCP MCP server

JSON

```json
{
    "mcpServers": {
        "bq_mcp_server": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/takada-at/bq_mcp_server",
                "bq_mcp_server",
                "--project-ids",
                "<your project ids>"
            ]
        }
    }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.11 or later - Google Cloud Platform account - GCP project with BigQuery API enabled

Example prompts to try

  • Use Bq MCP to save query result.
  • Use Bq MCP to Prerequisites.

Frequently asked questions

It connects Bq MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (save_query_result, Prerequisites) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Bq MCP directly.