MCP directory
GA

GA4 Analytics MCP

by renzojohnson.com · v26.11.13 · updated Nov 12, 2026

GA4 MCP server: Google Analytics 4 reports, realtime data, property admin and Search Console.

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @renzo.johnson/[email protected]

Environment variables

  • GOOGLE_APPLICATION_CREDENTIALS

    Path to a service account key or authorized_user JSON file. Optional if you use gcloud Application Default Credentials or the OAuth variables.

  • GOOGLE_OAUTH_CLIENT_ID

    OAuth client ID. Set together with the client secret and refresh token.

  • GOOGLE_OAUTH_CLIENT_SECRETsecret

    OAuth client secret.

  • GOOGLE_OAUTH_REFRESH_TOKENsecret

    OAuth refresh token with the Analytics, Search Console and Indexing API scopes.

More from renzojohnson.com

More MCP servers