Discourse has officially launched the Discourse MCP CLI, an open-source command-line interface that connects Discourse forums to AI agents via the Model Context Protocol (MCP) 1. This tool allows AI assistants like Claude and ChatGPT to search, read, and interact with forum data in real-time using the Discourse REST API. The CLI approach was chosen over a built-in server to maximize compatibility and speed of iteration without requiring admin updates.
Early adopters have demonstrated various workflows, such as integrating Discourse with Jira 2 and using it within IDEs like Cursor 11. Users inquired about specific capabilities and constraints:
Documentation & Configuration: jrgong asked for command documentation, which Falco confirmed is available on GitHub and within MCP clients. He also provided workarounds for filtering search results by category.
Localization: jrgong requested support for retrieving topics in specific locales (e.g., English translations of German content). Falco agreed this was a good feature request.
Contributions: rey.riel highlighted limitations in the get_user tool regarding email and group visibility, subsequently submitting a PR to enhance admin-level access 23.
Setup Issues: SkhemaDeveloper encountered issues with write tools, resolved by ensuring the API key was generated for the ‘system’ user rather than ‘all users’ 24.
The community discussed expanding functionality beyond read operations. pacharanero advocated for remote/web-based MCP connections for non-technical users and the ability to edit existing posts via AI. Falco responded by adding an edit tool to the latest release and clarifying that HTTP transport (allowing sidecar web services) has been supported since October, enabling connections to web-based LLMs via tunnels like Cloudflare 34. Future roadmap items mentioned include advanced moderation, analytics, and plugin integrations. While Moin queried if the Discourse-AI plugin is required, the consensus is that the CLI operates independently via the REST API. singpolyma also requested tools to read discourse boards, indicating ongoing demand for broader data access capabilities.
As soon as Anthropic open sourced their Model Context Protocol (MCP) proposal for interfacing with AI agents almost a year ago, we started getting excited about how good of a match it was for Discourse.
I know you are joking, but was going for an good illustrative example for large companies with many channels for customer support who centralize things on Jira for historical reasons
Does anyone have more ideas for integrations like that? I could do a couple more screencasts.
Currently you can prompt your way there with something along the lines of:
When searching or filtering, via discourse_filter_topics or discourse_search, append category:dev,documentation to the query so you only search relevant information.
You may not automate access to the forum, or monitor the forum, such as with a web crawler, browser plug-in or add-on, or other computer program that is not a web browser. You may crawl the forum to index it for a publicly available search engine, if you run one.
Great news, and this sparks all good moonshot ideation. I would love to see Discourse MCP available on Cursor. This will open up the door to community users of all levels on dev or coding. This integration would serve a bountiful source of use cases and practical feedback.
It would be nice to be able to leverage the API internally to be able to ask questions about customers, employees, etc, which is a bit limited by the “get user” tool (no ability to see email or groups).
Anything I can do to poke someone about getting this added ASAP?
Just looking for confirmation - are the ‘write’ tools publicly available? I’ve set the —allow_writes flag and configured admin api keys, but still can only access these 8 tools across Claude Code and Cursor.