让 Claude、Cursor、Windsurf 等 AI 编程助手直接调用 RoboParts 选型引擎,在对话中完成机器人零部件的智能选型与兼容性分析。
Model Context ProtocolMCP (Model Context Protocol) 是 Anthropic 推出的开放协议,用于让 AI 模型与外部工具/数据源进行标准化交互。RoboParts MCP Server 将平台的选型引擎、零部件数据库、兼容性分析等能力封装为 MCP 工具,使 AI 编程助手能够在对话中直接调用这些能力。
接入后,您只需用自然语言描述需求(如"推荐人形机器人的执行器"),AI 助手便会自动调用 search_components 工具,返回匹配的零部件列表。无需手动构造 HTTP 请求,开发效率大幅提升。
当前 RoboParts MCP Server 提供 5 个工具,覆盖零部件搜索、详情查询、兼容性检查、场景推荐和参数口径规范等核心场景。
以下 5 个 MCP 工具可供 AI 编程助手调用,每个工具包含名称、功能描述和参数说明。
将 RoboParts MCP Server 添加到您的 AI 编程工具中。推荐使用下方「远程接入」——无需下载代码、无需 API Key,复制即用。
{
"mcpServers": {
"roboparts": {
"url": "https://roboparts.cc/mcp"
}
}
}
适用于已原生支持 streamable-HTTP 的客户端(Cursor、Windsurf、VS Code 等)。 基础检索与兼容性校验无需 API Key 即可直接调用。
{
"mcpServers": {
"roboparts": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://roboparts.cc/mcp"]
}
}
}
Claude Desktop 尚未原生支持远程 MCP,需经开源桥接包
mcp-remote 转接(npx 自动拉取,无需预装)。
如需离线或自行改造,可克隆仓库后指向本地入口文件。
先执行:
git clone https://github.com/lm203688/roboparts.git
,随后把下方配置中的 /path/to/roboparts 替换为你的实际克隆路径。
{
"mcpServers": {
"roboparts": {
"command": "node",
"args": ["/path/to/roboparts/mcp-server/index.js"],
"env": {
"ROBOPARTS_API_KEY": "gtk_your_api_key_here"
}
}
}
}
配置文件路径:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"roboparts": {
"command": "node",
"args": ["/path/to/roboparts/mcp-server/index.js"],
"env": {
"ROBOPARTS_API_KEY": "gtk_your_api_key_here"
}
}
}
}
在项目根目录下创建 .cursor/mcp.json 文件,Cursor 会自动加载 MCP Server。
{
"mcpServers": {
"roboparts": {
"command": "node",
"args": ["/path/to/roboparts/mcp-server/index.js"],
"env": {
"ROBOPARTS_API_KEY": "gtk_your_api_key_here"
}
}
}
}
在项目根目录下创建 .windsurf/mcp.json 文件,Windsurf 会自动识别并加载。
输入自然语言查询,直接调用选型引擎 API 查看效果。需要有效的 API Key。
如果您更习惯使用 Python,可以通过 HTTP 直接调用选型引擎 API。以下是一个完整的示例。
# RoboParts 智能选型引擎 - Python SDK 示例 import requests API_BASE = "https://roboparts.cc" API_KEY = "gtk_your_api_key_here" # 替换为您的 API Key # 1. 智能选型推荐 response = requests.post( f"{API_BASE}/api/selection/engine", headers={"Content-Type": "application/json"}, json={ "api_key": API_KEY, "application": "humanoid", "requirements": { "torque_min": 10, "weight_max": 500, "voltage": 48, "ros_required": True, }, "categories": ["actuators", "sensors"], "count_per_category": 3, } ) result = response.json() if result.get("success"): for category, items in result.get("recommendations", {}).items(): print(f"\n=== {category} ===") for item in items: print(f" {item['name']} ({item['component_id']})") print(f" 评分: {item.get('score', 'N/A')} | 价格: {item.get('price', 'N/A')}") else: print(f"Error: {result.get('error', 'Unknown')}") # 2. 查询余额 balance_resp = requests.get( f"{API_BASE}/api/credits/balance?key={API_KEY}" ) print(f"\n当前积分: {balance_resp.json().get('credits', 0)}")
除直接连 MCP 外,RoboParts 把能力封装成结构化 Skills 清单,可被 WorkBuddy / Dify / Coze / Cursor 等框架解析后自动注册工具。机器可读清单:/skills/manifest.json · 说明文档:/skills/README.md。
RoboParts 把兼容性数据层整理成一份可直接被具身智能 / Sim-to-Real 训练流水线消费的结构化数据集,让 MoziSim、Isaac 这类训练平台无需手工解析网页即可直接拉取。
数据集含三部分:零件目录(规格 + 标准标签 + 证据等级)、兼容性关系(按 protocol / electrical / mechanical / software 四维裁决、仅保留有证据的关系)、互操作性标准登记表。
免鉴权、随主库实时更新;也可通过 MCP 资源 resources/list 自动发现(资源 URI 即下方地址)。
GET https://roboparts.cc/api/training_dataset.json
兼容性关系由规则引擎现算(非实验室实测),数据集 meta 字段如实标注生成时间与口径。接入训练流水线前,请结合厂商原始数据手册核验关键参数。