BigQuery MCP Serverのロゴ

BigQuery MCP Server

コミュニティ
Suganthan-Mohanadasan

BigQuery MCP server for Claude — query any BigQuery dataset in natural language, with built-in SEO analysis tools for GSC bulk export data

公開者Suganthan-Mohanadasan
リポジトリSuganthans-BigQuery-MCP-Server
言語TypeScript
フォーク
5
スター
43
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    BigQuery MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには43件のスターと5件のフォークがあります。

BigQuery MCP Server

An MCP server for BigQuery that lets you ask Claude questions about your search and analytics data warehouse and get real answers. Not raw query results. Actual analysis with verdicts and recommendations.

33 tools. GA4 + GSC revenue attribution. Generative AI conversation-query detection. ML forecasting. Anomaly detection. Anonymous query analysis. Free and open source.

Full setup guide with screenshots: suganthan.com/blog/bigquery-mcp-server/

New in v4.1 (AI conversation queries): suganthan.com/blog/ai-mode-queries-search-console/

New in v4.0 (GA4 integration): suganthan.com/blog/google-analytics-bigquery-mcp-server/

See it in action

"How much of my traffic is hidden behind anonymous queries?"

Anonymous traffic analysis showing the ~46% of clicks the GSC API hides

"Forecast my traffic for the next 90 days"

ARIMA_PLUS traffic forecasting with daily predictions and confidence intervals

"Are there any traffic anomalies I should investigate?"

ML anomaly detection flagging unusual traffic patterns

"Show me year over year seasonal trends"

Year over year monthly comparison with YoY percentage changes

"Show me queries where mobile and desktop rank different pages"

Device split analysis showing ranking discrepancies

"Break down my queries by search intent"

Intent classification: informational, transactional, commercial, navigational

"What are the most common terms in my queries?"

N-gram extraction showing recurring themes

"What new keywords appeared this week?"

New keyword discovery: queries appearing for the first time

What you can ask

What are my quick win keywords?
Which pages are losing traffic and why?
Forecast my traffic for the next 90 days
Are there any traffic anomalies I should investigate?
How much of my traffic comes from anonymous queries?
Find the AI conversation fragments hiding in my queries
Show me year over year seasonal trends
What new keywords appeared this week?
Break down my queries by search intent
Show me queries where multiple pages are competing
Generate a full performance report
How does my CTR compare to benchmarks?
How is my /blog/ cluster performing?
Check for any SEO alerts in the last 7 days
Give me content recommendations

With the GA4 BigQuery export also connected (v4.0+):

Which keywords generate the most revenue?
Which pages have the biggest gap between rankings and conversions?
What is each search position worth on my site?
Which pages have a mismatch between their search snippet and actual content quality?
Compare branded vs non-branded performance for 'my brand, my-brand'
Show me page performance combining search and analytics data

Quick start

bash
git clone https://github.com/Suganthan-Mohanadasan/Suganthans-BigQuery-MCP-Server.git
cd Suganthans-BigQuery-MCP-Server
npm install
npm run build

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "bigquery": {
      "command": "node",
      "args": ["/path/to/Suganthans-BigQuery-MCP-Server/dist/index.js"],
      "env": {
        "BIGQUERY_PROJECT_ID": "your-project-id",
        "BIGQUERY_KEY_FILE": "/path/to/service-account-key.json",
        "BIGQUERY_DEFAULT_DATASET": "searchconsole",
        "BIGQUERY_LOCATION": "US"
      }
    }
  }
}

Your service account needs three IAM roles: BigQuery Data Editor, BigQuery Data Viewer, and BigQuery Job User.

Need help with BigQuery setup, bulk export, service accounts, or permissions? The full guide walks through every step with screenshots.

Want the GA4 + GSC blending tools too? Add the GA4 BigQuery export and one extra environment variable (BIGQUERY_GA4_DATASET). Full walkthrough: GA4 + GSC in BigQuery setup guide.

All 33 tools

BigQuery exclusive (9)

These use BigQuery capabilities the Search Console API simply doesn't have.

ToolWhat it answers
gsc_anonymous_trafficHow much traffic is hidden behind anonymous queries? The API hides ~46% of clicks entirely.
gsc_genai_conversation_queriesWhich queries are AI conversation fragments? Seven kinds sorted, no API row limits, plus the anonymised split the API can't see.
gsc_forecastARIMA_PLUS traffic forecasting via BigQuery ML. Predict clicks up to 365 days out.
gsc_anomaliesML anomaly detection. Flags genuinely unusual traffic patterns, not just threshold breaches.
gsc_seasonalYear over year monthly comparison. Spot seasonal patterns with YoY percentage changes.
gsc_device_splitQueries where mobile and desktop rank entirely different pages from your site.
gsc_intent_breakdownClassify all queries by search intent: informational, transactional, commercial, navigational.
gsc_ngramsExtract recurring terms from queries. Find themes your content should cover.
gsc_new_keywordsQueries appearing in recent data that weren't present before.

GSC analysis (12)

The same analysis tools from the GSC MCP server, rebuilt to run on BigQuery's unsampled data.

ToolWhat it answers
gsc_quick_winsKeywords at positions 4 to 15 with high impressions, scored by opportunity
gsc_ctr_opportunitiesPages with high impressions but CTR below expected for their position
gsc_content_gapsTopics with search demand but no real content targeting them
gsc_site_snapshotHow is the site doing overall? Clicks, impressions, CTR, position with period comparison
gsc_content_decayPages declining across three consecutive 30 day periods
gsc_cannibalisationKeywords where multiple pages compete against each other
gsc_traffic_dropsWhat lost traffic, and whether it's a ranking loss, CTR collapse, or demand decline
gsc_topic_clusterAggregated performance for all pages matching a URL path pattern
gsc_ctr_benchmarkYour actual CTR per position vs industry benchmarks
gsc_alertsPosition drops, CTR collapses, click losses, disappeared pages. Severity rated
gsc_content_recommendationsPrioritised actions: pages to update, content to create, pages to consolidate
gsc_reportFull markdown performance report

GA4 + GSC blending (6, new in v4.0)

Require the GA4 BigQuery export running alongside GSC in the same project. Set BIGQUERY_GA4_DATASET (or pass ga4_dataset per call). Full setup guide.

ToolWhat it answers
ga4_gsc_query_revenueWhich search queries actually drive revenue and conversions? Proportional attribution by click share.
ga4_gsc_content_roiWhich pages have the biggest gap between rankings and conversions? Diagnoses each page.
ga4_gsc_position_valueWhat is each search position worth on your site? Conversion rate and revenue per click by position bucket.
ga4_gsc_snippet_mismatchWhich pages have misleading or underselling snippets?
ga4_gsc_branded_performanceHow does branded vs non-branded traffic convert?
ga4_gsc_page_performanceFull page-level search + analytics metrics joined per landing page.

General purpose (6)

Work with any BigQuery dataset, not just GSC.

ToolWhat it does
queryRun any SELECT query. Claude writes the SQL for you.
query_cost_estimateDry run to see bytes scanned before executing.
list_datasetsDiscover available datasets in your project.
list_tablesAll tables and schemas in a dataset.
describe_tableColumn types, row counts, partitioning, size.
sample_rowsPreview rows without writing SQL.

Why BigQuery instead of the GSC API?

GSC APIBigQuery bulk export
SamplingSampled at high volumesUnsampled
Anonymous queriesHidden entirelyIncluded
HistoryRolling 16 monthsPermanent (forward only, no backfill)
Query flexibilityFixed parametersAny SQL you want
ML capabilitiesNoneARIMA forecasting, anomaly detection
CostFree~$12 to $24/year

Both complement each other. Use the GSC MCP server for quick real time lookups. Use this for deeper analysis.

What makes this different

Analysis, not just queries. Most BigQuery tools give you raw SQL access. This ships with 27 pre-built SEO analysis tools: opportunity scoring, cannibalisation detection, decay tracking, CTR benchmarking, traffic drop diagnosis, ML forecasting, AI conversation-query detection, and GA4 + GSC revenue attribution. You ask a question, it runs the analysis and tells you what to do.

ML built in. ARIMA_PLUS traffic forecasting and anomaly detection run directly in BigQuery. No external services, no extra cost beyond standard BigQuery pricing.

Hallucination guardrails. Every tool instructs Claude to base analysis only on returned data. Provenance metadata in every response. Exact numbers, no speculation, insufficient data flagged.

Visual dashboards. Results render as rich, interactive visualisations in Claude Desktop. Summary cards, colour coded indicators, bar charts, and tabbed sections. Not plain text dumps.

Read only. Cost controlled. Only SELECT queries allowed. All mutations blocked. Auto-LIMIT on queries, 10GB bytes billed cap, dry run cost preview. EXPORT, CALL, and EXECUTE statements blocked.

Environment variables

VariableRequiredDescription
BIGQUERY_PROJECT_IDYesYour Google Cloud project ID
BIGQUERY_KEY_FILENoPath to service account JSON key (falls back to GOOGLE_APPLICATION_CREDENTIALS)
BIGQUERY_DEFAULT_DATASETNoDefault dataset for queries (e.g. searchconsole)
BIGQUERY_LOCATIONNoDataset location (default: US). Set to EU, asia-southeast1, etc. if needed.
BIGQUERY_GA4_DATASETNoGA4 export dataset name (e.g. analytics_123456789). Only needed for the 6 ga4_gsc_* blending tools.

Full guide

Step by step setup with screenshots, cost breakdowns, and honest comparison with dedicated SEO tools:

suganthan.com/blog/bigquery-mcp-server/

Changelog

v4.1.1 Position maths corrected across the 13 gsc_* tools. The bulk export's position columns are zero-based, and the older tools summed them without the + 1 that the ga4_gsc_* tools already applied, so average positions read one rank too good and position-band filters shifted by one (gsc_quick_wins asked for 4 to 15 and effectively selected 3 to 14). All 19 expressions are fixed, lookback windows now anchor to the export's latest data_date rather than the wall clock, and every affected tool description carries a note on how to read avg_position. Independently caught, evidenced and fixed by David Wulf in #1 before this landed; his PR also proposes five new tools, under review for the next release.

v4.1.0 Generative AI conversation queries, the BigQuery twin. gsc_genai_conversation_queries finds the AI conversation fragments hiding in your query data and sorts them into seven kinds: reply artefacts, pivot follow-ups, conversational questions, tracker probes, agent harnesses, pasted strings, and a review pile. Same classifier as the GSC MCP version, run over the bulk export instead of the API, so there are no serving limits on large sites, windows anchor to the export's real freshness, and it reports the anonymised split: how many of your impressions carry no query string at all, which is where most of the conversation pool hides (57.7% on the reference property). John Mueller made the same point on LinkedIn the day it launched: large sites will find more of these queries in the export than any other route returns. Total tools now 33. Full method and findings: the launch post.

v4.0.0 GA4 integration. 6 new tools that blend GA4 conversion and revenue data with GSC search data: ga4_gsc_query_revenue, ga4_gsc_content_roi, ga4_gsc_position_value, ga4_gsc_snippet_mismatch, ga4_gsc_branded_performance, and ga4_gsc_page_performance. Requires the GA4 BigQuery export running alongside GSC and one extra environment variable (BIGQUERY_GA4_DATASET). Total tools now 32. Full setup guide: GA4 + GSC in BigQuery.

Keyword revenue attribution demo: queries joined to GA4 conversion and revenue data via proportional click share

v3.1.0 Visual dashboard rendering. All GSC analysis tools now produce rich, interactive visualisations in Claude Desktop with summary cards, colour coded indicators, bar charts, and tabbed sections instead of plain text output. No reinstall needed, just restart Claude Desktop.

Visual dashboard rendering in Claude Desktop

v3.0.0 Initial release with 26 tools: 8 BigQuery exclusives (anonymous traffic, ML forecasting, anomaly detection, seasonal analysis, device split, intent breakdown, N-grams, new keywords), 12 GSC analysis tools, and 6 general purpose BigQuery tools.

Licence

Apache 2.0. See LICENSE and NOTICE for details. Use it, fork it, build on it. Just keep the attribution.

Built by Suganthan Mohanadasan. If you find it useful, star it.

インストール

TypingMind
{
  "mcpServers": {
    "suganthans-bigquery-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/Suganthans-BigQuery-MCP-Server/dist/index.js"
      ],
      "env": {
        "BIGQUERY_PROJECT_ID": "<BIGQUERY_PROJECT_ID>"
      }
    }
  }
}

BigQuery MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度BigQuery MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

BigQuery MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. BigQuery MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "suganthans-bigquery-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@suganthan/bigquery-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてBigQuery MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. BigQuery MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
BigQuery MCP Serverを使ってこのタスクを手伝ってもらえますか?
BigQuery MCP Server
はい、読みました。
BigQuery MCP Serverで調べた結果をお伝えします。

よくある質問

BigQuery MCP Server MCPサーバーは何に使いますか?

BigQuery MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでBigQuery MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでBigQuery MCP Serverを利用できます。

TypingMindでBigQuery MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。BigQuery MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

BigQuery MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

BigQuery MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでBigQuery MCP Server MCPのどのようなツールを利用できますか?

BigQuery MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

BigQuery MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。BigQuery MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇