Google Tag Manager MCP
MCP server for the Google Tag Manager API v2: containers, workspaces, tags, triggers, publishing.
Documentation & Preview
{ "mcpServers": { "mcp-mcp-google-tagmanager-73c2e3703345347864a8": { "command": "npx", "args": [ "-y", "--package", "mcp-google-tagmanager@1.4.0", "mcp-google-tagmanager" ], "env": { "GOOGLE_TAGMANAGER_CLIENT_ID": "${ENV_GOOGLE_TAGMANAGER_CLIENT_ID}", "GOOGLE_TAGMANAGER_CLIENT_SECRET": "${ENV_GOOGLE_TAGMANAGER_CLIENT_SECRET}", "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "${ENV_GOOGLE_TAGMANAGER_REFRESH_TOKEN}", "GOOGLE_TAGMANAGER_ACCESS_TOKEN": "${ENV_GOOGLE_TAGMANAGER_ACCESS_TOKEN}", "GOOGLE_TAGMANAGER_OAUTH_PORT": "${ENV_GOOGLE_TAGMANAGER_OAUTH_PORT}", "GOOGLE_TAGMANAGER_API_BASE": "${ENV_GOOGLE_TAGMANAGER_API_BASE}", "GOOGLE_TAGMANAGER_TIMEOUT_MS": "${ENV_GOOGLE_TAGMANAGER_TIMEOUT_MS}", "GOOGLE_TAGMANAGER_MAX_RETRIES": "${ENV_GOOGLE_TAGMANAGER_MAX_RETRIES}", "GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "${ENV_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS}" } } }, "setup": { "fields": [ { "id": "ENV_GOOGLE_TAGMANAGER_CLIENT_ID", "label": "GOOGLE_TAGMANAGER_CLIENT_ID", "description": "Google OAuth client id (refresh-token flow).", "required": false, "secret": false, "default": "" }, { "id": "ENV_GOOGLE_TAGMANAGER_CLIENT_SECRET", "label": "GOOGLE_TAGMANAGER_CLIENT_SECRET", "description": "Google OAuth client secret (refresh-token flow). Treat it as a secret.", "required": false, "secret": true, "default": "" }, { "id": "ENV_GOOGLE_TAGMANAGER_REFRESH_TOKEN", "label": "GOOGLE_TAGMANAGER_REFRESH_TOKEN", "description": "Google OAuth refresh token; exchanged for access tokens automatically. Treat it as a secret.", "required": false, "secret": true, "default": "" }, { "id": "ENV_GOOGLE_TAGMANAGER_ACCESS_TOKEN", "label": "GOOGLE_TAGMANAGER_ACCESS_TOKEN", "description": "Ready-made OAuth access token (~1h lifetime). Alternative to the client-id/secret/refresh-token trio.", "required": false, "secret": true, "default": "" }, { "id": "ENV_GOOGLE_TAGMANAGER_OAUTH_PORT", "label": "GOOGLE_TAGMANAGER_OAUTH_PORT", "description": "Fixed port for the loopback listener of the in-chat login (127.0.0.1 + PKCE). Set it when the client runs over SSH port forwarding; otherwise a free port is picked per login.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GOOGLE_TAGMANAGER_API_BASE", "label": "GOOGLE_TAGMANAGER_API_BASE", "description": "API root host override.", "required": false, "secret": false, "default": "https://tagmanager.googleapis.com" }, { "id": "ENV_GOOGLE_TAGMANAGER_TIMEOUT_MS", "label": "GOOGLE_TAGMANAGER_TIMEOUT_MS", "description": "Per-request timeout in milliseconds.", "required": false, "secret": false, "default": "60000" }, { "id": "ENV_GOOGLE_TAGMANAGER_MAX_RETRIES", "label": "GOOGLE_TAGMANAGER_MAX_RETRIES", "description": "Retries on transient errors (429, quota 403, and 5xx/network for reads).", "required": false, "secret": false, "default": "3" }, { "id": "ENV_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS", "label": "GOOGLE_TAGMANAGER_MIN_INTERVAL_MS", "description": "Minimum spacing between API requests, for the 0.25 QPS quota.", "required": false, "secret": false, "default": "4200" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.A1-x-Tech/mcp-google-tagmanager", "registryVersion": "1.4.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.A1-x-Tech%2Fmcp-google-tagmanager/versions/1.4.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "mcp-google-tagmanager", "version": "1.4.0", "integrity": "sha512-hlWocMjmBjdOYP/bUb4xhXwbm8oO6Nh3smXoUPcjfVoJe/zWY8DnWwX/qBIJsCq2fcFdWgA8/Iqc5bGvpdv7fg==", "registryNameMatched": "io.github.A1-x-Tech/mcp-google-tagmanager", "checkedAt": "2026-11-21T18:19:19.682Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }