StackExchange (Unofficial)

v0.2.2
io.github.pipeworx-io/stackexchange Checked 1 day ago Published 16 days ago

Unofficial StackExchange MCP — wraps the StackExchange API v2.3 (free, no auth required for read)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

stackexchange_search_questions

Search for questions on StackOverflow or any StackExchange site. Returns title, body, score, answer count, tags, and link.

ParameterTypeDescription
query *stringSearch query string
_apiKeystringOptional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.
limitnumberNumber of results to return (1-20, default 5)
sitestringStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics

get_answers

Get answers for a specific StackExchange question by ID. Returns answer body, score, and whether it is accepted.

ParameterTypeDescription
question_id *numberThe numeric question ID from the question URL
_apiKeystringOptional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.
sitestringStackExchange site slug (default: stackoverflow)

stack_get_user

Look up a StackExchange user by numeric ID. Returns display name, reputation, badges (gold/silver/bronze counts), location, website, account age, last access, and per-site activity counts (questions/answers). Works on any StackExchange site (default: stackoverflow).

ParameterTypeDescription
user_id *numberThe numeric StackExchange user ID (visible in profile URL, e.g., stackoverflow.com/users/17034 → 17034)
_apiKeystringOptional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.
sitestringStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics

list_questions_by_tag

Browse questions by TAG, sorted by votes or recency — answers "top questions tagged <tag>", "trending <tag> questions this week/month", "most-voted <tag> questions". Returns title, score, answer count, whether answered, view count, tags, and link (call get_answers with a returned question_id to read answers). Combine tags with ";" for AND (e.g. "kubernetes;helm"). Distinct from search_questions, which is keyword-based.

ParameterTypeDescription
tag *stringTag to browse (e.g. "rust", "kubernetes"). Combine with ";" for AND ("react;typescript").
_apiKeystringOptional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.
limitnumberNumber of questions to return (1-20, default 10)
sitestringStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics
sortstringSort order: votes (default, all-time top), month or week (trending recently), activity (recently active), creation (newest), hot.

stack_tags

List or search StackOverflow / StackExchange tags with question counts and synonym info — top tags by popularity, tags matching a name fragment, or stats for specific tags. Answers "most popular StackOverflow tags", "how many questions are tagged X", "which tags have more than N questions". Example: stack_tags({ sort: "popular", limit: 20 }) or stack_tags({ inname: "python" })

ParameterTypeDescription
_apiKeystringOptional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.
innamestringFilter to tags whose name contains this fragment, e.g. "python"
limitnumberMax tags to return, 1-100 (default 20)
min_countnumberOnly return tags with at least this many questions (server-side when sort=popular)
sitestringStackExchange site (default stackoverflow)
sortstringpopular (question count, default) | name | activity
tagsstringExact tag names to look up, semicolon-separated, e.g. "java;python;rust"