Home › Marketing & E-Commerce › Google Tag Manager MCP
Google Tag Manager MCP
MCP server for the Google Tag Manager API v2: containers, workspaces, tags, triggers, publishing.
Topics: Marketing
Connect
Review any command before running it. Package names and URLs come from the server's own registry entry.
Package (npm 1.2.0)
npx -y [email protected]
Or add to your MCP client config:
{
"mcpServers": {
"mcp-google-tagmanager": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GOOGLE_TAGMANAGER_CLIENT_ID": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_CLIENT_SECRET": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_REFRESH_TOKEN": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_ACCESS_TOKEN": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_OAUTH_PORT": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_API_BASE": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_TIMEOUT_MS": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_MAX_RETRIES": "<YOUR_VALUE>",
"GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "<YOUR_VALUE>"
}
}
}
}
GOOGLE_TAGMANAGER_CLIENT_ID— Google OAuth client id (refresh-token flow).GOOGLE_TAGMANAGER_CLIENT_SECRETsecret — Google OAuth client secret (refresh-token flow). Treat it as a secret.GOOGLE_TAGMANAGER_REFRESH_TOKENsecret — Google OAuth refresh token; exchanged for access tokens automatically. Treat it as a secret.GOOGLE_TAGMANAGER_ACCESS_TOKENsecret — Ready-made OAuth access token (~1h lifetime). Alternative to the client-id/secret/refresh-token trio.GOOGLE_TAGMANAGER_OAUTH_PORT— 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.GOOGLE_TAGMANAGER_API_BASE— API root host override.GOOGLE_TAGMANAGER_TIMEOUT_MS— Per-request timeout in milliseconds.GOOGLE_TAGMANAGER_MAX_RETRIES— Retries on transient errors (429, quota 403, and 5xx/network for reads).GOOGLE_TAGMANAGER_MIN_INTERVAL_MS— Minimum spacing between API requests, for the 0.25 QPS quota.
Related servers
meta-ads-mcp
Meta Ads automation: analyze performance, test creatives, optimize spend and scale campaigns.
facebook-ads-mcp-server
Access Facebook Ads data and management features.
osp_marketing_tools
Marketing tools from Open Strategy Partners: writing style, editing codes and product marketing value map creation.
google-tag-manager-mcp-server
Interface to the Google Tag Manager API.
google-ads-mcp-server
Access Google Ads data and management features.
HitKeep
Stateless 2026-07-28 read-only MCP server for aggregate HitKeep analytics and official docs.
Listed in punkpeye/awesome-mcp-servers (MIT)
Data from the Official MCP Registry