Skip to main content
Glama

GA4 MCP Server

Google ADK の UI を使って GA4 MCP サーバーを構築するためのリポジトリです。

必要な権限

Cloud Run Admin
Compute Load Balancer Admin
Editor
Logs Configuration Writer
Monitoring Editor
Service Account Admin
Service Account User

Related MCP server: Google Analytics MCP server on Cloudflare Workers

デプロイ手順

  1. 各種 API を有効化

    • Cloud Run API

    • Compute Engine API

    • Vertex AI API

    • Cloud Build API

    • Google Analytics Admin API

    • Google Analytics Data API

  2. サービスアカウントの作成

    • ロール: Vertex AI ユーザー

  3. GA4 アカウントもしくはプロパティでサービスアカウントに以下の権限を付与

    • 役割: 閲覧者

    • 対象: 作成したサービスアカウント

  4. Artifact Registry にリポジトリを作成。Docker コンテナを push

  5. Cloud Run にて新しいサービスを作成

  6. Cloud Load Balancing にて新しいロードバランサを作成

    • 必要であれば IP 制限

開発手順

以下のコマンドを実行し、https://www.googleapis.com/auth/analytics.readonlyhttps://www.googleapis.com/auth/cloud-platform の権限を付与した認証情報を取得。

gcloud auth application-default login \
  --scopes https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform 

ADK の UI を起動

 adk web --reload_agents

参考

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables interaction with Google Analytics 4 to manage accounts, run standard or realtime reports, and validate event parameters. It supports dual authentication methods and integrates with GTM for end-to-end data collection orchestration.
    8
  • A
    license
    A
    quality
    D
    maintenance
    Enables LLM applications to query and analyze Google Analytics 4 data through standard MCP interfaces, supporting service account and OAuth2 authentication.
    5
    24
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables querying Google Analytics 4 properties through natural language, supporting historical and real-time reports, metadata discovery, and property listing via a Vercel-deployed MCP server.
    155
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paulhindemith/ga4-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server