Back to MCP directory
publicPublicdnsLocal runtime

discourse-mcp-server

一个实现Model Context Protocol (MCP)的Node.js服务器,用于在Discourse论坛上搜索帖子。

article

README

🚀 论坛 MCP 服务器

本项目是一个使用 Node.js 实现的 Model Context Protocol (MCP) 服务器,专门用于执行 Discourse 论坛的搜索操作。它为用户提供了便捷的方式,可通过 MCP 协议在 Discourse 论坛中搜索帖子。

✨ 主要特性

  • 支持使用 MCP 协议在 Discourse 论坛中搜索帖子。

📚 详细文档

📄 API 文档

工具

  • search_posts
    • 功能:在 Discourse 论坛中搜索帖子。
    • 输入query (字符串)
    • 返回:帖子对象数组

💻 使用示例

与 Claude Desktop 集成

你可以将以下内容添加到你的 claude_desktop_config.json 文件中,以实现与 Claude Desktop 的集成。

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"
      }
    }
  }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client