# discourse-mcp-server

> MCP Server

This repository provides a Node.js server that implements the Model Context Protocol (MCP) for searching posts on a Discourse forum, enabling integration with tools like Claude Desktop. This repository provides

## Overview

- **Category:** Search & Knowledge
- **Language:** JavaScript
- **Stars:** 5
- **Forks:** 0
- **Owner:** AshDevFr
- **GitHub:** https://github.com/AshDevFr/discourse-mcp-server
- **Created:** 2025-03-10T21:47:18+00:00
- **Updated:** 2025-03-12T00:00:13+00:00
- **Source:** https://model-context-protocol.com/servers/discourse-forum-model-context-protocol-server

## Setup

## Setup
Add the following configuration to your `claude_desktop_config.json` to use the server.

### Docker

```json
{
  "mcpServers": {
    "discourse": {
      "command": "docker",
      "args": [
        "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"
      ]
    }
  }
}
```

### NPX

```json
{
  "mcpServers": {
    "discourse": {
      "command": "npx",
      "args": [
        "-y",
        "@ashdev/discourse-mcp-server"
      ],
      "env": {
        "DISCOURSE_API_URL": "https://try.discourse.org",
        "DISCOURSE_API_KEY": "1234",
        "DISCOURSE_API_USERNAME": "ash" 
      }
    }
  }
}
```

Docker build:

```bash
docker build -t ashdev/discourse-mcp-server .
```

## Tools

## Available Tools

		1. search_posts (Search posts on a Discourse forum)

