Discourse MCP Server

Discourse MCP Server

一个 Node.js 服务器,它允许通过模型上下文协议 (MCP) 搜索 Discourse 论坛帖子,从而使 AI 助手能够从 Discourse 论坛检索内容。

编程文档访问
访问服务器

README

Discourse MCP 服务器

Node.js 服务器,为 Discourse 搜索操作实现模型上下文协议 (MCP)。

功能

  • 使用 MCP 协议在 Discourse 论坛上搜索帖子。

API

工具

  • search_posts
    • 在 Discourse 论坛上搜索帖子
    • 输入: query (字符串)
    • 返回一个帖子对象数组

与 Claude Desktop 一起使用

将其添加到您的 claude_desktop_config.json 中:

Docker

{
  "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

{
  "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 构建:

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

推荐服务器