Discourse MCP server (stdio) with review-queue tools added. Fork of @discourse/mcp.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
This is a fork of discourse/discourse-mcp, extended with tools for working the Discourse review queue (
/review) — listing pending/flagged items and approving or rejecting them. Everything else is unchanged from upstream. See What's added in this fork below.
A Model Context Protocol (MCP) stdio server that exposes Discourse forum capabilities as tools and resources for AI agents.
src/index.ts → compiled to dist/index.js (binary name: discourse-mcp)@modelcontextprotocol/sdkdiscourse_list_reviewables — list items in the review queue (as seen at /review?sort_order=score), e.g. new/queued posts awaiting approval and flagged posts. Requires an admin or moderator API key/user API key for the site.discourse_perform_reviewable_action — approve, reject, or otherwise act on a review queue item (only registered when writes are enabled, same as other write tools).Full input/output details are in the Tools section below. Since this build isn't published to npm, run it locally from a build of this repo (pnpm install && pnpm build, then point your MCP client at dist/index.js) instead of npx @discourse/mcp@latest.
Then, in your MCP client, either:
Call the discourse_select_site tool with { "site": "https://try.discourse.org" } to choose a site, or
Start the server tethered to a site using --site https://try.discourse.org (in which case discourse_select_site is hidden).
Enable writes (opt‑in, safe‑guarded)
Alternative: if you prefer a global binary after install, the package exposes
discourse-mcp.
The server registers tools under the MCP server name @discourse/mcp. Choose a target Discourse site either by:
Using the discourse_select_site tool at runtime (validates via /about.json), or
Supplying --site <url> to tether the server to a single site at startup (validates via /about.json and hides discourse_select_site).
Auth
--auth_pairs '[{"site":"https://example.com","api_key":"...","api_username":"system"}]'--auth_pairs '[{"site":"https://example.com","user_api_key":"...","user_api_client_id":"..."}]'http_basic_user and http_basic_pass to any auth_pairs entry. This is useful for Discourse sites protected by HTTP Basic Authentication at the reverse proxy level.auth_pairs; the matching entry is used for the selected site. If both user_api_key and api_key are provided for the same site, user_api_key takes precedence.Write safety
discourse_create_post, discourse_create_topic, discourse_create_category, discourse_update_topic, discourse_create_user, discourse_update_user, discourse_upload_file, discourse_save_draft, discourse_delete_draft, discourse_perform_reviewable_action) are only registered when --allow_writes AND not --read_only.auth_pairs entry for the selected site; otherwise they return an error.Flags & defaults
--read_only (default: true)--allow_writes (default: false)--timeout_ms <number> (default: 15000)--concurrency <number> (default: 4)--log_level <silent|error|info|debug> (default: info)
debug: Shows all HTTP requests, responses, and detailed error informationinfo: Shows retry attempts and general operational messageserror: Shows only errorssilent: No logging output--show_emails (default: false). includes emails in user tools. Requires admin access--tools_mode <auto|discourse_api_only|tool_exec_api> (default: auto)--site <url>: Tether MCP to a single site and hide discourse_select_site.--default-search <prefix>: Unconditionally prefix every search query (e.g., tag:ai order:latest).--max-read-length <number>: Maximum characters returned for post content (default 50000). Applies to discourse_read_post and per-post content in discourse_read_topic. The tools prefer raw content by requesting include_raw=true.--allowed_upload_paths <paths>: Comma-separated list or JSON array of directories allowed for local file uploads. Required to enable local file uploads in discourse_upload_file. Example: --allowed_upload_paths "/home/user/images,/tmp/uploads" or --allowed_upload_paths '["/home/user/images"]'--transport <stdio|http> (default: stdio): Transport type. Use stdio for standard input/output (default), or http for Streamable HTTP transport (stateless mode with JSON responses).--port <number> (default: 3000): Port to listen on when using HTTP transport.--cache_dir <path> (reserved)--profile <path.json> (see below)Profile file (keep secrets off the command line)
Run with:
Flags still override values from the profile.
Remote Tool Execution API (optional)
tools_mode=auto (default) or tool_exec_api, the server discovers remote tools via GET /ai/tools after you select a site (or immediately at startup if --site is provided) and registers them dynamically. Set --tools_mode=discourse_api_only to disable remote tool discovery.Networking & resilience
Privacy
Resources provide static/semi-static read-only data via URI addressing. Use these instead of tools for listing operations.
discourse://site/categories
{ categories: [{id, name, slug, pid, read_restricted, topic_count, post_count, perms}], meta: {total} }perms is array of {gid, perm} where perm: 1=full, 2=create_post, 3=readonlyperms is only populated with admin/moderator auth. Without admin auth, only read_restricted boolean is available.discourse://site/tags
{ tags: [{id, name, count}], meta: {total} }discourse://site/groups
{ groups: [{id, name, automatic, user_count, vis, members_vis, mention, msg, public_admission, public_exit, allow_membership_requests}], meta: {total} }gid values from category permissions to group names, replicate group settings during migrationsdiscourse://chat/channels
{ channels: [{id, title, slug, status, members_count, description}], meta: {total} }discourse://user/chat-channels
{ public_channels: [...], dm_channels: [...], meta: {total} }discourse://user/drafts
{ drafts: [{draft_key, sequence, title, category_id, created_at, reply_preview}], meta: {total} }Built‑in tools (always present unless noted). All tools return strict JSON (no Markdown).
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/discourse-mcp-extended)<a href="https://allmcps.com/mcp/discourse-mcp-extended"><img src="https://allmcps.com/api/badge/discourse-mcp-extended?style=directory" alt="Discourse MCP Extended on AllMCPs" /></a>