{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.mharnett/gtm-ga4",
  "slug": "io.github.mharnett.gtm-ga4",
  "title": "gtm-ga4",
  "summary": "GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.",
  "version": "1.3.2",
  "serverKey": "gtm-ga4",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.mharnett.gtm-ga4",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.mharnett.gtm-ga4/install.md",
  "trust": {
    "score": 85,
    "grade": "A",
    "smokeStatus": "needs_credentials",
    "status": "active",
    "verifiedAt": "2026-12-01T14:44:21.915624846Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4@1.3.2"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add gtm-ga4 -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -e 'GTM_ACCOUNT_ID=<GTM_ACCOUNT_ID>' -e 'GTM_CONTAINER_ID=<GTM_CONTAINER_ID>' -- npx -y mcp-gtm-ga4@1.3.2"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"gtm-ga4\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-gtm-ga4@1.3.2\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GOOGLE_APPLICATION_CREDENTIALS\": \"<GOOGLE_APPLICATION_CREDENTIALS>\",\n        \"GTM_ACCOUNT_ID\": \"<GTM_ACCOUNT_ID>\",\n        \"GTM_CONTAINER_ID\": \"<GTM_CONTAINER_ID>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"gtm-ga4\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-gtm-ga4@1.3.2\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GOOGLE_APPLICATION_CREDENTIALS\": \"<GOOGLE_APPLICATION_CREDENTIALS>\",\n        \"GTM_ACCOUNT_ID\": \"<GTM_ACCOUNT_ID>\",\n        \"GTM_CONTAINER_ID\": \"<GTM_CONTAINER_ID>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"GOOGLE_APPLICATION_CREDENTIALS\",\n      \"id\": \"google-application-credentials\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"GTM_ACCOUNT_ID\",\n      \"id\": \"gtm-account-id\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"GTM_CONTAINER_ID\",\n      \"id\": \"gtm-container-id\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"gtm-ga4\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-gtm-ga4@1.3.2\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GOOGLE_APPLICATION_CREDENTIALS\": \"${input:google-application-credentials}\",\n        \"GTM_ACCOUNT_ID\": \"${input:gtm-account-id}\",\n        \"GTM_CONTAINER_ID\": \"${input:gtm-container-id}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.gtm-ga4]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-gtm-ga4@1.3.2\"]\nenv = { \"GOOGLE_APPLICATION_CREDENTIALS\" = \"<GOOGLE_APPLICATION_CREDENTIALS>\", \"GTM_ACCOUNT_ID\" = \"<GTM_ACCOUNT_ID>\", \"GTM_CONTAINER_ID\" = \"<GTM_CONTAINER_ID>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "GOOGLE_APPLICATION_CREDENTIALS",
      "required": true,
      "secret": false,
      "description": "Path to service account JSON credentials file",
      "help": "Path to service account JSON credentials file",
      "placeholder": "<GOOGLE_APPLICATION_CREDENTIALS>"
    },
    {
      "name": "GTM_ACCOUNT_ID",
      "required": true,
      "secret": false,
      "description": "GTM account ID",
      "help": "GTM account ID",
      "placeholder": "<GTM_ACCOUNT_ID>"
    },
    {
      "name": "GTM_CONTAINER_ID",
      "required": true,
      "secret": false,
      "description": "GTM container ID",
      "help": "GTM container ID",
      "placeholder": "<GTM_CONTAINER_ID>"
    },
    {
      "name": "GA4_PROPERTY_ID",
      "required": false,
      "secret": false,
      "description": "GA4 property ID (numeric)",
      "help": "GA4 property ID (numeric)",
      "placeholder": "<GA4_PROPERTY_ID>"
    }
  ],
  "agentSteps": [
    "Ask the user for: GOOGLE_APPLICATION_CREDENTIALS, GTM_ACCOUNT_ID, GTM_CONTAINER_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T14:44:21.915624846Z"
}
