Google Analytics MCP Server connects GA4 data to Claude, Cursor and other MCP clients, enabling natural language queries for website traffic, user behavior, and analytics with access to 200+ GA4 dimensions and metrics.
Retrieve GA4 data with custom dimensions and metrics, including smart data volume warnings and server-side aggregation.
Browse available dimension categories.
Browse available metric categories.
Get dimensions for a specific category.
Get metrics for a specific category.
{
"mcpServers": {
"ga4-analytics": {
"command": "python3",
"args": ["-m", "ga4_mcp_server"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your/service-account-key.json",
"GA4_PROPERTY_ID": "123456789"
}
}
}
}