Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).
Connect Runs on your machine
claude mcp add seo-tools-mcp-ga4 -e GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID> -e GOOGLE_CLIENT_SECRET=<GOOGLE_CLIENT_SECRET> -e GA4_REFRESH_TOKEN=<GA4_REFRESH_TOKEN> -e GA4_SA_JSON=<GA4_SA_JSON> -e GA4_PROPERTY_ID=<GA4_PROPERTY_ID> -e GA4_OAUTH_PORT=<GA4_OAUTH_PORT> -- npx -y [email protected]
{
"mcpServers": {
"seo-tools-mcp-ga4": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>",
"GA4_SA_JSON": "<GA4_SA_JSON>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GA4_OAUTH_PORT": "<GA4_OAUTH_PORT>"
}
}
}
}
{
"mcpServers": {
"seo-tools-mcp-ga4": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>",
"GA4_SA_JSON": "<GA4_SA_JSON>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GA4_OAUTH_PORT": "<GA4_OAUTH_PORT>"
}
}
}
}
{
"servers": {
"seo-tools-mcp-ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
"GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
"GA4_REFRESH_TOKEN": "<GA4_REFRESH_TOKEN>",
"GA4_SA_JSON": "<GA4_SA_JSON>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GA4_OAUTH_PORT": "<GA4_OAUTH_PORT>"
}
}
}
}
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 |
|---|---|
GOOGLE_CLIENT_IDOptional | Google OAuth client ID (Desktop app), shared with the gsc server. |
GOOGLE_CLIENT_SECRETOptional, secret | Google OAuth client secret. |
GA4_REFRESH_TOKENOptional, secret | OAuth refresh token (obtained via ga4_oauth_start / ga4_oauth_finish). |
GA4_SA_JSONOptional | Path to a service-account JSON key (alternative to OAuth). |
GA4_PROPERTY_IDOptional | Default GA4 property id (numeric, e.g. 123456789). |
GA4_OAUTH_PORTOptional | Loopback port for the OAuth flow (default 8586). |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 25 Aug 2026 |
| Last updated | 25 Aug 2026 |
| Registry name | io.github.antohins/seo-tools-mcp-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.
