MCP Server for Google Tag Manager

Automate your Google Tag Manager through Claude Desktop or Cursor. This MCP can manage your GTM account, create triggers and tags, troubleshoot issues, and publish containers.

Quick Setup Guide

1

Install Node.js

Download and install Node.js v18 or higher from nodejs.org

2

Open Claude Desktop Configuration

In Claude Desktop, go to Settings → Developer → Edit Config

3

Update Your Configuration

Use the tool below to automatically add our MCP server to your existing configuration:

4

Restart & Authenticate

Restart Claude Desktop. A browser window will open for Google OAuth authentication. Complete the flow to grant access to your Google Tag Manager account.

Manual Configuration (Advanced)

If you prefer to manually edit your config, add this to your mcpServers section:

"google-tag-manager-mcp-server": {
  "command": "npx",
  "args": [
    "-y",
    "mcp-remote",
    "https://gtm-mcp.filamentanalytics.com/sse"
  ]
}

Troubleshooting

Clearing Authentication Issues:

If you encounter persistent authentication issues, mcp-remote stores credentials in ~/.mcp-auth. Clear this directory to reset:

rm -rf ~/.mcp-auth

Then restart your MCP client to re-authenticate.