Google Tag Manager MCP MCP Server
io.github.A1-x-Tech/mcp-google-tagmanager
What is the Google Tag Manager MCP MCP server?
MCP server for the Google Tag Manager API v2: containers, workspaces, tags, triggers, publishing.
How to install Google Tag Manager MCP
Copy-paste configuration for popular MCP clients.
GOOGLE_TAGMANAGER_CLIENT_IDGoogle OAuth client id (refresh-token flow).
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.
{
"mcpServers": {
"mcp-google-tagmanager": {
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"env": {
"GOOGLE_TAGMANAGER_CLIENT_ID": "<YOUR_GOOGLE_TAGMANAGER_CLIENT_ID>",
"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": "<YOUR_GOOGLE_TAGMANAGER_API_BASE>",
"GOOGLE_TAGMANAGER_TIMEOUT_MS": "<YOUR_GOOGLE_TAGMANAGER_TIMEOUT_MS>",
"GOOGLE_TAGMANAGER_MAX_RETRIES": "<YOUR_GOOGLE_TAGMANAGER_MAX_RETRIES>",
"GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "<YOUR_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS>"
}
}
}
}{
"mcpServers": {
"mcp-google-tagmanager": {
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"env": {
"GOOGLE_TAGMANAGER_CLIENT_ID": "<YOUR_GOOGLE_TAGMANAGER_CLIENT_ID>",
"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": "<YOUR_GOOGLE_TAGMANAGER_API_BASE>",
"GOOGLE_TAGMANAGER_TIMEOUT_MS": "<YOUR_GOOGLE_TAGMANAGER_TIMEOUT_MS>",
"GOOGLE_TAGMANAGER_MAX_RETRIES": "<YOUR_GOOGLE_TAGMANAGER_MAX_RETRIES>",
"GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "<YOUR_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS>"
}
}
}
}{
"mcpServers": {
"mcp-google-tagmanager": {
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"env": {
"GOOGLE_TAGMANAGER_CLIENT_ID": "<YOUR_GOOGLE_TAGMANAGER_CLIENT_ID>",
"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": "<YOUR_GOOGLE_TAGMANAGER_API_BASE>",
"GOOGLE_TAGMANAGER_TIMEOUT_MS": "<YOUR_GOOGLE_TAGMANAGER_TIMEOUT_MS>",
"GOOGLE_TAGMANAGER_MAX_RETRIES": "<YOUR_GOOGLE_TAGMANAGER_MAX_RETRIES>",
"GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "<YOUR_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS>"
}
}
}
}{
"servers": {
"mcp-google-tagmanager": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"env": {
"GOOGLE_TAGMANAGER_CLIENT_ID": "<YOUR_GOOGLE_TAGMANAGER_CLIENT_ID>",
"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": "<YOUR_GOOGLE_TAGMANAGER_API_BASE>",
"GOOGLE_TAGMANAGER_TIMEOUT_MS": "<YOUR_GOOGLE_TAGMANAGER_TIMEOUT_MS>",
"GOOGLE_TAGMANAGER_MAX_RETRIES": "<YOUR_GOOGLE_TAGMANAGER_MAX_RETRIES>",
"GOOGLE_TAGMANAGER_MIN_INTERVAL_MS": "<YOUR_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS>"
}
}
}
}claude mcp add mcp-google-tagmanager --env GOOGLE_TAGMANAGER_CLIENT_ID=<YOUR_GOOGLE_TAGMANAGER_CLIENT_ID> --env GOOGLE_TAGMANAGER_CLIENT_SECRET=<YOUR_GOOGLE_TAGMANAGER_CLIENT_SECRET> --env GOOGLE_TAGMANAGER_REFRESH_TOKEN=<YOUR_GOOGLE_TAGMANAGER_REFRESH_TOKEN> --env GOOGLE_TAGMANAGER_ACCESS_TOKEN=<YOUR_GOOGLE_TAGMANAGER_ACCESS_TOKEN> --env GOOGLE_TAGMANAGER_API_BASE=<YOUR_GOOGLE_TAGMANAGER_API_BASE> --env GOOGLE_TAGMANAGER_TIMEOUT_MS=<YOUR_GOOGLE_TAGMANAGER_TIMEOUT_MS> --env GOOGLE_TAGMANAGER_MAX_RETRIES=<YOUR_GOOGLE_TAGMANAGER_MAX_RETRIES> --env GOOGLE_TAGMANAGER_MIN_INTERVAL_MS=<YOUR_GOOGLE_TAGMANAGER_MIN_INTERVAL_MS> -- npx -y mcp-google-tagmanagerRelated MCP servers
Avito Ads MCP
MCP server for the Avito Ads API: campaigns, ad groups, creatives, statistics and balances.
MCP server for Google Business Profile: locations, reviews, local posts and performance metrics.
Google CrUX MCP
Real-user Core Web Vitals from the Chrome UX Report (CrUX) API for any origin or URL.
Google Forms MCP
MCP server for the Google Forms API: create forms, manage questions, read responses and watches.
MCP server for Google Merchant Center (Merchant API v1): products, promotions, reports, issues.
MCP server for the Google Search Console API: search analytics, sitemaps, URL inspection, sites.