{
  "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://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_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_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"
            }
          }
        }
      }
    }
  ]
}