Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.
uvx google-analytics-4-mcp{
"GA_CREDENTIALS": "YOUR_VALUE_HERE",
"GA_CREDENTIALS_PATH": "~/.google-analytics-mcp/credentials.json"
}Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
{
"mcpServers": {
"io-github-stucchi-google-analytics": {
"command": "uvx",
"args": [
"google-analytics-4-mcp"
],
"env": {
"GA_CREDENTIALS": "YOUR_VALUE_HERE",
"GA_CREDENTIALS_PATH": "~/.google-analytics-mcp/credentials.json"
}
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonNo remote HTTP endpoint is advertised. Use the package or stdio setup shown in Install.
Google Analytics 4 is an MCP server for Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.. It supports STDIO transport.
Use the generated config in Install. This server runs with uvx google-analytics-4-mcp; add any required environment variables before starting your client.
Choose the Claude Desktop tab in Install and copy the config for uvx google-analytics-4-mcp. Add required environment variables before starting Claude Desktop.
Choose the Claude Code tab in Install and copy the config for uvx google-analytics-4-mcp. Add required environment variables before starting Claude Code.
Choose the Codex tab in Install and copy the config for uvx google-analytics-4-mcp. Add required environment variables before starting Codex.
Choose the Cursor or VS Code tab in Install and copy the config for uvx google-analytics-4-mcp. Add required environment variables before starting Cursor or VS Code.
Google Analytics 4 uses STDIO transport. Use the package or command config in Install.
Google Analytics 4 inventory is listed when the MCP endpoint exposes tools, resources, or prompts. Some servers require auth first.
Google Analytics 4 does not advertise a verified auth requirement. If discovery fails, it may still need provider login, an API key, a bearer token, or a session header.
| Package | Registry | Version | Inputs |
|---|---|---|---|
google-analytics-4-mcpstdio | pypi | 0.1.1 | Env: GA_CREDENTIALS Env: GA_CREDENTIALS_PATH |