Skip to main content

Google Analytics

OfficialFeatured 🗄️ Data & Files

Google's official Analytics MCP — query your GA4 data: run reports, explore dimensions and metrics, and get realtime and historical traffic insights.

Tags

analyticsGA4traffic

Tools (4)

run_reportrun_realtime_reportget_metadatalist_dimensions

Client configuration

Cursor (.cursor/mcp.json)

{ "mcpServers": { "google-analytics": { "command": "uvx", "args": [ "google-analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "your-google-application-credentials-here", "GA_PROPERTY_ID": "your-ga-property-id-here" } } } }

VS Code (.vscode/mcp.json)

{ "servers": { "google-analytics": { "command": "uvx", "args": [ "google-analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "your-google-application-credentials-here", "GA_PROPERTY_ID": "your-ga-property-id-here" }, "type": "stdio" } } }

Replace the placeholders before connecting. Authorize in your client when prompted.

The Cursor JSON also works in Claude Desktop's local MCP configuration. Install the required runtime and local software first.

Documentation →