Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.
Connect Runs on your machine
claude mcp add ga4 -e GA4_PROPERTY_ID=<GA4_PROPERTY_ID> -e GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS> -- npx -y [email protected]
{
"mcpServers": {
"ga4": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
{
"mcpServers": {
"ga4": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
{
"servers": {
"ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
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 |
|---|---|
GA4_PROPERTY_IDRequired | GA4 property ID (numeric) |
GOOGLE_APPLICATION_CREDENTIALSRequired | Path to service account JSON credentials file |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 8 Apr 2026 |
| Last updated | 8 Apr 2026 |
| Registry name | io.github.mharnett/ga4 |
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.
