GA4 MCP that reads AND writes: reports, funnels, audits, and server-side events. 26 tools.
Connect Runs on your machine
claude mcp add mcp-google-analytics -e GA_SERVICE_ACCOUNT_JSON=<GA_SERVICE_ACCOUNT_JSON> -e GA_PROPERTY_ID=<GA_PROPERTY_ID> -e GA_MEASUREMENT_ID=<GA_MEASUREMENT_ID> -e GA_API_SECRET=<GA_API_SECRET> -- npx -y [email protected]
{
"mcpServers": {
"mcp-google-analytics": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<GA_API_SECRET>"
}
}
}
}
{
"mcpServers": {
"mcp-google-analytics": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<GA_API_SECRET>"
}
}
}
}
{
"servers": {
"mcp-google-analytics": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<GA_API_SECRET>"
}
}
}
}
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_SERVICE_ACCOUNT_JSONOptional, secret | Service account JSON for reading reports: file path or inline JSON (needed for read tools) |
GA_PROPERTY_IDOptional | Numeric GA4 property ID, e.g. 123456789 (needed for read tools) |
GA_MEASUREMENT_IDOptional | Measurement ID of the data stream, e.g. G-XXXXXXXXXX (needed for event-sending tools) |
GA_API_SECRETOptional, secret | Measurement Protocol API secret (needed for event-sending tools) |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 21 Aug 2026 |
| Last updated | 21 Aug 2026 |
| Registry name | io.github.leonardosepulvedat/mcp-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.
