gtm-mcp-server
by paolobietolini·★ 86·Score 49
Google Tag Manager MCP server that enables natural language control of GTM containers through AI assistants.
Overview
This is a well-designed MCP server that connects AI assistants to Google Tag Manager via the Model Context Protocol. It allows users to manage GTM containers through natural language commands, eliminating the need to navigate the GTM interface manually. The server implements proper OAuth authentication and provides comprehensive tag, trigger, and container management capabilities along with AI-powered workflows like container audits and tracking plan generation.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you're already using Google Tag Manager and want to manage it through natural language with AI assistants like Claude or ChatGPT.
When NOT to choose this
Don't choose this if you need GTM operations without an internet connection, as it requires connectivity to Google APIs and the MCP server.
Tools this server exposes
12 tools extracted from the READMElist_accountsList all GTM accounts
list_containersList containers in an account
list_workspacesList workspaces in a container
list_tagsList all tags in a workspace
get_tagGet tag details by ID
list_triggersList all triggers
get_triggerGet trigger details by ID
list_variablesList all variables
get_variableGet variable details by ID
list_foldersList folders in a workspace
get_folder_entitiesGet tags/triggers/variables in a folder
list_built_in_variablesList enabled built-in variables in a workspace
Comparable tools
Installation
Installation
**Claude Desktop:**
{
"mcpServers": {
"gtm": {
"url": "https://mcp.gtmeditor.com/authorize"
}
}
}**Claude Code CLI:**
claude mcp add -t http gtm https://mcp.gtmeditor.com**ChatGPT:**
- Go to OpenAI Apps Platform
- Add MCP integration with URL:
https://mcp.gtmeditor.com
**Gemini CLI:**
gemini mcp add --transport http --url https://mcp.gtmeditor.com gtm**Self-hosted Docker:**
git clone https://github.com/paolobietolini/gtm-mcp-server.git
cd gtm-mcp-server
cat > .env << 'EOF'
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret
JWT_SECRET=$(openssl rand -base64 32)
BASE_URL=http://localhost:8080
EOF
docker compose up -FAQ
- What authentication methods are supported?
- The server supports OAuth 2.1 with PKCE for user-based authentication and Service Account mode for programmatic/team-based access.
- Is it possible to self-host the server?
- Yes, the server can be self-hosted via Docker, Google Cloud, or other infrastructure with both OAuth and Service Account authentication options.
On Hacker News
Recent discussion from the developer community.
- Story by paolobietolini · 2026-02-07
Compare gtm-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.