Discourse MCP Server

Discourse MCP Server

site icon
2025.04.21 0
JavaScript论坛搜索MCP协议交流协作
Discourse MCP Server 是一个基于Node.js的服务,实现了Model Context Protocol (MCP)协议,专门用于Discourse论坛的搜索操作。该服务允许用户通过MCP协议在Discourse论坛上搜索帖子,适用于需要集成Discourse搜索功能的场景。
View on GitHub

Overview

基本能力

产品定位

Discourse MCP Server 是一个专为Discourse论坛设计的搜索服务,通过MCP协议提供高效的帖子搜索功能。

核心功能

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

适用场景

  • 需要集成Discourse论坛搜索功能的应用程序。
  • 开发者在Claude Desktop等环境中使用Discourse搜索功能。

工具列表

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

常见问题解答

使用教程

使用依赖

无特殊前置依赖,但需要安装Docker或Node.js环境。

安装教程

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

调试方式

无具体调试步骤,但可以通过检查环境变量和API响应来验证服务是否正常运行。

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。