Back to Home
stape-io icon

google-tag-manager-mcp-server

Verified Safe

by stape-io

Overview

This server acts as a middleware proxy for Model Context Protocol (MCP) clients to interact with the Google Tag Manager API, enabling AI agents to manage GTM accounts, containers, workspaces, and various resources like tags, triggers, and variables securely via Google OAuth.

Installation

Run Command
wrangler deploy

Environment Variables

  • OAUTH_KV
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • COOKIE_ENCRYPTION_KEY
  • HOSTED_DOMAIN
  • WORKER_HOST
  • MCP_OBJECT

Security Notes

The server demonstrates strong security practices for its stated purpose. It utilizes a robust OAuth provider (@cloudflare/workers-oauth-provider) for Google authentication, with critical secrets (client IDs, secrets, encryption keys) properly sourced from environment variables. Input validation is enforced using Zod schemas, mitigating malformed requests. Explicit mechanisms for session revocation and Google token deauthorization are in place. Furthermore, the Privacy Policy explicitly states compliance with Google's Limited Use requirements, including a clear prohibition against using Google API data for AI/ML model training or improvement. The use of query parameters for sensitive data in the `/remove` endpoint, while functional on a secure Cloudflare Worker, is a minor consideration, but overall, the security posture is high.

Similar Servers

Stats

Interest Score50
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars77
Forks33
Last Update2025-12-04

Tags

mcpmodelcontextprotocolgtmstapegoogle tag managerapi integrationoauthcloudflare worker