Google Analytics 4
Manage GA4 properties, streams, conversions, custom definitions, links, credentials, and reports through MCP tools.
Install Google Analytics 4
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"google-analytics-4-2": {
"command": "uvx",
"args": [
"google-analytics-4-mcp"
],
"env": {
"GA_CREDENTIALS": "YOUR_VALUE_HERE",
"GA_CREDENTIALS_PATH": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
claude mcp add --env GA_CREDENTIALS=YOUR_VALUE_HERE --env GA_CREDENTIALS_PATH=YOUR_VALUE_HERE --transport stdio google-analytics-4-2 -- uvx google-analytics-4-mcpRun in your terminal. Add --scope project to share it with your team through .mcp.json.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
uvx google-analytics-4-mcpProcess exited before answering initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Create a GA4 property and web data stream
- Generate a gtag.js tracking snippet
- Mark events as conversions
- Run filtered GA4 reports
- Inspect real-time users and events
Key features
- Service-account authentication checks
- GA4 property and data-stream administration
- Conversion and custom-definition management
- Google Ads account linking
- Standard and real-time reporting
- Dimension and metric metadata lookup
Tools23
What Google Analytics 4 lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 2d ago via OSV.dev · google-analytics-4-mcp (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Google Analytics 4 works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Google Analytics 4
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/google-analytics-4-2)<a href="https://allmcps.com/mcp/google-analytics-4-2"><img src="https://allmcps.com/api/badge/google-analytics-4-2?style=directory" alt="Google Analytics 4 on AllMCPs" /></a>