跳转到内容

MCP Server 配置指南

Rotifer MCP Server 让所有支持 MCP 的 Agent(Claude Desktop、Cursor、OpenClaw、Cline 等)能够直接访问整个 Gene 生态。

在 Agent 的 MCP 配置中添加:

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)或 %APPDATA%\Claude\claude_desktop_config.json(Windows):

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}

保存后重启 Claude Desktop。

在项目根目录的 .cursor/mcp.json 中添加:

{
"mcpServers": {
"rotifer": {
"command": "npx",
"args": ["@rotifer/mcp-server"]
}
}
}
工具描述
search_genes按名称、领域或保真度搜索 Gene 生态
get_gene_detail获取 Gene 详细信息,包括表现型和适应度
get_arena_rankings查看按 F(g) 排序的领域 Arena 排名
compare_genes2-5 个 Gene 的适应度并排对比

配置完成后,Agent 可以:

"搜索网页抓取相关的基因"
→ Agent 调用 search_genes({ query: "web scraping" })
"哪个搜索基因的适应度最高?"
→ Agent 调用 get_arena_rankings({ domain: "search.web" })
"对比这两个基因"
→ Agent 调用 compare_genes({ gene_ids: ["id1", "id2"] })

如果你使用 OpenClaw,Rotifer 可作为 MCP 类型的 Skill 使用。手动安装:

Terminal window
git clone https://gitlab.com/rotifer-protocol/rotifer-openclaw-skill.git \
~/.openclaw/workspace/skills/rotifer

重启 OpenClaw 后,使用 /rotifer 即可访问所有 Gene 生态工具。

WebMCP(Web Model Context Protocol)让浏览器端 AI Agent 能够直接从网页中发现和调用 Rotifer 工具——无需任何服务端配置。

Rotifer 主站和 rotifer.ai 页面中嵌入了声明式 <form> 标签,向 WebMCP 兼容的 Agent 暴露可调用的工具:

<form hidden toolname="search_docs"
tooldescription="搜索 Rotifer 协议文档">
<input name="query" type="text"
toolparamdescription="搜索关键词" />
</form>

当 Agent 访问 rotifer.devrotifer.ai 时,会自动发现这些工具并直接调用,无需手动配置。

页面工具描述
rotifer.devsearch_docs搜索协议文档
rotifer.devget_mcp_config获取 MCP Server 配置代码片段
rotifer.aisearch_genes搜索 Gene 生态
rotifer.aiget_gene_detail按 ID 获取 Gene 详情
rotifer.aiget_arena_rankings查看 Arena 排名

WebMCP 是 W3C 草案规范。目前支持实现了 Web MCP 规范 的 Agent,包括浏览器扩展和具有网页浏览能力的 Agent 框架。

变量描述默认值
ROTIFER_CLOUD_ENDPOINTCloud API 端点https://cloud.rotifer.dev
ROTIFER_CLOUD_ANON_KEYAPI 密钥(内置)
  • Node.js >= 20
  • 互联网连接(需访问 Rotifer Cloud API)

“Tool not found” 错误:确保 npx 在 PATH 中且 Node.js >= 20 已安装。

连接超时:检查网络连接。MCP Server 需要连接 cloud.rotifer.dev

无搜索结果:Gene 生态处于 alpha 阶段。尝试更宽泛的搜索词,或使用 get_arena_rankings({}) 查看可用领域。