Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Google Tag Manager MCP
G
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/10/2026, 11:44:07 PM

Google Tag Manager MCP

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View RepositoryVisit Website

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "google-tag-manager-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-tag-manager-mcp"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

Google Tag Manager MCP

npm CI Glama License: MIT

MCP server for the Google Tag Manager API v2: manage containers, workspaces, tags, triggers, variables and publishing from Claude, Cursor, Codex and other AI clients in natural language.

Ask the assistant to audit a container, wire up a new GA4 tag with its trigger, enable built-in variables, compile a version and push it live β€” the full GTM workflow without clicking through the web UI.

Quick start

  1. Get OAuth credentials for a Google Cloud project with the Tag Manager API enabled.

  2. Add the server β€” for example in Claude Code (other clients):

    Terminal
    claude mcp add google-tagmanager \
      -e GOOGLE_TAGMANAGER_CLIENT_ID=your_client_id \
      -e GOOGLE_TAGMANAGER_CLIENT_SECRET=your_client_secret \
      -e GOOGLE_TAGMANAGER_REFRESH_TOKEN=your_refresh_token \
      -- npx -y mcp-google-tagmanager@latest
    
  3. Ask the assistant: "List my GTM containers and show which tags fire on page view."

Tools

ToolDescription
list_accountsList all GTM accounts the user can access
get_accountGet one account
list_containersList containers of an account (with GTM-XXXXXX public ids)
get_containerGet one container
create_containerCreate a container (web, server, ...)
list_workspacesList workspaces of a container
get_workspaceGet one workspace
create_workspaceCreate a workspace (draft)
list_tagsList tags of a workspace
list_triggersList triggers of a workspace
list_variablesList user-defined variables of a workspace
get_resourceGet any resource by its API path (tag, trigger, variable, version, ...)
create_entityCreate a tag, trigger or variable
update_entityUpdate a tag/trigger/variable (PUT full replace, fingerprint-guarded)
delete_entityDelete a tag/trigger/variable
manage_built_in_variablesList / enable / disable built-in variables (full enum from the discovery doc)
create_versionCompile a workspace into a container version (⚠️ deletes the workspace)
publish_versionPublish a version, get one version, or fetch the live version
raw_requestEscape hatch: call any Tag Manager API v2 path directly

Built-in rate limiting

The Tag Manager API quota is unusually strict: 0.25 QPS per project (25 requests per 100-second sliding window) and 10,000 requests per day. The server handles this for you:

  • every API request goes through a serialized queue with a minimum spacing of 4.2 s between requests (tunable via GOOGLE_TAGMANAGER_MIN_INTERVAL_MS);
  • 429 and quota-403 (rateLimitExceeded / userRateLimitExceeded / quotaExceeded) responses are retried with exponential backoff honoring Retry-After;
  • 5xx and network errors are retried for reads only β€” a write that may have committed is never replayed.

Big fan-out requests ("list everything in every container") will therefore be slow by design β€” that is the quota, not the server.

Example prompts

  • "Which tags in container GTM-ABC123 fire on the page-view trigger?"
  • "Create a Custom HTML tag in the default workspace that logs to the console, firing on all pages."
  • "Enable the clickText and clickClasses built-in variables in my workspace."
  • "Compile my workspace into a version named 'March release' and publish it."

Installation

Claude Code
Terminal
claude mcp add google-tagmanager \
  -e GOOGLE_TAGMANAGER_CLIENT_ID=your_client_id \
  -e GOOGLE_TAGMANAGER_CLIENT_SECRET=your_client_secret \
  -e GOOGLE_TAGMANAGER_REFRESH_TOKEN=your_refresh_token \
  -- npx -y mcp-google-tagmanager@latest
Claude Desktop

claude_desktop_config.json β€” macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\

config.json
{
  "mcpServers": {
    "google-tagmanager": {
      "command": "npx",
      "args": ["-y", "mcp-google-tagmanager@latest"],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "your_client_id",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "your_refresh_token"
      }
    }
  }
}
Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in the project)

config.json
{
  "mcpServers": {
    "google-tagmanager": {
      "command": "npx",
      "args": ["-y", "mcp-google-tagmanager@latest"],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "your_client_id",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "your_refresh_token"
      }
    }
  }
}

For a quick one-off session you can skip the trio and pass a short-lived token directly: GOOGLE_TAGMANAGER_ACCESS_TOKEN=ya29.... (Google access tokens expire after about an hour and are not refreshed automatically).

Getting credentials

The Tag Manager API only supports OAuth 2.0 β€” there are no API keys for user data. One-time setup:

  1. Create/pick a Google Cloud project at console.cloud.google.com and enable the Tag Manager API (direct link). Without a registered project the API grants zero quota β€” this step is mandatory.
  2. Configure the OAuth consent screen (APIs & Services β†’ OAuth consent screen). For personal use, External + your account as a test user is enough.
  3. Create an OAuth client (APIs & Services β†’ Credentials β†’ Create credentials β†’ OAuth client ID β†’ Desktop app or Web application). Save the client id and client secret.
  4. Mint a refresh token. The easiest path is the OAuth 2.0 Playground:
    • gear icon β†’ check Use your own OAuth credentials β†’ paste the client id/secret (for a Web client also add https://developers.google.com/oauthplayground to its authorized redirect URIs);

    • in Step 1 authorize these scopes (space-separated):

      Code
      https://www.googleapis.com/auth/tagmanager.readonly https://www.googleapis.com/auth/tagmanager.edit.containers https://www.googleapis.com/auth/tagmanager.edit.containerversions https://www.googleapis.com/auth/tagmanager.publish
      
    • in Step 2 click Exchange authorization code for tokens and copy the refresh token.

  5. Put the three values into the environment variables above. The server exchanges the refresh token for access tokens automatically and caches them until just before expiry.

⚠️ The credentials are stored as plain text in your client's MCP config. Scope the OAuth consent to the four Tag Manager scopes above and nothing else.

Note the scope split: reading needs readonly, editing needs edit.containers, create_version needs edit.containerversions, and publishing needs publish. Authorize all four at once or re-consent mid-flow.

Configuration

VariableRequiredDefaultDescription
GOOGLE_TAGMANAGER_CLIENT_IDyes*β€”OAuth client id
GOOGLE_TAGMANAGER_CLIENT_SECRETyes*β€”OAuth client secret
GOOGLE_TAGMANAGER_REFRESH_TOKENyes*β€”OAuth refresh token
GOOGLE_TAGMANAGER_ACCESS_TOKENnoβ€”Ready-made access token; replaces the trio for quick sessions
GOOGLE_TAGMANAGER_API_BASEnohttps://tagmanager.googleapis.comAPI root override
GOOGLE_TAGMANAGER_TIMEOUT_MSno60000Per-request timeout
GOOGLE_TAGMANAGER_MAX_RETRIESno3Retries on transient errors
GOOGLE_TAGMANAGER_MIN_INTERVAL_MSno4200Minimum spacing between API requests (0.25 QPS quota)

* the trio is required unless GOOGLE_TAGMANAGER_ACCESS_TOKEN is set.

Good to know

  • create_version deletes the source workspace. The response's newWorkspacePath points to the automatically created replacement β€” the server surfaces it and the tool description warns the model, but keep it in mind when scripting.
  • compilerError: true can arrive with HTTP 200 on create_version and publish. The server converts it into a tool error so it is never mistaken for success.
  • Updates are full replacements (PUT, not PATCH): update_entity expects the complete resource. Fetch with get_resource, edit, send back, and pass the fingerprint for optimistic-concurrency safety.
  • All ids are strings, and every resource carries its own path field β€” echo it back rather than assembling paths by hand.

Requirements

  • Node.js >= 20
  • A Google account with access to at least one GTM container

Documentation

  • docs/TOOLS.md β€” tool reference
  • docs/DEVELOPMENT.md β€” architecture and dev commands
  • docs/PUBLISHING.md β€” release checklist
  • Google Tag Manager API v2 reference

Support

Questions and issues β†’ GitHub Issues or Telegram @gistrec.

License

MIT

Related MCP Servers

View all in Developer Tools View all alternatives
  • G
    Graphql

    Turn any GraphQL API into MCP tools. Zero config, zero code.

    πŸ’» Developer Tools0 views
    Compare vs Graphql β†’
  • A
    Ai Netcafe

    Compare LLM cost & latency on one prompt, translate PDF keeping layout, cited research, make PPTX

    πŸ’» Developer Tools0 views
    Compare vs Ai Netcafe β†’
  • Claude Task Master logoClaude Task Master

    AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loading for optimized context usage.

    πŸ’» Developer Tools7 views
    Compare vs Claude Task Master β†’
  • Shadcn Ui Mcp Server logoShadcn Ui Mcp Server

    MCP server that gives AI assistants seamless access to shadcn/ui v4 components, blocks, demos, and metadata.

    πŸ’» Developer Tools2 views
    Compare vs Shadcn Ui Mcp Server β†’

Frequently Asked Questions about Google Tag Manager MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "google-tag-manager-mcp": { "command": "npx", "args": ["-y", "Google Tag Manager MCP"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Tag Manager MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-tag-manager-mcp?style=directory)](https://allmcps.com/mcp/google-tag-manager-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/google-tag-manager-mcp"><img src="https://allmcps.com/api/badge/google-tag-manager-mcp?style=directory" alt="Google Tag Manager MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 3,181+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Google Tag Manager MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code