BigQuery Analysis
STDIOMCP server for executing SQL queries against Google BigQuery with validation and safety features.
MCP server for executing SQL queries against Google BigQuery with validation and safety features.
This server is an MCP server for executing SQL queries against Google BigQuery, providing the following features:
dry_run_query
- Perform a dry run of a BigQuery query
run_query_with_validation
- Run a BigQuery query with validation
npm install
npm run build
npm run watch
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" } } }
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
This server uses Google Cloud authentication. Set up authentication using one of the following methods:
Login with gcloud CLI:
gcloud auth application-default login
Use a service account key:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
Dry run a query:
dry_run_query("SELECT * FROM `bigquery-public-data.samples.shakespeare` LIMIT 10")
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でSQLクエリを実行するためのMCPサーバーです。クエリの検証(ドライラン)と実行を行い、1TB以上のデータ処理や変更系クエリ(DML)を防止する安全機能を備えています。
このサーバーはGoogle BigQueryに対してSQLクエリを実行するためのMCPサーバーで、以下の機能を提供します:
dry_run_query
- BigQueryクエリのドライラン実行
run_query_with_validation
- 検証付きでBigQueryクエリを実行
npm install
npm run build
npm 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の使用をお勧めします:
npm run inspector
InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。
このサーバーはGoogle Cloud認証情報を使用します。以下のいずれかの方法で認証を設定してください:
gcloud CLIでログイン:
gcloud auth application-default login
サービスアカウントキーを使用:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
クエリのドライラン:
dry_run_query("SELECT * FROM `bigquery-public-data.samples.shakespeare` LIMIT 10")
検証付きクエリ実行:
run_query_with_validation("SELECT word, word_count FROM `bigquery-public-data.samples.shakespeare` WHERE corpus='hamlet' LIMIT 10")