MCP Server Studio

Google Analytics 4 MCP MCP server

Google Analytics 4 MCP: reports, realtime, funnels, pivots, metadata, admin lists. 17 tools.

Registry name: io.scalably/ga4-mcp

Publisher
scalably.io
Runs
Runs locally
Package
PyPI
Version
1.0.1
Category
Marketing & SEO
Updated
2026-09-09

Source code on GitHub

Set up Google Analytics 4 MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ga4-mcp": {
      "command": "uvx",
      "args": [
        "scalably-ga4-mcp==1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add ga4-mcp -e GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -e GA4_LOG_LEVEL='<GA4_LOG_LEVEL>' -- uvx scalably-ga4-mcp==1.0.1

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "ga4-mcp": {
      "command": "uvx",
      "args": [
        "scalably-ga4-mcp==1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "ga4-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "scalably-ga4-mcp==1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "ga4-mcp": {
      "command": "uvx",
      "args": [
        "scalably-ga4-mcp==1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
GOOGLE_APPLICATION_CREDENTIALSYesPath to a Google service-account JSON file with the analytics.readonly scope; add the service account as a Viewer on each GA4 property
GA4_LOG_LEVELNoLog level, default INFO

More marketing & seo MCP servers