Is there an official Discourse Model Context Protocol (MCP)

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
  1. 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:

image

Searching for the API for Redocly, one finds

About Redocly documentation

  1. Since Discourse is open source on GitHub, also searching for redocly for the Discourse account turns up:

Code search results · GitHub

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:

GitHub - janwilmake/openapi-mcp-server: Allow AI to wade through complex OpenAPIs using Simple Language


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

image

I have no idea if that is a standard or just some made up name.

5 Likes

We don’t have an official MCP server or client. We have been “waiting and seeing” for now to see how adoption of the protocol emerges.

5 Likes

(post deleted by author)

1 Like

Would love to have an MCP for Discourse API Docs and Dev Docs. That would help a lot since we have been tweaking some Theme Components and we want to make sure that the code is always compatible to our and future Discourse versions and follow best practice.

2 Likes

Sometimes it is the ideas that you do not think of that are some of the best. :slightly_smiling_face:

Thanks for posting.

Moved notes to first post hidden section.

1 Like

The “note” seems to be empty when expanded…

You caught me at the moment I was moving it. Keeping two edit windows open for one topic is not practical so had to cut it, close this post, open the other post then paste it there.

Should work now.
Thanks for asking.