Google Tag Manager

v1.0.0Marketing & SEOstable

Integrates Google Tag Manager with Claude to automate the creation and management of tags, triggers, and variables using natural language prompts. It provides specialized tools for GA4 and Facebook Pixel setup, along with automated tracking workflows

gtmgtm-server-sidemcpmcp-serverstape
Share:
155
Stars
0
Downloads
0
Weekly
0/5

What is Google Tag Manager?

Google Tag Manager is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to integrates google tag manager with claude to automate the creation and management of tags, triggers, and variables using natural language prompts. it provides specialized tools for ga4 and facebook pi...

Integrates Google Tag Manager with Claude to automate the creation and management of tags, triggers, and variables using natural language prompts. It provides specialized tools for GA4 and Facebook Pixel setup, along with automated tracking workflows

This server falls under the Marketing & SEO category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Integrates Google Tag Manager with Claude to automate the cr

Use Cases

Integrates Google Tag Manager with Claude to automate the creation and managemen
stape-io

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx google-tag-manager-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Google Tag Manager

The Google Tag Manager MCP Server by Stape connects AI assistants to the Google Tag Manager API, enabling natural language creation and management of tags, triggers, and variables across GTM containers. It is hosted as a remote MCP server at gtm-mcp.stape.ai, requiring no local installation, and handles authentication via OAuth. Marketing teams and analytics engineers use it to automate repetitive GTM tasks — setting up GA4 event tracking, adding Facebook Pixel tags, or building custom variable schemas — through conversational prompts in Claude.

Prerequisites

  • A Google account with access to one or more Google Tag Manager containers
  • Claude Desktop (version that supports remote MCP servers with OAuth)
  • No local server installation required — the server runs remotely at gtm-mcp.stape.ai
  • GTM container IDs and account IDs for the containers you want to manage
1

Open Claude Desktop settings

Open Claude Desktop and navigate to Settings > Developer > Edit Config to open the claude_desktop_config.json file in a text editor.

2

Add the remote GTM MCP server configuration

Add the gtm-mcp-server entry to your mcpServers configuration. The server is hosted remotely so no local command is needed.

3

Restart Claude Desktop

Save the configuration file and fully restart Claude Desktop to load the new MCP server.

4

Complete the OAuth authentication flow

When you first use a GTM tool in Claude, a browser window will open for Google OAuth. Sign in with the Google account that has GTM access and grant the requested permissions.

5

Verify access and start managing GTM

Ask Claude to list your GTM accounts or containers to confirm the connection is working and authentication is complete.

Google Tag Manager Examples

Client configuration

Add this to your claude_desktop_config.json to connect to the Stape-hosted GTM MCP server. No API keys are needed — OAuth handles authentication.

{
  "mcpServers": {
    "gtm-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://gtm-mcp.stape.ai/mcp"
      ]
    }
  }
}

Prompts to try

Once authenticated, use these prompts to manage your Google Tag Manager containers through Claude.

- "List all my Google Tag Manager accounts and their containers"
- "Create a GA4 page view tag in container GTM-XXXXXX that fires on all pages"
- "Add a Facebook Pixel tag with ID 123456789 to my GTM container"
- "Create a scroll depth trigger that fires at 25%, 50%, 75%, and 100% scroll"
- "Show me all tags in my container and flag any that are paused or have errors"

Troubleshooting Google Tag Manager

OAuth browser window does not open or authentication fails

Run 'rm -rf ~/.mcp-auth' to clear any cached credentials and token state, then restart Claude Desktop and try again. Ensure you are signing in with a Google account that has Editor or Publish access to the GTM container.

Tools not appearing or server name conflicts in Cursor AI

The combined length of the server name and tool names must be under 60 characters. Rename the server entry in your config from 'gtm-mcp-server' to a shorter name like 'gtm' if you are using Cursor AI.

Permission denied when creating or modifying GTM tags

Verify your Google account has at least Editor-level access to the GTM container in the GTM web interface (Admin > User Management). Read-only access allows listing but not creating or updating tags.

Frequently Asked Questions about Google Tag Manager

What is Google Tag Manager?

Google Tag Manager is a Model Context Protocol (MCP) server that integrates google tag manager with claude to automate the creation and management of tags, triggers, and variables using natural language prompts. it provides specialized tools for ga4 and facebook pixel setup, along with automated tracking workflows It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Google Tag Manager?

Follow the installation instructions on the Google Tag Manager GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Google Tag Manager?

Google Tag Manager works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Google Tag Manager free to use?

Yes, Google Tag Manager is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Marketing & SEO MCP Servers

Explore all marketing & seo servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "google-tag-manager-mcp-server": { "command": "npx", "args": ["-y", "google-tag-manager-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Google Tag Manager?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides