analytics
Google Analytics MCP Server
Official Google Analytics MCP server. Query GA4 traffic data, run reports, access real-time analytics, and review property configuration — all from Claude.
Pricing: free — Free. GA4 is free for standard usage. Requires a Google Cloud service account (also free).
Features
- List all GA4 accounts and properties you have access to
- Get detailed property configuration and settings
- Run standard reports with any dimensions, metrics, and filters
- Run real-time reports showing live visitor data
- List Google Ads account links for a GA4 property
- Retrieve custom dimensions and metrics
Setup Instructions
1. Enable the Google Analytics Admin API and Data API in Google Cloud Console
2. Create a service account and download its JSON key file
3. Grant the service account Viewer access in your GA4 property
4. Add to your Claude MCP config:
``
json
{
"mcpServers": {
"google-analytics": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account-key.json"
}
}
}
}
``
5. Requires Python 3.10+ and pipx installedAdded: 2025-02-18