{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.mharnett/ga4",
  "slug": "io.github.mharnett.ga4",
  "title": "ga4",
  "summary": "Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.",
  "version": "2.3.2",
  "serverKey": "ga4",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.mharnett.ga4",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.mharnett.ga4/install.md",
  "trust": {
    "score": 85,
    "grade": "A",
    "smokeStatus": "needs_credentials",
    "status": "active",
    "verifiedAt": "2026-12-01T18:25:51.337795562Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-ga4@2.3.2"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add ga4 -e 'GA4_PROPERTY_ID=<GA4_PROPERTY_ID>' -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -- npx -y mcp-ga4@2.3.2"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"ga4\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-ga4@2.3.2\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GA4_PROPERTY_ID\": \"<GA4_PROPERTY_ID>\",\n        \"GOOGLE_APPLICATION_CREDENTIALS\": \"<GOOGLE_APPLICATION_CREDENTIALS>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"ga4\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-ga4@2.3.2\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GA4_PROPERTY_ID\": \"<GA4_PROPERTY_ID>\",\n        \"GOOGLE_APPLICATION_CREDENTIALS\": \"<GOOGLE_APPLICATION_CREDENTIALS>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"GA4_PROPERTY_ID\",\n      \"id\": \"ga4-property-id\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"GOOGLE_APPLICATION_CREDENTIALS\",\n      \"id\": \"google-application-credentials\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"ga4\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-ga4@2.3.2\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GA4_PROPERTY_ID\": \"${input:ga4-property-id}\",\n        \"GOOGLE_APPLICATION_CREDENTIALS\": \"${input:google-application-credentials}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.ga4]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-ga4@2.3.2\"]\nenv = { \"GA4_PROPERTY_ID\" = \"<GA4_PROPERTY_ID>\", \"GOOGLE_APPLICATION_CREDENTIALS\" = \"<GOOGLE_APPLICATION_CREDENTIALS>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "GA4_PROPERTY_ID",
      "required": true,
      "secret": false,
      "description": "GA4 property ID (numeric)",
      "help": "GA4 property ID (numeric)",
      "placeholder": "<GA4_PROPERTY_ID>"
    },
    {
      "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>"
    }
  ],
  "agentSteps": [
    "Ask the user for: GA4_PROPERTY_ID, GOOGLE_APPLICATION_CREDENTIALS. 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-01T18:25:51.337795562Z"
}
