Skip to content
Cursor

Google Tag Manager MCP for Cursor

io.github.a1-x-tech/mcp-google-tagmanager

MCP server for the Google Tag Manager API v2: containers, workspaces, tags, triggers, publishing.

client:Cursor transport:stdio runtime:npm

Install Google Tag Manager MCP in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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

{
  "mcpServers": {
    "mcp-google-tagmanager": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-tagmanager"
      ],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "<GOOGLE_TAGMANAGER_CLIENT_ID>",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "<GOOGLE_TAGMANAGER_CLIENT_SECRET>",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "<GOOGLE_TAGMANAGER_REFRESH_TOKEN>",
        "GOOGLE_TAGMANAGER_ACCESS_TOKEN": "<GOOGLE_TAGMANAGER_ACCESS_TOKEN>",
        "GOOGLE_TAGMANAGER_OAUTH_PORT": "<GOOGLE_TAGMANAGER_OAUTH_PORT>",
        "GOOGLE_TAGMANAGER_API_BASE": "<GOOGLE_TAGMANAGER_API_BASE>",
        "GOOGLE_TAGMANAGER_TIMEOUT_MS": "<GOOGLE_TAGMANAGER_TIMEOUT_MS>",
        "GOOGLE_TAGMANAGER_MAX_RETRIES": "<GOOGLE_TAGMANAGER_MAX_RETRIES>",
        "GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "<GOOGLE_TAGMANAGER_MIN_INTERVAL_MS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Google Tag Manager MCP in other clients