Google Tag Manager
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
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
Maintainer
Works with
Installation
Manual Installation
npx google-tag-manager-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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.
Restart Claude Desktop
Save the configuration file and fully restart Claude Desktop to load the new MCP server.
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.
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.
Google Tag Manager Alternatives — Similar Marketing & SEO Servers
Looking for alternatives to Google Tag Manager? Here are other popular marketing & seo servers you can use with Claude, Cursor, and VS Code.
TopRank
★ 2.6kGoogle Ads analysis and operations — read performance, manage keywords, bids, and campaigns.
Open SEO
★ 2.1kOpen source alternative to Semrush and Ahrefs
ASO Skills
★ 1.4kAI agent skills for App Store Optimization (ASO) and app marketing. Built for indie developers, app marketers, and growth teams who want Cursor, Claude Code, or any Agent Skills-compatible AI assistant to help with keyword research, metadata optimiza
Google Meta Ads GA4
★ 994MCP server for Google Ads, Meta Ads & GA4 — works with ChatGPT, Claude, Cursor, n8n, Windsurf & more. 250+ tools for campaign management, analytics & optimization.
Meta Ads
★ 923A Model Context Protocol server that allows AI models to access, analyze, and manage Meta advertising campaigns, enabling LLMs to retrieve performance data, visualize ad creatives, and provide strategic insights for Facebook and Instagram platforms.
Google Search Console
★ 882Connects Google Search Console with Claude AI to enable SEO professionals to analyze their SEO data through natural language conversations, providing access to property information, search analytics, URL inspection, and sitemap management.
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.
Set Up Google Tag Manager in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.