G

Google Tag Manager

Integrates with Google Tag Manager to automate container management, tag creation, trigger configura...

47 views
0 installs
Updated Nov 21, 2025
Not audited
Integrates with Google Tag Manager to automate container management, tag creation, trigger configuration, and publishing workflows with OAuth authentication and token persistence.
  1. Create a Google Cloud Project

    • Go to Google Cloud Console.
    • Click the project dropdown (top left) and select "New Project".
    • Enter a project name (e.g., "My GTM MCP Server") and click "Create".
    • Wait for the project to be created and select it.
  2. Enable the Tag Manager API

    • In your project, go to "APIs & Services" → "Library".
    • Search for "Tag Manager API" and click on it.
    • Click "Enable" and wait for the process to finish.
  3. Configure the OAuth Consent Screen

    • Go to "APIs & Services" → "OAuth consent screen".
    • Select "External" (or "Internal" if on Google Workspace) and click "Create".
    • Fill in the required fields:
      • App name
      • User support email
      • Developer contact email
    • Click "Save and Continue".
    • On subsequent screens, click "Save and Continue" and add your email as a test user.
  4. Create OAuth Credentials

    • Go to "APIs & Services" → "Credentials".
    • Click "Create Credentials" → "OAuth client ID".
    • Select "Desktop app" as the application type.
    • Name the client (e.g., "GTM MCP Desktop Client") and click "Create".
    • A dialog with your Client ID and Client secret will appear—leave this window open.
  5. Collect Credentials

    • Copy the Client ID (looks like: xxx.apps.googleusercontent.com).
    • Copy the Client secret (looks like: GOCSPX-...).
    • Also, note your Project ID (found at the top bar of the Google Cloud Console).
    • Save these values.
  6. Fill in the FastMCP Connection Interface

    • Click the "Install Now" button in the FastMCP connection interface.
    • When prompted, fill in the following values with your credentials:
      • GTM_CLIENT_ID: Paste your Client ID here.
      • GTM_CLIENT_SECRET: Paste your Client secret here.
      • GTM_PROJECT_ID: Paste your Project ID here.
    • Save or proceed as directed in the interface.
  7. Authorize on First Use

    • When you first use the GTM MCP tool, a browser window will open for Google authorization.
    • Log in with your Google account, click "Advanced" → "Go to [App Name] (unsafe)", and grant the requested permissions.
    • Close the browser after you see "The authentication flow has completed".

Your Google Tag Manager MCP integration is now ready to use!

Quick Start

View on GitHub

More for Automation

View All →

Report Issue

Thank you! Your issue report has been submitted successfully.