Skip to content
VS Code

Tag Pilot GA4 for VS Code

io.github.tagpilot/ga4-mcp

Free, read-only Google Analytics 4: reports, funnels, realtime. Sign in with Google, no GCP setup.

client:VS Code transport:stdio runtime:npm

Install Tag Pilot GA4 in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "tagpilot-api-key",
      "description": "TAGPILOT_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ga4-mcp-no-browser",
      "description": "GA4_MCP_NO_BROWSER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ga4-mcp-auth-wait-seconds",
      "description": "GA4_MCP_AUTH_WAIT_SECONDS",
      "password": true
    }
  ],
  "servers": {
    "ga4-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tagpilot/ga4-mcp"
      ],
      "env": {
        "TAGPILOT_API_KEY": "${input:tagpilot-api-key}",
        "GA4_MCP_NO_BROWSER": "${input:ga4-mcp-no-browser}",
        "GA4_MCP_AUTH_WAIT_SECONDS": "${input:ga4-mcp-auth-wait-seconds}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Tag Pilot GA4 in other clients