SEO Tools: Google Analytics 4 for VS Code
io.github.antohins/seo-tools-mcp-ga4
Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).
client:VS Code
transport:stdio
runtime:npm
Install SEO Tools: Google Analytics 4 in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "google-client-id",
"description": "GOOGLE_CLIENT_ID",
"password": true
},
{
"type": "promptString",
"id": "google-client-secret",
"description": "GOOGLE_CLIENT_SECRET",
"password": true
},
{
"type": "promptString",
"id": "ga4-refresh-token",
"description": "GA4_REFRESH_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "ga4-sa-json",
"description": "GA4_SA_JSON",
"password": true
},
{
"type": "promptString",
"id": "ga4-property-id",
"description": "GA4_PROPERTY_ID",
"password": true
},
{
"type": "promptString",
"id": "ga4-oauth-port",
"description": "GA4_OAUTH_PORT",
"password": true
}
],
"servers": {
"seo-tools-mcp-ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"seo-tools-mcp-ga4"
],
"env": {
"GOOGLE_CLIENT_ID": "${input:google-client-id}",
"GOOGLE_CLIENT_SECRET": "${input:google-client-secret}",
"GA4_REFRESH_TOKEN": "${input:ga4-refresh-token}",
"GA4_SA_JSON": "${input:ga4-sa-json}",
"GA4_PROPERTY_ID": "${input:ga4-property-id}",
"GA4_OAUTH_PORT": "${input:ga4-oauth-port}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs