Koskamo

mcp-gtm-ga4 MCP

An open-source MCP server for Google Tag Manager and GA4 that provides tools for tag management, consent auditing, workspace versioning, and analytics reporting. It supports sandbox safety for write operations and multi-client configuration via environment variables.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

mcp-gtm-ga4 MCP logo, by mharnettCommunity listingLocal stdioSource reviewed; not executedPublished by mharnett
You need:GOOGLE_APPLICATION_CREDENTIALS Yes Path to a Google credential JSON key file (service account or authorized-user — see Authentication below)
Vendor documentation

What you can do with it

  • Manage GTM tags, triggers, and variables
  • Audit consent compliance settings
  • Version and preview GTM workspaces
  • Retrieve GA4 analytics reports

Source and maintenance

Community listingRegistry 1.0.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

mcp-gtm-ga4 1.0.1

npm
mcp-gtm-ga4 package definition
{
  "version": "1.0.1",
  "transport": "stdio",
  "identifier": "mcp-gtm-ga4",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "GOOGLE_APPLICATION_CREDENTIALS",
      "isRequired": true,
      "description": "Path to service account JSON credentials file"
    },
    {
      "name": "GTM_ACCOUNT_ID",
      "isRequired": true,
      "description": "GTM account ID"
    },
    {
      "name": "GTM_CONTAINER_ID",
      "isRequired": true,
      "description": "GTM container ID"
    },
    {
      "name": "GA4_PROPERTY_ID",
      "description": "GA4 property ID (numeric)"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "mcp-gtm-ga4-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4@1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
        "GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
        "GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
        "GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "mcp-gtm-ga4-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4@1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
        "GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
        "GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
        "GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "mcp-gtm-ga4-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4@1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
        "GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
        "GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
        "GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "mcp-gtm-ga4-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4@1.0.1"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
        "GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
        "GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
        "GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
      }
    }
  }
}

Let your agent find its tools

Find servers like mcp-gtm-ga4 MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.