Google Tag Manager MCP server: read and edit tags, triggers and variables, version and publish.
Google Tag Manager MCP Server
Published by A1-x-TechMCP server for the Google Tag Manager API v2: containers, workspaces, tags, triggers, publishing.
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 1.4.0
- SOURCE CHECKED
- Nov 27, 2026
Quick answers
How do I add Google Tag Manager MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --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>' --transport stdio google-tag-manager -- npx -y mcp-google-tagmanagerReplace the <your-…> placeholder with your own GOOGLE_TAGMANAGER_CLIENT_SECRET and GOOGLE_TAGMANAGER_REFRESH_TOKEN and GOOGLE_TAGMANAGER_ACCESS_TOKEN.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"google-tag-manager": {
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"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>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_TAGMANAGER_CLIENT_SECRET and GOOGLE_TAGMANAGER_REFRESH_TOKEN and GOOGLE_TAGMANAGER_ACCESS_TOKEN.
CodexCommand
Run this in your terminal:
codex mcp add google-tag-manager --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>' -- npx -y mcp-google-tagmanagerReplace the <your-…> placeholder with your own GOOGLE_TAGMANAGER_CLIENT_SECRET and GOOGLE_TAGMANAGER_REFRESH_TOKEN and GOOGLE_TAGMANAGER_ACCESS_TOKEN.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"google-tag-manager": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"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>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_TAGMANAGER_CLIENT_SECRET and GOOGLE_TAGMANAGER_REFRESH_TOKEN and GOOGLE_TAGMANAGER_ACCESS_TOKEN.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"google-tag-manager": {
"command": "npx",
"args": [
"-y",
"mcp-google-tagmanager"
],
"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>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_TAGMANAGER_CLIENT_SECRET and GOOGLE_TAGMANAGER_REFRESH_TOKEN and GOOGLE_TAGMANAGER_ACCESS_TOKEN.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use Google Tag Manager MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does Google Tag Manager MCP Server need an API key?
To run it on your computer, set GOOGLE_TAGMANAGER_CLIENT_SECRET, GOOGLE_TAGMANAGER_REFRESH_TOKEN and GOOGLE_TAGMANAGER_ACCESS_TOKEN first, with values from the publisher.
Is Google Tag Manager MCP Server official?
It's published by A1-x-Tech. The Official MCP Registry accepts names under io.github.A1-x-Tech only from the GitHub account or organisation A1-x-Tech. We last checked its listing on Nov 27, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · mcp-google-tagmanager@1.4.0