Get the FREE Ultimate OpenClaw Setup Guide →

discourse

MCP server from AshDevFr/discourse-mcp-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio ashdevfr-discourse-mcp-server docker run -i --rm -e DISCOURSE_API_URL=https://try.discourse.org -e DISCOURSE_API_KEY=1234 -e DISCOURSE_API_USERNAME=ash ashdev/discourse-mcp-server \
  --env DISCOURSE_API_KEY="1234" \
  --env DISCOURSE_API_URL="https://try.discourse.org" \
  --env DISCOURSE_API_USERNAME="ash"

How to use

This MCP server implements a Discourse search capability accessible via the MCP protocol. It exposes a tool named search_posts which accepts a query string and returns an array of post objects from a Discourse forum. To use it, configure your MCP client (e.g., Claude Desktop) to point at the discourse MCP server. You can run the server using Docker as shown in the configuration, or via NPX if you prefer running directly from the npm package. When invoking search_posts, pass a search string in the query parameter to retrieve matching forum posts.

How to install

Prerequisites:

  • Docker installed and running (for the default configuration).
  • Optional: Node.js and npm if you prefer building/running locally instead of Docker.

Installation steps (Docker):

  1. Ensure Docker is installed: follow https://docs.docker.com/get-dstarted/
  2. Pull or build the image (if needed): docker pull ashdev/discourse-mcp-server
  3. Run the container with required environment/configuration: docker run -i --rm
    -e DISCOURSE_API_URL=https://try.discourse.org
    -e DISCOURSE_API_KEY=1234
    -e DISCOURSE_API_USERNAME=ash
    ashdev/discourse-mcp-server

Installation steps (NPX/Node.js):

  1. Install Node.js (>= 14) from https://nodejs.org/
  2. Install the MCP server package globally or locally via npm (example): npm install -g @ashdev/discourse-mcp-server
  3. Run via NPX (as shown in the README): npx -y @ashdev/discourse-mcp-server
  4. Configure environment variables as needed for your Discourse instance (URL, API key, username).

Then configure your MCP client to connect to the running server.

Additional notes

Environment variables are used to connect to your Discourse instance. If you encounter authentication errors, double-check DISCOURSE_API_KEY and DISCOURSE_API_USERNAME. In Docker setups, you can pass these as -e arguments or via an .env file. The server exposes a single tool: search_posts, which returns matching post objects. If the Discourse instance is behind authentication, ensure proper API access and permissions. For local testing, the README uses try.discourse.org with a placeholder API key; replace these values with your own during production use.

Related MCP Servers

Sponsor this space

Reach thousands of developers