MCP Server
MCP
SEO Tools: Google Analytics 4
Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).
Install
npx -y [email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"identifier": "seo-tools-mcp-ga4",
"version": "1.7.0",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Google OAuth client ID (Desktop app), shared with the gsc server.",
"format": "string",
"name": "GOOGLE_CLIENT_ID"
},
{
"description": "Google OAuth client secret.",
"format": "string",
"isSecret": true,
"name": "GOOGLE_CLIENT_SECRET"
},
{
"description": "OAuth refresh token (obtained via ga4_oauth_start / ga4_oauth_finish).",
"format": "string",
"isSecret": true,
"name": "GA4_REFRESH_TOKEN"
},
{
"description": "Path to a service-account JSON key (alternative to OAuth).",
"format": "string",
"name": "GA4_SA_JSON"
},
{
"description": "Default GA4 property id (numeric, e.g. 123456789).",
"format": "string",
"name": "GA4_PROPERTY_ID"
},
{
"description": "Loopback port for the OAuth flow (default 8586).",
"format": "string",
"name": "GA4_OAUTH_PORT"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment