BigQuery MCP server
BigQuery MCP サーバー
BigQueryへのアクセスを提供するモデルコンテキストプロトコルサーバー。このサーバーにより、LLMはデータベーススキーマを検査し、クエリを実行できます。
コンポーネント
ツール
サーバーは 1 つのツールを実装します。
execute-query: BigQuery方言を使用してSQLクエリを実行します。list-tables: BigQuery データベース内のすべてのテーブルを一覧表示しますdescribe-table: 特定のテーブルのスキーマを記述する
Related MCP server: MCP Database Server
構成
サーバーは次の引数を使用して構成できます。
--project(必須): GCP プロジェクト ID。--location(必須): GCP の場所 (例:europe-west9)。--dataset(オプション): 特定のBigQueryデータセットのみを考慮します。引数を繰り返すことで複数のデータセットを指定できます(例:--dataset my_dataset_1 --dataset my_dataset_2)。指定しない場合は、プロジェクト内のすべてのデータセットが考慮されます。--key-file(オプション): BigQuery のサービスアカウントキーファイルへのパス。指定しない場合、サーバーはデフォルトの認証情報を使用します。
クイックスタート
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の BigQuery Server を自動的にインストールするには:
npx -y @smithery/cli install mcp-server-bigquery --client claudeクロードデスクトップ
MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
開発/非公開サーバーの構成
"mcpServers": {
"bigquery": {
"command": "uv",
"args": [
"--directory",
"{{PATH_TO_REPO}}",
"run",
"mcp-server-bigquery",
"--project",
"{{GCP_PROJECT_ID}}",
"--location",
"{{GCP_LOCATION}}"
]
}
}公開サーバーの構成
"mcpServers": {
"bigquery": {
"command": "uvx",
"args": [
"mcp-server-bigquery",
"--project",
"{{GCP_PROJECT_ID}}",
"--location",
"{{GCP_LOCATION}}"
]
}
}{{PATH_TO_REPO}} 、 {{GCP_PROJECT_ID}} 、および{{GCP_LOCATION}}を適切な値に置き換えます。
発達
建築と出版
配布用のパッケージを準備するには:
依存関係を同期し、ロックファイルを更新します。
uv syncパッケージディストリビューションをビルドします。
uv buildこれにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。
PyPI に公開:
uv publish注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。
トークン:
--tokenまたはUV_PUBLISH_TOKENまたはユーザー名/パスワード:
--username/UV_PUBLISH_USERNAMEおよび--password/UV_PUBLISH_PASSWORD
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。
次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。
npx @modelcontextprotocol/inspector uv --directory {{PATH_TO_REPO}} run mcp-server-bigquery起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。
This server cannot be deployed
Maintenance
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
A Model Context Protocol server for Wix AI tools
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to understand BigQuery dataset structures and execute SQL queries.39 npm5MIT
- -licenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that provides tools for interacting with databases, including PostgreSQL, DuckDB, and Google Cloud Storage Parquet files.2-
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with Google BigQuery by inspecting database schemas, listing tables, and executing SQL queries. This server facilitates seamless data analysis and management through natural language via the Model Context Protocol.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.MIT