Back to Browse

Google Tag Manager MCP Server

Developer ToolsModerate5.3MCP RegistryRemote
Free

Server data from the Official MCP Registry

Google Tag Manager via Stape's tools: containers, tags, triggers, variables. Read-only by default.

About

Google Tag Manager via Stape's tools: containers, tags, triggers, variables. Read-only by default.

Remote endpoints: streamable-http: https://{slug}.foro.sh/mcp

Security Report

5.3
Moderate5.3Moderate Risk

This is a thin wrapper around Stape's Google Tag Manager tools that splits mixed read/write tools so that reads need only the readonly scope, and it obtains Google tokens from foro's broker rather than storing secrets. No hardcoded credentials, exfiltration, or shell execution were found. The remaining concerns are low-severity: the MCP endpoint relies on the foro gate for authentication and trusts the x-foro-caller and x-foro-subject headers, and the write tools (including publish and delete) are high-impact but scoped and marked destructive. Supply chain analysis found 3 known vulnerabilities in dependencies (1 critical, 1 high severity).

8 files analyzed · 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "sh-foro-google-tag-manager": {
      "url": "https://{slug}.foro.sh/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Google Tag Manager MCP

An MCP server for Google Tag Manager, built to deploy on foro.sh as the Google Tag Manager blueprint. The tools are Stape's (google-tag-manager-mcp-core, Apache-2.0), served unchanged behind foro's gate. Stape is not affiliated with foro; see NOTICE.

Read-only by default

Stape registers one tool per resource, with an action that mixes reads and writes (gtm_tag creates, lists and deletes tags). foro allows or blocks whole tools and asks Google only for the scopes the allowed tools need, so this server splits each one:

  • gtm_tag keeps the read actions (get, list) and needs only tagmanager.readonly.
  • gtm_tag_edit takes create, update, remove, revert and needs tagmanager.edit.containers.
  • Actions that need another scope get their own tool: gtm_version_publish (tagmanager.publish), gtm_container_delete (tagmanager.delete.containers), and so on.

tools.ts is the whole table. Each scope is the narrowest Google's discovery document accepts for the method behind the action. A Stape tool or action not in the table is not served, and the tests fail until it is classified, so an upstream release can't slip a write in as a read.

foro-tools.json is what foro reads to tell reads from writes and to pick the scopes. It is generated: run npm run manifest after changing tools.ts.

Sign-in

The server holds no OAuth of its own. foro signs each member in to Google with foro's own Google client and keeps the refresh token; per call, the server asks foro's upstream broker for the caller's access token under the google grant (broker.ts). It only runs inside a foro deploy, which sets FORO_UPSTREAM_BROKER_URL and FORO_UPSTREAM_BROKER_TOKEN.

Development

npm install
npm test

Updating Stape: bump google-tag-manager-mcp-core in package.json, run npm test, classify any new tool or action in tools.ts, then npm run manifest.

Reviews

No reviews yet

Be the first to review this server!