{
  "info": {
    "name": "Google Analytics — mcp.ai",
    "description": "REST API for the Google Analytics MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://new.mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/google_analytics",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "google_analytics_check_compatibility",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/check/compatibility",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "check",
            "compatibility"
          ]
        },
        "description": "Check whether a set of dimensions and metrics can be combined in the same report before running it. Not every pair is valid in GA4.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\",\n  \"dimensions\": \"\",\n  \"metrics\": \"\",\n  \"dimensionFilter\": {},\n  \"metricFilter\": {},\n  \"compatibilityFilter\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_create_expanded_data_set",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/expanded/data/set",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "expanded",
            "data",
            "set"
          ]
        },
        "description": "Tool to create an expanded data set for a property. use when you need to combine specific dimensions and metrics into a custom dataset after property creation.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"parent\": \"\",\n  \"expandedDataSet\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_get_account",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/account",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "account"
          ]
        },
        "description": "Tool to retrieve a single account by its resource name. use when you need detailed account info after confirming the account resource name (e.g., accounts/100).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_get_metadata",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/metadata",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "metadata"
          ]
        },
        "description": "List every dimension and metric this property accepts, including the custom ones. Call this when unsure which names a report can use.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_list_accounts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/accounts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "accounts"
          ]
        },
        "description": "Tool to list all accounts accessible by the caller. use when you need to enumerate all google analytics accounts your credentials can access.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"showDeleted\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_list_audiences",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/audiences",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "audiences"
          ]
        },
        "description": "Tool to list all audiences on a property. use when you need to fetch all audiences for a ga4 property after confirming its existence.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"parent\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_list_key_events",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/key/events",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "key",
            "events"
          ]
        },
        "description": "List the property's key events (what GA4 counts as a conversion). Use to learn which event names are worth reporting on.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_list_properties",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/properties",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "properties"
          ]
        },
        "description": "List every Google Analytics account the connected user can see, each with its GA4 properties (id + display name). Start here: every other tool needs a property_id.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_run_funnel_report",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/run/funnel/report",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "run",
            "funnel",
            "report"
          ]
        },
        "description": "Funnel report: how many people advance through each step and where they drop off. Use for 'where are people abandoning the checkout'.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\",\n  \"dateRanges\": \"\",\n  \"funnel\": {},\n  \"funnelBreakdown\": {},\n  \"funnelNextAction\": {},\n  \"limit\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_run_pivot_report",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/run/pivot/report",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "run",
            "pivot",
            "report"
          ]
        },
        "description": "Cross two or more dimensions in a pivot table (e.g. channel by month). Use when a flat report would need one row per combination.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\",\n  \"dateRanges\": \"\",\n  \"dimensions\": \"\",\n  \"metrics\": \"\",\n  \"pivots\": \"\",\n  \"dimensionFilter\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_run_realtime_report",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/run/realtime/report",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "run",
            "realtime",
            "report"
          ]
        },
        "description": "Who is on the site right now: realtime report for the last 30 minutes. Use for 'how many people are online', not for historical periods.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\",\n  \"dimensions\": \"\",\n  \"metrics\": \"\",\n  \"dimensionFilter\": {},\n  \"limit\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "google_analytics_run_report",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/run/report",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "run",
            "report"
          ]
        },
        "description": "Run a Google Analytics report: users, sessions, pageviews, conversions and revenue, broken down by any dimension (date, channel, source, page, country, device). This is the main tool for questions abo",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"property_id\": \"\",\n  \"dateRanges\": \"\",\n  \"dimensions\": \"\",\n  \"metrics\": \"\",\n  \"dimensionFilter\": {},\n  \"metricFilter\": {},\n  \"orderBys\": \"\",\n  \"limit\": 0,\n  \"offset\": 0,\n  \"keepEmptyRows\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}