Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AIFire in da houseCheck it out free

google-tag-manager-mcp-server

MCP.Pizza Chef: stape-io

The google-tag-manager-mcp-server is an MCP server that exposes the Google Tag Manager API to MCP clients, enabling real-time, structured interaction with GTM containers, tags, triggers, and variables. It requires Node.js and Google Cloud service account credentials for secure API access. This server facilitates automated tag management workflows and integration of GTM data into AI-enhanced applications.

Use This MCP server To

Manage Google Tag Manager containers and tags programmatically Automate deployment of GTM tags and triggers via MCP clients Fetch and update GTM workspace configurations in real time Integrate GTM data into AI workflows for marketing analytics Enable LLMs to query and modify GTM setups securely Synchronize GTM changes across environments using MCP Audit GTM tag configurations through structured API access

README

MCP Server for Google Tag Manager

This is a MCP server that provides an interface to the Google Tag Manager API.

Prerequisites

  • Node.js (v16 or higher)
  • Google Cloud Platform account
  • Service account credentials for Google Tag Manager API

Setup

  1. Clone the repository

  2. Install dependencies:

    npm install
  3. Create a service account in Google Cloud Console and download the JSON key file

  4. Set env file with your service account key path:

    GOOGLE_APPLICATION_CREDENTIALS=./path/to/your/service-account-key.json
    

google-tag-manager-mcp-server FAQ

How do I authenticate the google-tag-manager-mcp-server?
You authenticate using a Google Cloud service account JSON key with permissions for the Google Tag Manager API.
What are the prerequisites for running this MCP server?
Node.js v16 or higher, a Google Cloud Platform account, and service account credentials for GTM API access are required.
Can this MCP server modify GTM tags and triggers?
Yes, it allows programmatic creation, update, and deletion of tags, triggers, and variables within GTM containers.
How do I configure the environment for this MCP server?
Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of your service account JSON key file.
Is this MCP server compatible with multiple MCP clients?
Yes, it exposes a standardized API interface that any MCP client can consume to interact with Google Tag Manager.
What LLM providers can work with this MCP server?
It is provider-agnostic and works with OpenAI, Anthropic Claude, Google Gemini, and other LLMs supporting MCP.
How secure is the communication between the MCP client and this server?
Communication is secured via standard MCP protocol practices and Google Cloud authentication mechanisms.
Can I use this MCP server to audit existing GTM configurations?
Yes, it can fetch and expose GTM container configurations for auditing and compliance checks.