Integrations
Enables execution of SQL queries against Google BigQuery with safety features including query validation, size estimation, rejection of data modification queries, and prevention of large data processing over 1TB.
Uses Google Cloud authentication for secure access to BigQuery services, supporting both gcloud CLI login and service account key methods.
BigQuery Analysis MCP Server
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 (v16 or higher)
- Google Cloud authentication setup (gcloud CLI or service account)
Install Dependencies
Build
Development Mode (Auto-rebuild)
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
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP 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:
- Login with gcloud CLI:Copy
- Use a service account key:Copy
Usage Examples
- Dry run a query:Copy
- Run a query with validation:Copy
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(v16以上)
- Google Cloud認証設定(gcloud CLIまたはサービスアカウント)
依存関係のインストール
ビルド
開発モード(自動再ビルド)
インストール
Claude Desktopで使用するには、サーバー設定を追加してください:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーは標準入出力(stdio)を介して通信するため、デバッグが難しい場合があります。MCP Inspectorの使用をお勧めします:
InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。
認証設定
このサーバーはGoogle Cloud認証情報を使用します。以下のいずれかの方法で認証を設定してください:
- gcloud CLIでログイン:Copy
- サービスアカウントキーを使用:Copy
使用例
- クエリのドライラン:Copy
- 検証付きクエリ実行:Copy
This server cannot be installed
A server that enables executing and validating SQL queries against Google BigQuery with safety features that prevent data modifications and excessive processing.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.Last updated -63PythonMIT License
- -securityAlicense-qualityThis is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.Last updated -121537JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to understand BigQuery dataset structures and execute SQL queries.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA server that helps people access and query data in databases using the Query Runner with integration of the Model Context Protocol (MCP) Python SDK. Support databases including PostgreSQL Redshift MySQL Microsoft SQL Server Google APIs Amazon Web Services (via boto3) CockroachDB SQLiteLast updated -6PythonGPL 3.0