MCP Server Studio
Google Analytics 4 MCP: reports, realtime, funnels, pivots, metadata, admin lists. 17 tools.
Registry name: io.scalably/ga4-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"ga4-mcp": {
"command": "uvx",
"args": [
"scalably-ga4-mcp==1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
}
}
}
}Run in your terminal:
claude mcp add ga4-mcp -e GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -e GA4_LOG_LEVEL='<GA4_LOG_LEVEL>' -- uvx scalably-ga4-mcp==1.0.1Add to .cursor/mcp.json:
{
"mcpServers": {
"ga4-mcp": {
"command": "uvx",
"args": [
"scalably-ga4-mcp==1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"ga4-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"scalably-ga4-mcp==1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"ga4-mcp": {
"command": "uvx",
"args": [
"scalably-ga4-mcp==1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_LOG_LEVEL": "<GA4_LOG_LEVEL>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS | Yes | Path to a Google service-account JSON file with the analytics.readonly scope; add the service account as a Viewer on each GA4 property |
GA4_LOG_LEVEL | No | Log level, default INFO |