Discourse MCP 服务器
一个使用 Node.js 实现的 Discourse 搜索操作的 Model Context Protocol (MCP) 服务器。
快速入门
本项目是一个基于 Node.js 的 Discourse MCP 服务器,支持通过 MCP 协议搜索论坛帖子。
功能
- 使用
search_posts
工具通过关键词搜索帖子。
配置方法
-
Docker 部署: 在
claude_desktop_config.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 部署: 在
claude_desktop_config.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 镜像:
docker build -t ashdev/discourse-mcp-server .