Google Analytics 4
CommunityMCP server by stucchi · updated · ★ 0
Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs. Google Analytics 4 is a community project by stucchi, not verified by a company domain.
Last commit 234 days ago
No licence found, so reuse rights are unclear
Clear description, published package or server URL, original repository
Not checked yet. What we check
What you need
| Setting | Needed | What it is |
|---|---|---|
GA_Environment variable | Optional | Google Service Account JSON key content (copy-paste the entire JSON) |
GA_Environment variable | Optional | Alternative: path to the Service Account JSON key file Default: ~/.google-analytics-mcp/credentials.json |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install Google Analytics 4
Built from the published package, never by AIclaude mcp add google-analytics-4 -- uvx google-analytics-4-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"google-analytics-4": {
"command": "uvx",
"args": [
"google-analytics-4-mcp"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"google-analytics-4": {
"command": "uvx",
"args": [
"google-analytics-4-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"google-analytics-4": {
"command": "uvx",
"args": [
"google-analytics-4-mcp"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add google-analytics-4 -- uvx google-analytics-4-mcp{
"mcpServers": {
"google-analytics-4": {
"command": "uvx",
"args": [
"google-analytics-4-mcp"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add google-analytics-4 uvx google-analytics-4-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-analytics-4 block.
Alternatives to Google Analytics 4
All alternatives →The Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models.
Agent-Native Amplitude/Mixpanel - connect data sources, prompt for charts
Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI
A Model Context Protocol (MCP) server that provides chat functionality with Cube's AI agent for analytics and data exploration
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP gateway for AI models (OpenAI, Grok, DeepSeek, Claude and other function-calling LLMs) and for web pages and apps: one authenticated, observable endpoint in front of your MCP servers with routing, scopes, rate limits and metrics.
Google Analytics 4: common questions
How do I install Google Analytics 4?
In Claude Code run claude mcp add google-analytics-4 -- uvx google-analytics-4-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Google Analytics 4 the official server?
Google Analytics 4 is a community project by stucchi, not verified by a company domain.
Is Google Analytics 4 free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is Google Analytics 4 safe to use?
It scores 18 of 100. Grades: maintenance D, licence F, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to Google Analytics 4?
Similar MCP servers: Power BI Authoring MCP Server (Local), Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Cube Dev MCP Server.
Does Google Analytics 4 work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
