{
  "info": {
    "name": "Stack Exchange — mcp.ai",
    "description": "REST API for the Stack Exchange 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/stack_exchange",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "stack_exchange_get_collective_questions",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/collective/questions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "collective",
            "questions"
          ]
        },
        "description": "Tool to retrieve questions associated with the specified collective. use when you have a collective id and need its questions for a site.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"max\": 0,\n  \"min\": 0,\n  \"page\": 0,\n  \"site\": \"\",\n  \"sort\": \"\",\n  \"order\": \"\",\n  \"filter\": \"\",\n  \"todate\": 0,\n  \"fromdate\": 0,\n  \"pagesize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_collective_tags",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/collective/tags",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "collective",
            "tags"
          ]
        },
        "description": "Tool to retrieve tags associated with specified collectives. use when you need collective tags for display or analysis after confirming which collectives to query.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"key\": \"\",\n  \"page\": 0,\n  \"site\": \"\",\n  \"filter\": \"\",\n  \"pagesize\": 0,\n  \"access_token\": \"\",\n  \"collective_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_collectives",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/collectives",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "collectives"
          ]
        },
        "description": "Tool to retrieve all collectives on a stack exchange site in alphabetical order. use when you need to list collectives for display or filtering.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"max\": \"\",\n  \"min\": \"\",\n  \"page\": 0,\n  \"site\": \"\",\n  \"sort\": \"\",\n  \"order\": \"\",\n  \"todate\": 0,\n  \"fromdate\": 0,\n  \"pagesize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_comment_flag_options",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/comment/flag/options",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "comment",
            "flag",
            "options"
          ]
        },
        "description": "Tool to fetch valid flag options for a given comment. use when you need to know which flags a user can raise before submitting. requires authenticated access.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ids\": \"\",\n  \"key\": \"\",\n  \"site\": \"\",\n  \"filter\": \"\",\n  \"preview\": false,\n  \"access_token\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_comments",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/comments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "comments"
          ]
        },
        "description": "Tool to retrieve comments from a specified stack exchange site. use when you need to list comments with optional filters and sorting.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"max\": 0,\n  \"min\": 0,\n  \"page\": 0,\n  \"site\": \"\",\n  \"sort\": \"\",\n  \"order\": \"\",\n  \"filter\": \"\",\n  \"todate\": 0,\n  \"fromdate\": 0,\n  \"pagesize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_revisions_by_ids",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/revisions/by/ids",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "revisions",
            "by",
            "ids"
          ]
        },
        "description": "Tool to retrieve revisions for specific posts by their ids. use when you need to examine the edit history of posts by providing semicolon-delimited ids.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ids\": \"\",\n  \"page\": 0,\n  \"site\": \"\",\n  \"filter\": \"\",\n  \"todate\": 0,\n  \"fromdate\": 0,\n  \"pagesize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_search_results",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/search/results",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "search",
            "results"
          ]
        },
        "description": "Tool to search the site for questions meeting certain criteria. use after defining tags or keywords to locate relevant questions. at least one of 'tagged' or 'intitle' must be set.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"key\": \"\",\n  \"max\": 0,\n  \"min\": 0,\n  \"page\": 0,\n  \"site\": \"\",\n  \"sort\": \"\",\n  \"order\": \"\",\n  \"filter\": \"\",\n  \"tagged\": \"\",\n  \"todate\": 0,\n  \"intitle\": \"\",\n  \"fromdate\": 0,\n  \"pagesize\": 0,\n  \"nottagged\": \"\",\n  \"access_token\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "stack_exchange_get_sites",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/sites",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "sites"
          ]
        },
        "description": "Tool to retrieve all stack exchange sites and their api site parameter values. use when you need to discover available sites for api calls.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"filter\": \"\",\n  \"pagesize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}