Skip to content
Zed

samarth gtm mcp for Zed

io.github.samarthanalytics-sj/samarth-gtm-mcp

Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.

client:Zed transport:stdio runtime:npm

Install samarth gtm mcp 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": {
    "samarth-gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samarth-gtm-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "<GOOGLE_OAUTH_CLIENT_ID>",
        "GOOGLE_OAUTH_CLIENT_SECRET": "<GOOGLE_OAUTH_CLIENT_SECRET>",
        "GTM_MCP_ENABLE_WRITES": "<GTM_MCP_ENABLE_WRITES>",
        "GTM_MCP_ENABLE_PUBLISH": "<GTM_MCP_ENABLE_PUBLISH>",
        "GTM_MCP_ENABLE_DELETES": "<GTM_MCP_ENABLE_DELETES>"
      }
    }
  }
}

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

samarth gtm mcp in other clients