# Stack Exchange MCP tools for AI agents

Source: https://corespeed.io/catalog/stack-exchange

Connect Stack Exchange to Claude Code, Codex, Cursor or any MCP agent through CoreSpeed. Search and read questions, answers, comments, tags and users across the Stack Exchange network (Stack Overflow and its sister sites); read the connected account's own questions, answers, reputation, privileges, inbox and notifications; and post, edit or delete comments, vote and accept answers. Your agent works through your own Stack Exchange account and gets 28 Stack Exchange tools; CoreSpeed holds the credential, so the agent never sees the token. Calling it is free.

## Tools

- `stack-exchange__get_me`: Fetch the connected account's profile on one site (user id, display name, reputation, badges).
- `stack-exchange__list_sites`: List every site in the Stack Exchange network with its `site` API parameter. Values change at most daily — cache the result.
- `stack-exchange__search_questions`: Search a site's questions with the advanced-search criteria. Sorts: activity, creation, votes, relevance (relevance does not accept fromdate/todate).
- `stack-exchange__search_excerpts`: Search questions AND answers, returning matching excerpts rather than whole posts.
- `stack-exchange__list_questions`: List a site's questions, optionally restricted to tags. Sorts: activity, creation, votes, hot, week, month.
- `stack-exchange__get_questions`: Fetch questions by id.
- `stack-exchange__get_question_answers`: Fetch the answers on the given questions. Pass a body-bearing filter (e.g. `withbody`) to get answer text.
- `stack-exchange__get_answers`: Fetch answers by id.
- `stack-exchange__get_post_comments`: Fetch the comments on the given posts, whether they are questions or answers.
- `stack-exchange__list_tags`: List a site's tags. Sorts: popular, activity, name. inname filters to tags containing a substring.
- `stack-exchange__get_users`: Fetch users by id on one site.
- `stack-exchange__get_my_questions`: List the connected account's own questions on one site.
- `stack-exchange__get_my_answers`: List the connected account's own answers on one site.
- `stack-exchange__get_my_reputation`: List the connected account's reputation changes on one site.
- `stack-exchange__get_my_reputation_history`: The connected account's public reputation history on one site. The private variant is deliberately not exposed, so no private_info grant is requested.
- `stack-exchange__get_my_privileges`: List the privileges the connected account has earned on one site.
- `stack-exchange__get_my_timeline`: The connected account's public activity timeline on one site (posts, badges, revisions, accepts).
- `stack-exchange__get_my_inbox`: Read the connected account's global inbox (comments, replies, messages). Requires the read_inbox grant.
- `stack-exchange__get_my_notifications`: Read the connected account's notifications. Requires the read_inbox grant.
- `stack-exchange__create_comment`: Post a comment on a question or answer. Set preview to render the comment without posting it.
- `stack-exchange__edit_comment`: Edit one of the connected account's existing comments.
- `stack-exchange__delete_comment`: Delete one of the connected account's comments.
- `stack-exchange__upvote_question`: Up-vote a question as the connected account.
- `stack-exchange__undo_upvote_question`: Remove the connected account's up-vote from a question.
- `stack-exchange__upvote_answer`: Up-vote an answer as the connected account.
- `stack-exchange__undo_upvote_answer`: Remove the connected account's up-vote from an answer.
- `stack-exchange__accept_answer`: Accept an answer. Only the asker may accept, and only while no other answer is accepted.
- `stack-exchange__undo_accept_answer`: Un-accept a previously accepted answer.

## Questions

### Does Stack Exchange need my own account?

Yes. Connect your own Stack Exchange account once; CoreSpeed holds the credential, and your agents get tools, never the token.

### What does Stack Exchange cost on CoreSpeed?

Calling it is free.

### Which agents can use Stack Exchange?

Any MCP client, such as Claude Code, Codex, or Cursor. Give your agent the setup line, and the tools join its tool list. Set up an agent: https://corespeed.io/docs/mcp

## Related pages

- [Stack Exchange for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/stack-exchange): Search Stack Overflow and the Stack Exchange sites from your agent. Read the answers that fit your error, with their comments.

## Links

- Catalog: https://corespeed.io/catalog
- Set up an agent: https://corespeed.io/SKILL.md
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
