Skip to content
MCP server

Google Analytics 4 MCP

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.1
Listing updated
4 days ago

About Google Analytics 4 MCP

Google Analytics 4 MCP is an open-source MCP server for analytics and data. It runs locally on your machine and is started by your AI client.

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

Install

Run in a terminal

claude mcp add ga4-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -- uvx scalably-ga4-mcp

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

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

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • GOOGLE_APPLICATION_CREDENTIALSPath to a Google service-account JSON file with the analytics.readonly scope; add the service account as a Viewer on each GA4 propertyRequired
  • GA4_LOG_LEVELLog level, default INFO

Pricing

Open source

Prices change. Check scalably.io before you buy.

Google Analytics 4 MCP FAQ

Is Google Analytics 4 MCP free?

Yes. Google Analytics 4 MCP is open source, so you can use and self-host it for free.

How do I add Google Analytics 4 MCP to Claude Code?

Run this command in your terminal: claude mcp add ga4-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -- uvx scalably-ga4-mcp

What are the best alternatives to Google Analytics 4 MCP?

The closest alternatives to Google Analytics 4 MCP are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

Alternatives to Google Analytics 4 MCP

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  4. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  5. CompanyData

    MCP server

    Search and enrich company records from official registers via the CompanyData API

    • 3 tools
    • Remote
    • Paid
    • 3 GitHub stars
    • Analytics and data
  6. ChartAnt

    MCP server

    Remote MCP server returning charts, maps and dashboards as hosted PNG links

    • 51 tools
    • Remote
    • Freemium
    • Design and media