Command Palette

Search for a command to run...

Browse all
MCP server № 83556

Bigquery Analysis

Bigquery Analysis — Model Context Protocol server

Free
GitHubEmbed

Installing Bigquery Analysis

Build from source

This server ships without a published npm/PyPI package — clone the repo and follow its README to build and run it, then add the resulting command to your client.

Open repository
github.com/gotalab/bigquery-analysis-mcp-server

About

Bigquery Analysis — Model Context Protocol server

README

Overview

This server is an MCP server for executing SQL queries against Google BigQuery, providing the following features:

  • Query validation (dry run): Verifies if a query is valid and estimates its processing size
  • Safe query execution: Only runs SELECT queries under 1TB (prevents data modifications)
  • JSON-formatted results: Returns query results in structured JSON format

Features

Tools

  • dry_run_query - Perform a dry run of a BigQuery query

    • Validates the query and estimates its processing size
    • Checks query size against the 1TB limit
  • run_query_with_validation - Run a BigQuery query with validation

    • Detects and rejects DML statements (data modification queries)
    • Rejects data processing over 1TB
    • Executes queries that pass validation and returns results

Development

Prerequisites

  • Node.js 22.23.4+, 24.22.1+, or 26.12.1+ (use the latest patch of a supported release line)
  • pnpm 12.4.2 (pinned in package.json)
  • Google Cloud authentication setup (gcloud CLI or service account)

Install Dependencies

pnpm install --frozen-lockfile

Test

pnpm test

Build

pnpm run build

Development Mode (Auto-rebuild)

pnpm run watch

Installation

To use with Claude Desktop, add the server configuration:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "bigquery-analysis-server": {
      "command": "/path/to/bigquery-analysis-server/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:

pnpm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Authentication Setup

This server uses Google Cloud authentication. Set up authentication using one of the following methods:

  1. Login with gcloud CLI:

    gcloud auth application-default login
    
  2. Use a service account key:

    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
    

Usage Examples

  1. Dry run a query:

    dry_run_query("SELECT * FROM `bigquery-public-data.samples.shakespeare` LIMIT 10")
    
  2. Run a query with validation:

    run_query_with_validation("SELECT word, word_count FROM `bigquery-public-data.samples.shakespeare` WHERE corpus='hamlet' LIMIT 10")
    

BigQuery Analysis MCP Server (日本語版)

概要

BigQueryでSQLクエリを実行するためのMCPサーバーです。クエリの検証(ドライラン)と実行を行い、1TB以上のデータ処理や変更系クエリ(DML)を防止する安全機能を備えています。

機能

このサーバーはGoogle BigQueryに対してSQLクエリを実行するためのMCPサーバーで、以下の機能を提供します:

  • クエリの検証(ドライラン):クエリが有効かどうかを確認し、処理サイズを見積もる
  • 安全なクエリ実行:1TB以下のSELECTクエリのみを実行(データ変更を防止)
  • 結果のJSON形式での返却:クエリ結果を構造化されたJSONで返す

機能

ツール

  • dry_run_query - BigQueryクエリのドライラン実行

    • クエリの検証と処理サイズの見積もりを行う
    • 1TBの制限に対してクエリサイズをチェック
  • run_query_with_validation - 検証付きでBigQueryクエリを実行

    • DML文(データ変更クエリ)を検出して拒否
    • 1TB以上のデータ処理を拒否
    • 検証に通過したクエリを実行し結果を返す

開発方法

前提条件

  • Node.js 22.23.4以上、24.22.1以上、または26.12.1以上(サポート中の系列の最新パッチを使用)
  • pnpm 12.4.2(package.jsonで固定)
  • Google Cloud認証設定(gcloud CLIまたはサービスアカウント)

依存関係のインストール

pnpm install --frozen-lockfile

テスト

pnpm test

ビルド

pnpm run build

開発モード(自動再ビルド)

pnpm run watch

インストール

Claude Desktopで使用するには、サーバー設定を追加してください:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "bigquery": {
      "command": "node",
      "args": ["/path/to/bigquery-server/build/index.js"]
    }
  }
}

デバッグ

MCPサーバーは標準入出力(stdio)を介して通信するため、デバッグが難しい場合があります。MCP Inspectorの使用をお勧めします:

pnpm run inspector

InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。

認証設定

このサーバーはGoogle Cloud認証情報を使用します。以下のいずれかの方法で認証を設定してください:

  1. gcloud CLIでログイン:

    gcloud auth application-default login
    
  2. サービスアカウントキーを使用:

    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
    

使用例

  1. クエリのドライラン:

    dry_run_query("SELECT * FROM `bigquery-public-data.samples.shakespeare` LIMIT 10")
    
  2. 検証付きクエリ実行:

    run_query_with_validation("SELECT word, word_count FROM `bigquery-public-data.samples.shakespeare` WHERE corpus='hamlet' LIMIT 10")
    

from github.com/gotalab/bigquery-analysis-mcp-server

FAQ

Is Bigquery Analysis MCP free?

Yes, Bigquery Analysis MCP is free — one-click install via Unyly at no cost.

Does Bigquery Analysis need an API key?

No, Bigquery Analysis runs without API keys or environment variables.

Is Bigquery Analysis hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Bigquery Analysis in Claude Desktop, Claude Code or Cursor?

Open Bigquery Analysis on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

№ 56430

Postgres

AnthropicAnthropic

Query your database in natural language

postgressqldatabase
Install now
№ 72083

wenb1n-dev/SmartDB_MCP

wenb1n-devwenb1n-dev

Connect to multiple databases at once (MySQL, PostgreSQL, SQL Server, MariaDB, Dameng, Oracle) for operations, health analysis and SQL optimization.

wenb1ndevsmartdb
Install now
№ 08825

Postgres Server

madhurprashmadhurprash

This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools

Install now
№ 29587

PostgreSQL

modelcontextprotocolmodelcontextprotocol

Read-only database access with schema inspection.

postgresqlarchived
VerifiedInstall now
№ 12820

Redis

modelcontextprotocolmodelcontextprotocol

Interact with Redis key-value stores.

redisarchived
VerifiedInstall now
№ 75813

SQLite

modelcontextprotocolmodelcontextprotocol

Database interaction and business intelligence capabilities.

sqlitearchived
VerifiedInstall now
№ 51499

mxcp

raw-labsraw-labs

Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.

mxcpforservers
VerifiedInstall now
№ 93433

julien040/anyquery

julien040julien040

Query apps with SQL from a single local-first binary; also connects to PostgreSQL, MySQL and SQLite-compatible databases.

julien040anyqueryname
Install now
№ 67869

drakonkat/wizzy-mcp-tmdb

drakonkatdrakonkat

Search and retrieve movie, TV show and person information from The Movie Database (TMDB) API.

drakonkatwizzymcp
Install now
№ 89447

longevity-genie/opengenes-mcp

longevity-genielongevity-genie

Query the OpenGenes database for aging and longevity research.

longevitygenieopengenes
Install now

Compare Bigquery Analysis with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All data MCPs