返回市场
讨论服务器-MCP

讨论服务器-MCP

作者:AshDevFr6 星标更新:2025-03-11

项目介绍

Discourse MCP Server

使用Model Context Protocol (MCP) 实现Discourse搜索操作的Node.js服务器。

功能

  • 使用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 .