← Back to Plugins
MCP Server MCP

Google Tag Manager MCP

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y [email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "mcp-google-tagmanager",
      "version": "1.1.0",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "Google OAuth client id (refresh-token flow).",
          "name": "GOOGLE_TAGMANAGER_CLIENT_ID"
        },
        {
          "description": "Google OAuth client secret (refresh-token flow). Treat it as a secret.",
          "isSecret": true,
          "name": "GOOGLE_TAGMANAGER_CLIENT_SECRET"
        },
        {
          "description": "Google OAuth refresh token; exchanged for access tokens automatically. Treat it as a secret.",
          "isSecret": true,
          "name": "GOOGLE_TAGMANAGER_REFRESH_TOKEN"
        },
        {
          "description": "Ready-made OAuth access token (~1h lifetime). Alternative to the client-id/secret/refresh-token trio.",
          "isSecret": true,
          "name": "GOOGLE_TAGMANAGER_ACCESS_TOKEN"
        },
        {
          "description": "API root host override.",
          "default": "https://tagmanager.googleapis.com",
          "name": "GOOGLE_TAGMANAGER_API_BASE"
        },
        {
          "description": "Per-request timeout in milliseconds.",
          "default": "60000",
          "name": "GOOGLE_TAGMANAGER_TIMEOUT_MS"
        },
        {
          "description": "Retries on transient errors (429, quota 403, and 5xx/network for reads).",
          "default": "3",
          "name": "GOOGLE_TAGMANAGER_MAX_RETRIES"
        },
        {
          "description": "Minimum spacing between API requests, for the 0.25 QPS quota.",
          "default": "4200",
          "name": "GOOGLE_TAGMANAGER_MIN_INTERVAL_MS"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...