# stackexchange-mcp-server MCP server

Search Stack Exchange questions, fetch Q&A threads as markdown, look up tag FAQs and user profiles.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-cyanheads-stackexchange-mcp-server
- Repository: https://github.com/cyanheads/stackexchange-mcp-server

## Install
- Command: `npx -y @cyanheads/stackexchange-mcp-server`
- Endpoint: https://stackexchange.caseyjhand.com/mcp
- Auth: Not captured

## Setup notes
- Package: Npm @cyanheads/stackexchange-mcp-server v0.1.3
- Environment variable: STACKEXCHANGE_API_KEY
- Environment variable: MCP_LOG_LEVEL (default info)
- Package: Npm @cyanheads/stackexchange-mcp-server v0.1.3
- Environment variable: STACKEXCHANGE_API_KEY
- Environment variable: MCP_HTTP_HOST (default 127.0.0.1)
- Environment variable: MCP_HTTP_PORT (default 3010)
- Environment variable: MCP_HTTP_ENDPOINT_PATH (default /mcp)
- Environment variable: MCP_AUTH_MODE (default none)
- Environment variable: MCP_LOG_LEVEL (default info)
- Remote endpoint: https://stackexchange.caseyjhand.com/mcp

## Tools
- stackexchange_list_sites (List Stack Exchange Sites) - Enumerate all sites in the Stack Exchange network — name, api_site_parameter, audience, and URL. The api_site_parameter value is what other tools accept as the `site` input (e.g. "stackoverflow", "superuser", "serverfault"). Results are fetched live and optionally filtered by name. Use this tool to discover valid site parameters before calling other stackexchange_* tools. Endpoint: https://stackexchange.caseyjhand.com/mcp
- stackexchange_search_questions (Search Stack Exchange Questions) - Search questions across a Stack Exchange site. Returns ranked questions with title, score, answer count, accepted status, tags, and excerpt — no bodies at this stage. Results supply question_id values for stackexchange_get_thread, which fetches the full question body and all answers. Use the `site` parameter to target a specific community (e.g. "stackoverflow", "superuser", "unix"); call stackexchange_list_sites to discover valid site values. Endpoint: https://stackexchange.caseyjhand.com/mcp
- stackexchange_get_tag_faq (Get Stack Exchange Tag FAQ) - Fetch the highest-voted answered questions for a tag on a Stack Exchange site — the canonical "best answers in X" list. Returns a question list without bodies; use stackexchange_get_thread to read the full body and answers for any result. Use this tool to find the authoritative community resources on a topic (e.g. tag "javascript" on stackoverflow). Use stackexchange_search_questions for free-text search rather than tag-based browsing. Endpoint: https://stackexchange.caseyjhand.com/mcp
- stackexchange_get_user (Get Stack Exchange User Profile) - Fetch a Stack Exchange user profile by numeric user ID: reputation, badge counts, top tags by answer score, and account metadata. Useful for credibility context on an answer author — pass the authorUserId from any question or answer in stackexchange_get_thread output. Returns profile fields plus up to 10 top tags by answer score. Endpoint: https://stackexchange.caseyjhand.com/mcp
- stackexchange_get_thread (Get Stack Exchange Q&A Thread) - Fetch a complete Q&A thread — question body and all answers, accepted answer first then sorted by score, rendered as clean markdown with fenced code blocks. Accepts an integer question ID or a full Stack Exchange question URL (e.g. "https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster" or "11227809"). HTML is normalized to markdown automatically; attribution (author + link) included per CC BY-SA 4.0. Get question IDs from stackexchange_search_questions or stackexchange_get_tag_faq. Endpoint: https://stackexchange.caseyjhand.com/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: io.github.cyanheads
- Version: 0.1.3
- Runtime: Npm
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Jun 6, 2026
- Source: https://registry.modelcontextprotocol.io
