Skip to content
Zed

ga4 for Zed

io.github.mharnett/ga4

Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.

client:Zed transport:stdio runtime:npm

Install ga4 in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "context_servers": {
    "ga4": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-ga4"
      ],
      "env": {
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

ga4 in other clients