LM

lucashild/mcp-server-bigquery

Database management

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

131 stars 41 forks 品質 75 トレンド 16MIT

lucashild/mcp-server-bigQuery は、https://github.com/lucashild/mcp-server-bigquery. からインポートされたMCPサーバー候補です。

概要

lucashild/mcp-server-bigQuery は、https://github.com/lucashild/mcp-server-bigquery. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

BigQueryへのアクセスを提供するモデルコンテキストプロトコルサーバーです。このサーバーはLLMがデータベーススキーマを検査しクエリを実行することを可能にします。

構成要素

道具

サーバーは1つのツールを実装しています:

  • execute-query:BigQuery方言を使ってSQLクエリを実行します
  • list-tables:BigQueryデータベース内のすべてのテーブルを一覧化します
  • describe-table:特定のテーブルのスキーマを記述します

構成

サーバーはコマンドライン引数または環境変数のいずれかで設定可能です。

引数 環境変数 必須 説明
--project BIGQUERY_PROJECT はい GCPプロジェクトID。
--location BIGQUERY_LOCATION はい GCPの位置(例:europe-west9)。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

BigQuery MCP server

A Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.

Components

Tools

The server implements one tool:

  • execute-query: Executes a SQL query using BigQuery dialect
  • list-tables: Lists all tables in the BigQuery database
  • describe-table: Describes the schema of a specific table

Configuration

The server can be configured either with command line arguments or environment variables.

Argument Environment Variable Required Description
--project BIGQUERY_PROJECT Yes The GCP project ID.
--location BIGQUERY_LOCATION Yes The GCP location (e.g. europe-west9).
--dataset BIGQUERY_DATASETS No Only take specific BigQuery datasets into consideration. Several datasets can be specified by repeating the argument (e.g. --dataset my_dataset_1 --dataset my_dataset_2) or by joining them with a comma in the environment variable (e.g. BIGQUERY_DATASETS=my_dataset_1,my_dataset_2). If not provided, all datasets in the project will be considered.
GitHub で README 全文を見る

インストール

uvx mcp-server-bigquery
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "bigquery": { "command": "uvx", "args": ["mcp-server-bigquery"], "env": { "BIGQUERY_PROJECT": "{{GCP_PROJECT_ID}}", "BIGQUERY_LOCATION": "{{GCP_LOCATION}}" } } } }