google analytics mcp for VS Code
io.github.surendranb/google-analytics-mcp
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
client:VS Code
transport:stdio
runtime:pypi
Install google analytics mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "google-application-credentials",
"description": "GOOGLE_APPLICATION_CREDENTIALS",
"password": true
},
{
"type": "promptString",
"id": "ga4-property-id",
"description": "GA4_PROPERTY_ID",
"password": true
}
],
"servers": {
"google-analytics-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "${input:google-application-credentials}",
"GA4_PROPERTY_ID": "${input:ga4-property-id}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs