MCPSERV.CLUB
stape-io

Google Tag Manager MCP Server

MCP Server

Remote MCP server with Google OAuth for GTM API access

Active(89)
58stars
0views
Updated 11 days ago

About

This server enables remote MCP connections, integrates built‑in Google OAuth authentication, and provides a direct interface to the Google Tag Manager API. It allows tools like Claude Desktop to manage GTM containers programmatically.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Google Tag Manager MCP Server in Action

The Google Tag Manager MCP Server bridges the gap between AI assistants and Google’s tag‑management ecosystem. By exposing a set of MCP resources, it allows tools such as Claude to authenticate via Google OAuth and then read or modify Tag Manager containers, tags, triggers, and variables programmatically. For developers who rely on automated data‑layer management or need to audit tag configurations, this server eliminates the manual steps of logging into the GTM web interface and manually copying JSON snapshots.

At its core, the server provides a secure, authenticated API surface that maps directly onto the official Google Tag Manager REST endpoints. When an AI client invokes a tool, the server performs OAuth token exchange on behalf of the user and forwards the request to GTM. The result is a seamless experience where an assistant can, for example, list all tags in a container, create a new trigger, or update a variable without exposing credentials to the client. This abstraction is especially valuable in CI/CD pipelines, where tag updates must be automated and auditable.

Key capabilities include:

  • OAuth‑driven authentication that respects Google’s security model, ensuring tokens are refreshed automatically.
  • Full CRUD operations on containers, workspaces, tags, triggers, and variables through a consistent MCP tool interface.
  • Granular permission handling—the assistant only performs actions granted by the authenticated user’s GTM access level.
  • Caching and state management that keeps tool listings up to date while minimizing API calls.

Typical use cases span across marketing, analytics, and engineering teams:

  • Automated tag deployment during a release cycle, where an AI assistant pulls configuration changes from version control and pushes them to GTM.
  • Tag health checks that scan for orphaned triggers or duplicate tags, reporting findings back to a project management tool.
  • Dynamic audience segmentation where an assistant adjusts GTM audiences based on real‑time analytics data.

Integration into AI workflows is straightforward: developers add the MCP server URL to their client’s configuration, authenticate once through a browser flow, and then invoke tools as part of natural language prompts. The server’s design prioritizes security, compliance, and developer ergonomics, making it a standout solution for teams that need reliable, programmatic access to Google Tag Manager from conversational AI environments.