Google Tag Manager MCP

io.github.A1-x-Tech/mcp-google-tagmanager

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-google-tagmanager": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-tagmanager@1.3.2"
      ],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "<your GOOGLE_TAGMANAGER_CLIENT_SECRET>",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "<your GOOGLE_TAGMANAGER_REFRESH_TOKEN>",
        "GOOGLE_TAGMANAGER_ACCESS_TOKEN": "<your GOOGLE_TAGMANAGER_ACCESS_TOKEN>",
        "GOOGLE_TAGMANAGER_API_BASE": "https://tagmanager.googleapis.com",
        "GOOGLE_TAGMANAGER_TIMEOUT_MS": "60000",
        "GOOGLE_TAGMANAGER_MAX_RETRIES": "3",
        "GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "4200"
      }
    }
  }
}
Environment variables
  • GOOGLE_TAGMANAGER_CLIENT_SECRETsecretGoogle OAuth client secret (refresh-token flow). Treat it as a secret.
  • GOOGLE_TAGMANAGER_REFRESH_TOKENsecretGoogle OAuth refresh token; exchanged for access tokens automatically. Treat it as a secret.
  • GOOGLE_TAGMANAGER_ACCESS_TOKENsecretReady-made OAuth access token (~1h lifetime). Alternative to the client-id/secret/refresh-token trio.
  • GOOGLE_TAGMANAGER_API_BASEAPI root host override.
  • GOOGLE_TAGMANAGER_TIMEOUT_MSPer-request timeout in milliseconds.
  • GOOGLE_TAGMANAGER_MAX_RETRIESRetries on transient errors (429, quota 403, and 5xx/network for reads).
  • GOOGLE_TAGMANAGER_MIN_INTERVAL_MSMinimum spacing between API requests, for the 0.25 QPS quota.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
1.3.2
Registry
active
Published
11/4/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that Google Tag Manager MCP is listed here — it’s also the link we check for a free listing.

Google Tag Manager MCP — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-a1-x-tech-mcp-google-tagmanager?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Google Tag Manager MCP — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Google Tag Manager MCP — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-a1-x-tech-mcp-google-tagmanager?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.