google-tag-manager-mcp-server
Verified Safeby stape-io
Overview
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.
Installation
wrangler devEnvironment Variables
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- COOKIE_ENCRYPTION_KEY
- HOSTED_DOMAIN
- WORKER_HOST
- MCP_OBJECT
Security Notes
The server uses a robust OAuth provider (`@cloudflare/workers-oauth-provider`) for Google authentication, ensuring secure handling of credentials via environment variables. It explicitly states that it acts as a pass-through proxy, not storing or processing user data or Tag Manager content. HTML sanitization (`sanitizeHtml`) is applied to client information in the approval dialog to prevent XSS. The `/remove` endpoint allows users to revoke access and clear session data, enhancing privacy and security.
Similar Servers
MyMCP
Dynamically convert any OpenAPI v3 specification into a fully-functional Model Context Protocol (MCP) server, exposing external APIs as MCP tools.
mcp-server-playground
A playground and reference implementation for a Model Context Protocol (MCP) server, featuring streamable HTTP transport, OAuth proxy for third-party authorization servers like Auth0, and stateful session management.
google-mcp
A public Model Context Protocol (MCP) server that enables AI assistants to access Google Calendar and Sheets without requiring users to set up their own Google Cloud project.
n8n-mcp-server
Deploys a remote Model Context Protocol (MCP) server on Cloudflare Workers for exposing AI tools without requiring authentication.