Google Analytics 4

io.github.stucchi/google-analytics

Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "google-analytics": {
      "command": "uvx",
      "args": [
        "google-analytics-4-mcp"
      ],
      "env": {
        "GA_CREDENTIALS_PATH": "~/.google-analytics-mcp/credentials.json"
      }
    }
  }
}
Environment variables
  • GA_CREDENTIALS_PATHAlternative: path to the Service Account JSON key file

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Data & Analytics
Version
0.1.1
Registry
active
Published
3/1/2026
Browse all Data & Analytics →

Add the badge to your site

Show visitors that Google Analytics 4 is listed here — it’s also the link we check for a free listing.

Google Analytics 4 — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-stucchi-google-analytics?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Google Analytics 4 — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Google Analytics 4 — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-stucchi-google-analytics?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.