Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.
Connect Runs on your machine
claude mcp add google-analytics -e GA_CREDENTIALS=<GA_CREDENTIALS> -e GA_CREDENTIALS_PATH=<GA_CREDENTIALS_PATH> -- uvx google-analytics-4-mcp==0.1.1
{
"mcpServers": {
"google-analytics": {
"command": "uvx",
"args": [
"google-analytics-4-mcp==0.1.1"
],
"env": {
"GA_CREDENTIALS": "<GA_CREDENTIALS>",
"GA_CREDENTIALS_PATH": "<GA_CREDENTIALS_PATH>"
}
}
}
}
{
"mcpServers": {
"google-analytics": {
"command": "uvx",
"args": [
"google-analytics-4-mcp==0.1.1"
],
"env": {
"GA_CREDENTIALS": "<GA_CREDENTIALS>",
"GA_CREDENTIALS_PATH": "<GA_CREDENTIALS_PATH>"
}
}
}
}
{
"servers": {
"google-analytics": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-4-mcp==0.1.1"
],
"env": {
"GA_CREDENTIALS": "<GA_CREDENTIALS>",
"GA_CREDENTIALS_PATH": "<GA_CREDENTIALS_PATH>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
GA_CREDENTIALSOptional | Google Service Account JSON key content (copy-paste the entire JSON) |
GA_CREDENTIALS_PATHOptional | Alternative: path to the Service Account JSON key file |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 1 Mar 2026 |
| Last updated | 1 Mar 2026 |
| Registry name | io.github.stucchi/google-analytics |
More data and analytics servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
