Skip to main content

SEO Tools: Google Analytics 4

io.github.antohins/seo-tools-mcp-ga4

v1.8.0Updated Aug 25, 2026stdio · npm

Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add seo-tools-mcp-ga4 -- npx -y [email protected]

Configuration

6 settings.

  • GOOGLE_CLIENT_SECRET
    Env var· optional· secret
    Google OAuth client secret.
  • GA4_REFRESH_TOKEN
    Env var· optional· secret
    OAuth refresh token (obtained via ga4_oauth_start / ga4_oauth_finish).
  • GOOGLE_CLIENT_ID
    Env var· optional
    Google OAuth client ID (Desktop app), shared with the gsc server.
  • GA4_SA_JSON
    Env var· optional
    Path to a service-account JSON key (alternative to OAuth).
  • GA4_PROPERTY_ID
    Env var· optional
    Default GA4 property id (numeric, e.g. 123456789).
  • GA4_OAUTH_PORT
    Env var· optional
    Loopback port for the OAuth flow (default 8586).

Listed in the official MCP Registry since Aug 25, 2026. Mirrored daily; last checked Nov 26, 2026.