# Stack Exchange — MCP server on mcp.ai > Stack Exchange is a network of Q&A communities where users ask questions, share knowledge, and collaborate on topics like coding, math, and more By: mcp.ai · official Page: https://mcp.ai/stack_exchange ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_stack_exchange?ms=1781542140000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/stack_exchange/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/stack_exchange/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/stack_exchange/skill.md Postman collection (v2.1): https://mcp.ai/stack_exchange/postman.json ## Tools - stack_exchange_get_collective_questions(id: string, max?: integer, min?: integer, page?: integer, site: string, sort?: string, order?: string, filter?: string, todate?: integer, fromdate?: integer, pagesize?: integer) — Tool to retrieve questions associated with the specified collective. use when you have a collective id and need its questions for a site. - stack_exchange_get_collective_tags(key?: string, page?: integer, site: string, filter?: string, pagesize?: integer, access_token?: string, collective_ids?: integer[]) — Tool to retrieve tags associated with specified collectives. use when you need collective tags for display or analysis after confirming which collectives to query. - stack_exchange_get_collectives(max?: string, min?: string, page?: integer, site: string, sort?: string, order?: string, todate?: integer, fromdate?: integer, pagesize?: integer) — Tool to retrieve all collectives on a stack exchange site in alphabetical order. use when you need to list collectives for display or filtering. - stack_exchange_get_comment_flag_options(ids: string, key?: string, site: string, filter?: string, preview?: boolean, access_token?: string) — 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. - stack_exchange_get_comments(max?: integer, min?: integer, page?: integer, site: string, sort?: string, order?: string, filter?: string, todate?: integer, fromdate?: integer, pagesize?: integer) — Tool to retrieve comments from a specified stack exchange site. use when you need to list comments with optional filters and sorting. - stack_exchange_get_revisions_by_ids(ids: string, page?: integer, site: string, filter?: string, todate?: integer, fromdate?: integer, pagesize?: integer) — 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. - stack_exchange_get_search_results(key?: string, max?: integer, min?: integer, page?: integer, site: string, sort?: string, order?: string, filter?: string, tagged?: string[], todate?: integer, intitle?: string, fromdate?: integer, pagesize?: integer, nottagged?: string[], access_token?: string) — 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. - stack_exchange_get_sites(page?: integer, filter?: string, pagesize?: integer) — Tool to retrieve all stack exchange sites and their api site parameter values. use when you need to discover available sites for api calls. ## Links Docs: https://mcp.ai/docs/mcps/stack_exchange Website: https://mcp.ai/mcps/stack_exchange