プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Google Analytics 4

作者:mindstoneバージョン 0.2.1i★ –iパソコンで動く
レジストリ名io.github.mindstone/mcp-server-google-analytics

インストール

概要

作者による説明(英語の原文)

Google Analytics 4 MCP server with reporting, schema discovery, and admin visibility tools

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: マーケティング・SNS
  • 入力が必要なもの:GOOGLE_APPLICATION_CREDENTIALS

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: GOOGLE_APPLICATION_CREDENTIALS, GA4_PROPERTY_ID

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GA4_PROPERTY_ID": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add google-analytics --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GA4_PROPERTY_ID=your-value -- npx -y @mindstone/mcp-server-google-analytics

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GA4_PROPERTY_ID": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "google-analytics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GA4_PROPERTY_ID": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • GOOGLE_APPLICATION_CREDENTIALS 必須 env
    Absolute path to ADC or service-account JSON file
  • GA4_PROPERTY_ID env
    Default GA4 property ID (e.g. 123456789)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント mindstone で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

マーケティング・SNSのほかのサーバーとの比較i

  • このカテゴリのほかの2959件のうち0%よりスターが多い
  • このカテゴリのほかの2959件のうち24%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの2959件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Google Analytics 4は安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:GOOGLE_APPLICATION_CREDENTIALS

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.2.1)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Google Analytics MCP

作者:surendranb

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

パソコンで動く★ 244MIT9 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

@mindstone/mcp-server-google-analytics

Google Analytics 4 MCP server for Model Context Protocol hosts. Discover account/property structure, explore the live schema, run reports (with row-volume safety), create large asynchronous exports, and inspect admin configuration through a standardised MCP interface. With writes explicitly enabled, it can also set up and change property configuration: key events, custom dimensions and metrics, audiences, channel groups, data streams, enhanced measurement, event create and edit rules, calculated metrics, annotations, attribution, Measurement Protocol secrets, product links, and data retention.

Status

  • Version: 0.2.1 · npm
  • Auth: OAuth via Google ADC (GOOGLE_APPLICATION_CREDENTIALS)
  • Tools: 91 (accounts, schema, reporting, admin, admin writes)
  • Surface: cloud-api
  • Machine-readable: STATUS.json

Requirements

  • Node.js 20+
  • npm
  • Google Application Default Credentials (ADC) with the analytics.readonly scope, or a service account JSON with access to the GA4 property
  • For write tools: GA4_ALLOW_WRITES=true, credentials with the analytics.edit scope, and the Editor role on the property

One-click install

After clicking the button, your host will prompt you to fill: GOOGLE_APPLICATION_CREDENTIALS.

Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (Google Analytics 4)

{

"mcpServers": { "Google Analytics 4": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-google-analytics" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "" } } } }

Quick Start

Install & build
cd <path-to-repo>/connectors/google-analytics

npm install npm run build

npx (once published)
npx -y @mindstone/mcp-server-google-analytics
Local
node dist/index.js

Authentication

This server uses Google Application Default Credentials (ADC). Mint ADC for a user account by installing the Google Cloud CLI and running:

gcloud auth application-default login \

--scopes=https://www.googleapis.com/auth/analytics.readonly \ --client-id-file=/absolute/path/to/oauth-client-secret.json

The --client-id-file is optional but strongly recommended — using your own OAuth client avoids the shared gcloud quota and gives you a stable verification footprint. You'll need a Google Cloud project with the Google Analytics Admin API and Google Analytics Data API enabled.

For service accounts, set GOOGLE_APPLICATION_CREDENTIALS to the absolute path of the service-account JSON. The service account must be granted access to the GA4 property in the GA4 Admin UI.

Enabling writes

Write tools are registered but refuse to run (WRITES_DISABLED) unless GA4_ALLOW_WRITES=true. To use them, mint ADC with the edit scope instead:

gcloud auth application-default login \

--scopes=https://www.googleapis.com/auth/analytics.edit \ --client-id-file=/absolute/path/to/oauth-client-secret.json

The account (or service account) also needs the Editor role on the GA4 property. Service-account credentials request the edit scope automatically when writes are enabled; user ADC keeps whatever scope it was minted with.

Configuration

Environment variables
  • GOOGLE_APPLICATION_CREDENTIALS — required. Absolute path to ADC or service-account JSON. Node does not expand ~ or %APPDATA% — provide a fully-resolved path.
  • GA4_PROPERTY_ID — optional. Default GA4 property ID (e.g. 123456789). Tools fall back to this when property_id is not passed in the call.
  • GA4_ALLOW_WRITES — optional. Set to true (or 1) to allow the write tools to change GA4 configuration. Any other value, or unset, keeps the connector read-only.

Host configuration examples

Claude Desktop / Cursor
{

"mcpServers": { "GoogleAnalytics": { "command": "npx", "args": ["-y", "@mindstone/mcp-server-google-analytics"], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/Users/you/.config/gcloud/application_default_credentials.json", "GA4_PROPERTY_ID": "123456789" } } } }

Local development (no npm publish needed)
{

"mcpServers": { "GoogleAnalytics": { "command": "node", "args": [" /connectors/google-analytics/dist/index.js"], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/credentials.json", "GA4_PROPERTY_ID": "123456789" } } } }

Tools (91)

Account & property
  • ga_list_account_summaries — discover available accounts and properties
  • ga_list_properties — flat list of GA4 properties with optional filtering
  • ga_get_property_details — currency, time zone, industry category, service level
Schema discovery
  • ga_get_metadata — live property schema
  • ga_get_property_schema — same data with summary counts
  • ga_search_schema — keyword search across dimensions and metrics
  • ga_list_dimension_categories, ga_list_metric_categories
  • ga_get_dimensions_by_category, ga_get_metrics_by_category
  • ga_check_compatibility — verify dimension/metric combinations before reporting
Reporting
  • ga_run_report — core report with row-volume safety (estimate, opt-in to large datasets, automatic aggregation suggestions)
  • ga_run_pivot_report — cross-tabulated reports
  • ga_batch_run_reports — up to 5 reports in one call
  • ga_run_realtime_report — last 30 minutes of activity
  • ga_get_property_quotas_snapshot — remaining tokens / requests
  • ga_run_funnel_report — step-by-step completion and drop-off, with optional breakdown, next action, and trended view (v1alpha)
Large exports
  • ga_create_report_task — start an asynchronous report task for large exports (no synchronous timeout, no row-volume gate)
  • ga_get_report_task — poll task state until ACTIVE
  • ga_query_report_task — page task rows (up to 250,000 per page)
  • ga_create_audience_export — snapshot the users in an audience (incl. predictive segments); charges audience-export quota tokens
  • ga_get_audience_export — poll export state until ACTIVE
  • ga_list_audience_exports — find and reuse existing exports
  • ga_query_audience_export — page user-level rows from an ACTIVE export
Admin visibility
  • ga_list_audiences — audiences configured on the property, with filter clauses
  • ga_list_channel_groups — channel groups and their grouping rules
  • ga_get_custom_dimensions_and_metrics
  • ga_list_google_ads_links
  • ga_list_key_events
  • ga_list_data_streams
  • ga_get_global_site_tag — gtag.js snippet for the first web stream
  • ga_list_bigquery_links
  • ga_get_data_retention_settings
  • ga_list_firebase_links
  • ga_search_change_history_events
  • ga_get_enhanced_measurement_settings — automatic events on a web stream
  • ga_list_event_create_rules — rules that derive new events on a stream
  • ga_list_measurement_protocol_secrets — secret values are returned; treat as sensitive
  • ga_list_annotations — chart annotations (v1alpha)
  • ga_get_attribution_settings — attribution model and lookback windows (v1alpha)
  • ga_list_calculated_metrics — formula metrics (v1alpha)
  • ga_list_event_edit_rules — rules that rename or modify events on a stream (v1alpha)
  • ga_get_google_signals_settings (v1alpha)
  • ga_get_data_sharing_settings — account-level
Admin writes (require GA4_ALLOW_WRITES=true)

Every write is annotated readOnlyHint: false, destructiveHint: true. Archive, delete, acknowledgement, and data-retention tools also require confirm: true. Update tools change only the fields you pass (the update mask is built from them) and fail with NOTHING_TO_UPDATE if you pass none.

  • Key events: ga_create_key_event, ga_update_key_event, ga_delete_key_event
  • Custom dimensions: ga_create_custom_dimension, ga_update_custom_dimension, ga_archive_custom_dimension
  • Custom metrics: ga_create_custom_metric, ga_update_custom_metric, ga_archive_custom_metric
  • Audiences (v1alpha): ga_create_audience, ga_update_audience, ga_archive_audience
  • Channel groups (v1alpha): ga_create_channel_group, ga_update_channel_group, ga_delete_channel_group
  • Event create rules (v1alpha): ga_create_event_create_rule, ga_update_event_create_rule, ga_delete_event_create_rule
  • Property: ga_create_property, ga_update_property, ga_delete_property (moves to trash for 35 days), ga_acknowledge_user_data_collection
  • Data streams: ga_create_web_data_stream, ga_update_data_stream, ga_delete_data_stream
  • Enhanced measurement (v1alpha): ga_update_enhanced_measurement_settings
  • Measurement Protocol secrets: ga_create_measurement_protocol_secret, ga_delete_measurement_protocol_secret
  • Google Ads links: ga_create_google_ads_link, ga_update_google_ads_link, ga_delete_google_ads_link
  • Firebase links: ga_create_firebase_link, ga_delete_firebase_link
  • BigQuery links (v1alpha): ga_create_bigquery_link, ga_update_bigquery_link, ga_delete_bigquery_link
  • Data retention: ga_update_data_retention_settings
  • Annotations (v1alpha): ga_create_annotation, ga_update_annotation, ga_delete_annotation
  • Attribution (v1alpha): ga_update_attribution_settings
  • Calculated metrics (v1alpha): ga_create_calculated_metric, ga_update_calculated_metric, ga_delete_calculated_metric
  • Event edit rules (v1alpha): ga_create_event_edit_rule, ga_update_event_edit_rule, ga_delete_event_edit_rule

Explorations, saved reports, and report layouts have no Google API, so they cannot be created or changed by this connector.

Notes

  • Read-only by default. Without GA4_ALLOW_WRITES=true, the only tools that create anything are ga_create_report_task and ga_create_audience_export, which materialise server-side snapshots and charge quota without modifying property configuration. The admin write tools refuse with WRITES_DISABLED before any request is sent. All of these are annotated readOnlyHint: false, destructiveHint: true, so hosts can gate them behind explicit user approval.
  • Alpha endpoints. Audiences, channel groups, BigQuery lin

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く