GTM-MCP
Verified Safeby ambit1977
Overview
Automate and manage Google Tag Manager (GTM) accounts, containers, workspaces, tags, triggers, variables, and versions through an MCP server.
Installation
npm startEnvironment Variables
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GOOGLE_REDIRECT_URI
- GTM_TOKEN_PATH
Security Notes
The server uses standard OAuth2 for Google API authentication, storing tokens securely in a local file (`~/.gtm-mcp-token.json`). Sensitive credentials (Client ID/Secret) are correctly sourced from environment variables. The use of `execAsync('open "${authUrl}"')` is for opening a browser on macOS during initial authentication, where `authUrl` is generated internally by `googleapis`, posing no apparent injection risk. Input sanitization is implicitly handled by the `googleapis` library for API requests, and explicitly for `filter` and `autoEventFilter` parameters by attempting `JSON.parse` if they are strings.
Similar Servers
google-tag-manager-mcp-server
This server acts as a middleware to connect MCP (Model Context Protocol) clients with the Google Tag Manager API, enabling programmatic management of GTM accounts, containers, and resources.
MCPbundler
Manages and runs Agent Skills and Model Context Protocol (MCP) servers locally on macOS, providing a unified endpoint for various AI clients and automation workflows.
omnifocus-mcp
Interact with and manage OmniFocus tasks, projects, folders, and tags on macOS, including UI navigation and comprehensive filtering.
bb-applescript-mcp-server
Enables LLM clients to automate macOS applications using AppleScript, providing predefined tools for Finder and BBEdit, and supporting custom plugin development.