Looked in this forum and on GitHub Discourse for an official Discourse Model Context Protocol (MCP) and did not find anything.
While there are unofficial Discourse MCP (ref), would much prefer an official one. Yes I am considering creating my own if needed.
Update:
DeepLearning.AI just released a free online class taught by Elie Schoppik from Anthropic
In watching course learned about MCP Inspector (Docs) (GitHub)
To avoid updates to the last post updating the latest
queue repeatedly, moving the notes here into an expandable section for those interested.
Notes
- In order to use MCP with the Discourse docs, seeking if they can be accessed with an API.
If one looks at the Discourse API docs page in the lower left, it displays:
Searching for the API for Redocly, one finds
- Since Discourse is open source on GitHub, also searching for
redocly
for the Discourse account turns up:
which is an entire GitHub repository
GitHub - discourse/discourse_api_docs: Discourse API Documentation
So it seems that it is possible to expose the Discourse API documentation as an MCP server using an API.
The Discourse Developer Docs are hosted as a Discourse category:
Documentation - Discourse Meta
and also a separate Discourse GitHub repository:
GitHub - discourse/discourse-developer-docs
So the logical thing to do is first create an MCP for the Discourse API docs based on Redocly, then use that for creating the MCP for the Discourse Developer Docs which is just a specific specialized instance of what would be an MCP for a Discourse forum.
Now the best programmers I know are also the most efficient, which many thinks make us look lazy, a quick search to see if there is an MCP for OpenAPI finds:
Seems this OpenAPI MCP is so popular, how to install it is noted on HuggingFace
How to Install OpenAPI MCP Server
Currently seems that the only file the OpenAPI MCP needs is the openapi.json
file, which for Discourse API is https://github.com/discourse/discourse_api_docs/blob/main/openapi.json
The raw version of this file https://raw.githubusercontent.com/discourse/discourse_api_docs/refs/heads/main/openapi.json
can be used as the URL at https://openapisearch.com/
e.g.
upon clicking Load API
converts this into tokens and a summary, e.g.
SLOP is noted on the X posting
I have no idea if that is a standard or just some made up name.