{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "com.getmcpads/google-analytics",
  "slug": "com.getmcpads.google-analytics",
  "title": "Google Analytics 4",
  "summary": "Google Analytics 4 MCP server: 27 read tools, no write tools.",
  "version": "2.1.2",
  "serverKey": "google-analytics",
  "pageUrl": "https://mcpkglabs.com/tool/com.getmcpads.google-analytics",
  "installMdUrl": "https://mcpkglabs.com/tool/com.getmcpads.google-analytics/install.md",
  "trust": {
    "score": 89,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T16:06:18.409005382Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=@getmcpads/google-analytics-mcp-server@2.1.2",
        "google-analytics-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add google-analytics -e 'GA4_CLIENT_ID=<GA4_CLIENT_ID>' -e 'GA4_CLIENT_SECRET=<GA4_CLIENT_SECRET>' -e 'GA4_REFRESH_TOKEN=<GA4_REFRESH_TOKEN>' -- npx -y --package=@getmcpads/google-analytics-mcp-server@2.1.2 google-analytics-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"google-analytics\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@getmcpads/google-analytics-mcp-server@2.1.2\",\n        \"google-analytics-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GA4_CLIENT_ID\": \"<GA4_CLIENT_ID>\",\n        \"GA4_CLIENT_SECRET\": \"<GA4_CLIENT_SECRET>\",\n        \"GA4_REFRESH_TOKEN\": \"<GA4_REFRESH_TOKEN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"google-analytics\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@getmcpads/google-analytics-mcp-server@2.1.2\",\n        \"google-analytics-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GA4_CLIENT_ID\": \"<GA4_CLIENT_ID>\",\n        \"GA4_CLIENT_SECRET\": \"<GA4_CLIENT_SECRET>\",\n        \"GA4_REFRESH_TOKEN\": \"<GA4_REFRESH_TOKEN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"GA4_CLIENT_ID\",\n      \"id\": \"ga4-client-id\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"GA4_CLIENT_SECRET\",\n      \"id\": \"ga4-client-secret\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"GA4_REFRESH_TOKEN\",\n      \"id\": \"ga4-refresh-token\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"google-analytics\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@getmcpads/google-analytics-mcp-server@2.1.2\",\n        \"google-analytics-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"GA4_CLIENT_ID\": \"${input:ga4-client-id}\",\n        \"GA4_CLIENT_SECRET\": \"${input:ga4-client-secret}\",\n        \"GA4_REFRESH_TOKEN\": \"${input:ga4-refresh-token}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.google-analytics]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=@getmcpads/google-analytics-mcp-server@2.1.2\", \"google-analytics-mcp\"]\nenv = { \"GA4_CLIENT_ID\" = \"<GA4_CLIENT_ID>\", \"GA4_CLIENT_SECRET\" = \"<GA4_CLIENT_SECRET>\", \"GA4_REFRESH_TOKEN\" = \"<GA4_REFRESH_TOKEN>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "GA4_CLIENT_ID",
      "required": true,
      "secret": false,
      "description": "OAuth client ID.",
      "help": "OAuth client ID.",
      "placeholder": "<GA4_CLIENT_ID>"
    },
    {
      "name": "GA4_CLIENT_SECRET",
      "required": true,
      "secret": true,
      "description": "OAuth client secret.",
      "help": "OAuth client secret.",
      "placeholder": "<GA4_CLIENT_SECRET>"
    },
    {
      "name": "GA4_REFRESH_TOKEN",
      "required": true,
      "secret": true,
      "description": "OAuth refresh token, analytics.readonly scope.",
      "help": "OAuth refresh token, analytics.readonly scope.",
      "placeholder": "<GA4_REFRESH_TOKEN>"
    },
    {
      "name": "GA4_PROPERTY_ID",
      "required": false,
      "secret": false,
      "description": "Default GA4 property ID.",
      "help": "Default GA4 property ID.",
      "placeholder": "<GA4_PROPERTY_ID>"
    },
    {
      "name": "GA4_PROPERTY_IDS",
      "required": false,
      "secret": false,
      "description": "Comma-separated property IDs every tool is limited to. Optional in 2.x, required in 3.0.0.",
      "help": "Comma-separated property IDs every tool is limited to. Optional in 2.x, required in 3.0.0.",
      "placeholder": "<GA4_PROPERTY_IDS>"
    }
  ],
  "expectedTools": [
    "ga4_health_check",
    "ga4_list_properties",
    "ga4_run_report",
    "ga4_run_realtime_report",
    "ga4_get_metadata",
    "ga4_get_custom_definitions",
    "ga4_get_key_events",
    "ga4_get_ecommerce_diagnostics",
    "ga4_get_event_parameters",
    "ga4_run_funnel_recipe",
    "ga4_get_audience_export_diagnostics",
    "ga4_get_audience_diagnostics",
    "ga4_get_bigquery_export_diagnostics",
    "ga4_get_server_side_tagging_diagnostics",
    "ga4_run_advanced_funnel_report",
    "ga4_get_channel_groups",
    "ga4_validate_query",
    "ga4_run_pivot_report",
    "ga4_batch_run_reports",
    "ga4_batch_run_pivot_reports",
    "ga4_check_compatibility",
    "ga4_get_property_quotas_snapshot",
    "ga4_list_accounts",
    "ga4_list_admin_resources",
    "ga4_get_property_configuration",
    "ga4_list_audience_exports",
    "ga4_query_audience_export"
  ],
  "agentSteps": [
    "Ask the user for: GA4_CLIENT_ID, GA4_CLIENT_SECRET, GA4_REFRESH_TOKEN. 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.",
    "Verify: the server should expose these tools: ga4_health_check, ga4_list_properties, ga4_run_report, ga4_run_realtime_report, ga4_get_metadata, ga4_get_custom_definitions, ga4_get_key_events, ga4_get_ecommerce_diagnostics, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T16:06:18.409005382Z"
}
