Manage GA4 properties, data streams, conversions, and run analytics reports directly via Google's Admin and Data APIs. For developers integrating Google Analytics into applications or automating GA4 configuration and reporting workflows.
io.github.stucchi/google-analytics
Local install
STDIO
No auth required
How models use it and what it is built for.
Manage GA4 properties, data streams, conversions, and run analytics reports directly via Google's Admin and Data APIs. For developers integrating Google Analytics into applications or automating GA4 configuration and reporting workflows.
Local install — runs as a subprocess.
Configuration this server reads at startup.
Google Service Account JSON key content (copy-paste the entire JSON)
Alternative: path to the Service Account JSON key file
Where to find authoritative docs and source for Google Analytics 4.
Paste any of these into Agent Studio after connecting Google Analytics 4.
Common questions about connecting and running Google Analytics 4.
How do I authenticate this MCP server with Google Analytics?
Set the GA_CREDENTIALS environment variable with your Google Service Account JSON key (copy-paste the entire JSON), or use GA_CREDENTIALS_PATH to point to the key file. You can generate a Service Account key in the Google Cloud Console.
What can I do with this server?
You can manage GA4 properties and data streams, configure conversions, and run analytics reports using Google's Admin and Data APIs. It's designed for automating GA4 setup and retrieving reporting data programmatically.
Do I need a Google Cloud project to use this?
Yes, you need a Google Cloud project with the Google Analytics Admin API and Google Analytics Data API enabled, plus a Service Account with appropriate permissions to your GA4 properties.
Can I run custom reports with specific metrics and dimensions?
Yes, the server uses Google's Data API to run reports. Refer to the Google Analytics Data API documentation for supported metrics, dimensions, and filtering options available for your queries.
What's the difference between GA_CREDENTIALS and GA_CREDENTIALS_PATH?
GA_CREDENTIALS accepts the full Service Account JSON key as a string (useful for environment variables in CI/CD), while GA_CREDENTIALS_PATH points to a file path where the key is stored. Use whichever fits your deployment setup.
MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 40+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.
Open Agent StudioJudges Panel
45 judges that evaluate AI-generated code for security, cost, and quality with built-in AST.
Addozhang Nexus
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Cyanheads MCP Ts Template
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Chernistry Bernstein
Declarative agent orchestration for engineering teams