Google Analytics 4 for VS Code
io.github.stucchi/google-analytics
Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.
client:VS Code
transport:stdio
runtime:pypi
Install Google Analytics 4 in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "ga-credentials",
"description": "GA_CREDENTIALS",
"password": true
},
{
"type": "promptString",
"id": "ga-credentials-path",
"description": "GA_CREDENTIALS_PATH",
"password": true
}
],
"servers": {
"google-analytics": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-4-mcp"
],
"env": {
"GA_CREDENTIALS": "${input:ga-credentials}",
"GA_CREDENTIALS_PATH": "${input:ga-credentials-path}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs