Cloudflare Community 论坛 ↗ 的 MCP server 让 AI Agent 搜索主题、阅读帖子、查找用户并筛选内容。
该 server 由 @discourse/mcp ↗(官方 Discourse MCP server)提供支持。
npx @discourse/mcp@latest在 ~/.config/opencode/opencode.jsonc 的 "mcp" 块中添加:
"discourse": {
"type": "local",
"command": ["npx", "-y", "@discourse/mcp@latest"],
"enabled": true
}添加到 claude_desktop_config.json:
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": ["-y", "@discourse/mcp@latest"]
}
}
}在项目根目录的 .cursor/mcp.json 中添加:
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": ["-y", "@discourse/mcp@latest"]
}
}
}配置客户端后,使用 discourse_select_site 工具并传入:
https://community.cloudflare.com读取公开数据无需 API 密钥。仅写操作(发帖、 moderation)需要 API 密钥。
| Tool | 描述 |
|---|---|
discourse_select_site |
连接到 community.cloudflare.com |
discourse_search |
对主题与帖子全文搜索 |
discourse_filter_topics |
按 category、标签、状态、日期筛选 |
discourse_read_topic |
阅读主题帖子与元数据 |
discourse_read_post |
阅读特定帖子 |
discourse_get_user |
查找用户资料 |
discourse_list_user_posts |
列出用户的帖子 |
连接后,你可以向 AI 助手提问,例如:
- 「在 Cloudflare 社区搜索关于 Error 522 的主题」
- 「查找 SSL 分类下最近 3 天未回复的主题」
- 「阅读主题 42325 并总结问题」
- 「显示用户 sandro 的最近回复」
AI Agent 可通过 community.cloudflare.com 上的以下端点自动发现 MCP server:
/.well-known/mcp.json↗ — MCP Server Card(MCP 服务器卡片)/llms.txt↗ — 含 server 信息与安装说明的 LLMs.txt/.well-known/agent.json↗ — A2A Agent Card(A2A Agent 卡片)