Discourse MCP 服务器是基于 Node.js 实现的 Model Context Protocol (MCP) 服务器,主要用于 Discourse 论坛的搜索操作,为论坛搜索提供了高效的解决方案。
若要使用本服务器,可参考后续的安装和集成步骤。
query
(字符串)将以下内容添加到你的 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"
]
}
}
}
{
"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 .