PlugWiki
Discourse MCP logo

Discourse MCP Server: Setup for Claude, Cursor and Other Apps

OfficialLocal
Getnpm@discourse/mcpdiscourse/discourse-mcp

Lets Claude, Cursor and other assistants search and read Discourse forums, and post or edit if you allow it.

Discourse MCP is the Discourse project's own server for its forum software. Your assistant can search topics and posts, read threads, look up users and run admin reports. It can also post, edit and send private messages if you turn writes on.

It runs on your computer and starts read-only with no sign-in, so it can read any public forum. Pick a forum by asking the assistant to select its address, or start the server with a fixed site. Private messages and admin tools need a Discourse API key.

Good for

  • Community managers who want summaries of busy topics and recent activity
  • Support teams that search forum answers before replying
  • Forum admins who want to run Data Explorer queries or manage the forum with an assistant

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install Discourse MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the Discourse MCP server to Claude Code. Run this command:
    
    claude mcp add discourse -- npx -y @discourse/mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Built from the package data we hold. Not yet tested by us.

Tools

  • Finds forum topics that match a search

    Searches a Discourse site and returns matching topics with their titles and links, plus how many results there are. You can use Discourse search syntax, like tags and categories.

    Try: “Search the forum for topics about slow uploads.”

    Network · discourse_search

  • Finds the exact posts that match, with snippets

    Searches for individual posts instead of whole topics. Each match keeps its highlighted snippet, author, topic and category. This is keyword search, not AI search.

    Try: “Which posts mention the 2FA bug, and who wrote them?”

    Network · discourse_search_posts

  • Lists topics that match filter rules

    Returns topics that match Discourse filter rules, such as a category, a tag or an ordering. Use it when you want a list rather than a text search.

    Try: “Show the newest topics in the support category.”

    Network · discourse_filter_topics

  • Reads a topic and its posts

    Returns a topic's details and its posts. Very large post limits can take several requests.

    Try: “Summarize the topic about the new theme.”

    Network · discourse_read_topic

  • Reads chosen posts from a long topic

    Reads up to 50 posts from a topic: the earliest, latest, around a given post, or only those by one user. It reports how long the topic is, without claiming it read it all.

    Try: “Read the last 10 replies in topic 4521.”

    Network · discourse_read_topic_posts

  • Reads one post

    Returns a single post with its author, time and raw text.

    Try: “Show me post 3 in topic 4521.”

    Network · discourse_read_post

  • Lists what a user has posted

    Returns a user's posts and replies page by page, with a short excerpt of each.

    Try: “What has user alice posted recently?”

    Network · discourse_list_user_posts

  • Shows a user's profile

    Returns a user's name, trust level, join date and bio, and whether they are an admin or moderator.

    Try: “Who is user alice and what is her trust level?”

    Network · discourse_get_user

  • Lists the forum's users (admin key)

    Lists users through the admin API, about 100 per page. It needs an admin API key.

    Try: “List the newest users on the forum.”

    Network · discourse_list_users

  • Reads messages from a chat channel

    Returns the messages in a Discourse chat channel with sender, time and thread details.

    Try: “Show the last messages in chat channel 12.”

    Network · discourse_get_chat_messages

  • Lists your private message inbox

    Lists personal or group private-message mailboxes. It needs a key for that site, because private messages are never public.

    Try: “List my unread private messages.”

    Network · discourse_list_private_messages

  • Reads one private message thread

    Returns a private message with its posts and who is allowed to see it. It refuses public topics.

    Try: “Read private message 987.”

    Network · discourse_read_private_message

Read from the source code

Permissions

low risk · 5 things to watch

Low risk

By default the assistant can only read forum content. If you turn writes on, it can post, edit and delete things as whoever your API key belongs to.

What it can do

Watch out for

  • Turning writes on lets it post, edit and delete

    With the allow-writes setting, the assistant can create and edit topics, posts, users and private messages, and delete drafts and saved queries. Keep it off unless you need it. github.com

  • Opt-in tool groups reach admin features

    Extra tool groups cover themes, webhooks, site settings and workflows, including deletes. They stay hidden unless you select them or choose all. github.com

  • The forum can add its own tools

    In the default tools mode (auto), the server also looks for tools that the Discourse site publishes through its Remote Tool Execution API, and the toolset setting does not filter them. Start with --tools_mode discourse_api_only to keep to the built-in list. github.com

  • An admin key reaches every user's data

    An admin key can list users and run Data Explorer queries against your forum. Use a user key unless you need admin tools. github.com

  • Forum text can carry instructions

    Posts are written by strangers. Review what the assistant does after reading them, especially with writes on. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyWrites are off by default. Do not pass the allow-writes flag, and the post, edit, upload and delete tools are not registered. The README also lists a read-only setting set to true, but marks it deprecated.
Talks toThe Discourse site you select
Sign-in and keysKeys go in the --auth_pairs setting or a profile file. The README suggests a profile file to keep secrets off the command line.
Scopes
  • Optional Discourse API key: a user key (any account) or an admin key

Questions

Is the Discourse MCP server official?

Yes. It comes from the Discourse organisation on GitHub, and the package on npm is @discourse/mcp.

Do I need an API key?

Not for public forums. Private messages, admin tools and posting need a key for that site. A user key works for personal use, and an admin key is only needed for admin features.

Can it post or delete things?

Only if you start it with writes turned on. Without that, the posting, editing, upload and delete tools are not registered at all.

How do I pick which forum it uses?

Ask the assistant to select the forum's address, or start the server fixed to one site so it cannot be changed. A fixed site is safer for shared setups.

Is the tool list on this page complete?

No. It shows the default set. The published package has more than 130 tools, and the rest sit in opt-in groups such as themes, webhooks, workflows, moderation and AI administration.

How do I add it to Claude Desktop or Cursor?

Use the install box above. The default setup is read-only, so add the allow-writes setting and a key only if you need them.

What do I need installed?

Node.js 24 or newer. The package declares that as its minimum, so older Node versions may fail to start it.

Does it run on my computer or in the cloud?

On your computer, over stdio, and it contacts only the forum you select. It also has a local HTTP mode that listens on loopback only and serves one client at a time.

Information

updated Nov 2, 2026

Publisher
Official
Package
@discourse/mcp
Registry
npm
Transport
stdio
Auth
API key
Version
0.3.1
License
MIT
Last commit
Oct 21, 2026
Listed in
Official MCP registry

GitHubnpmOfficial MCP Registry

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 2
  1. github.com · github.com
  2. www.npmjs.com · npmjs.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.