
P340 机械臂的 MCP 服务器
概览
一个模型上下文协议(MCP)服务器实现,为 ElephantRobotics MyCobot 系列机械臂(特别优化于 ultraArmP340)提供自然语言控制。该服务器通过对话式 AI 控制机械臂,使机器人操作对所有人开放。 - 🤖 支持多种 MyCobot 型号(ultraArmP340、MyCobot280、MyCobot320)- 🎮 通过 MCP 协议进行自然语言控制 - 🔧 用于无物理硬件开发的仿真模式 - 🛡️ 安全功能包括紧急停止 - 📊 实时状态监控 服务器提供以下控制工具: - - 连接机械臂 - 输入:model(字符串):机器人模型 - 输入:port(字符串):串口 - 返回:连接状态 - - 获取当前机器人状态 - 返回:当前角度、坐标、夹持器/泵状态、运动状态 - - 将关节移动到特定角度 - 输入:角度(数组):每个关节的目标角度 - 输入:速度(int):移动速度 - 返回:移动......
概述(AI 翻译)
英文 |中文
概述
一个模型上下文协议(MCP)服务器实现,为 ElephantRobotics MyCobot 系列机械臂(特别优化于 ultraArmP340)提供自然语言控制。该服务器通过对话式 AI 控制机械臂,使机器人操作对所有人开放。
特色
- 🤖 支持多种 MyCobot 型号(ultraArmP340、MyCobot280、MyCobot320)
- 🎮 通过MCP协议进行自然语言控制
- 🔧 用于无物理硬件开发的仿真模式
- 🛡️ 安全功能,包括紧急制动
- 📊 实时状态监控
组成部分
工具
服务器提供以下控制工具:
连接管理
- connect_robot - 连接到机械臂
- 输入:
model(字符串):机器人模型 - 输入:
port(字符串):串口 - 退货:连接状态
状态监控
- get_robot_status - 获取当前机器人状态
- 回波:电流角度、坐标、夹持器/泵状态、运动状态
移动控制
- move_to_angles - 将关节移动到特定角度
- 输入:
angles(数组):每个关节的目标角度 - 输入:
speed(int):移动速度
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
RobotArm MCP P340
Overview
A Model Context Protocol (MCP) server implementation that provides natural language control for ElephantRobotics MyCobot series robotic arms (especially optimized for ultraArmP340). This server enables controlling robotic arms through conversational AI, making robotics accessible to everyone.
Features
- 🤖 Support for multiple MyCobot models (ultraArmP340, MyCobot280, MyCobot320)
- 🎮 Natural language control via MCP protocol
- 🔧 Simulation mode for development without physical hardware
- 🛡️ Safety features including emergency stop
- 📊 Real-time status monitoring
Components
Tools
The server provides the following control tools:
Connection Management
- connect_robot - Connect to a robotic arm
- Input:
model(string): Robot model - Input:
port(string): Serial port - Returns: Connection status
- Input:
Status Monitoring
- get_robot_status - Get current robot status
- Returns: Current angles, coordinates, gripper/pump state, movement status
Movement Control
-
move_to_angles - Move joints to specific angles
- Input:
angles(array): Target angles for each joint - Input:
speed(int): Movement speed - Returns: Movement confirmation
- Input:
-
move_to_coords - Move to specific coordinates
- Input:
coords(array): Target coordinates - Input:
speed(int): Movement speed - Returns: Movement confirmation
- Input:
End Effector Control
- control_gripper - Control gripper open/close
- control_pump - Control suction pump on/off
System Commands
- go_zero - Return robot to zero position
- emergency_stop - Emergency stop all movements
Advanced Motion Control
- execute_action_sequence - Execute custom action sequences
- Input:
sequence_name(string): Descriptive name for the sequence - Input:
actions(array): List of actions, each containing:type: Action type (“angles”, “coords”, “gripper”, “pump”, “wait”)angles/coords: Target position (based on type)speed: Movement speed (optional, default 50)duration: Action duration in seconds (optional)gripper_action: “open” or “close” (for gripper type)pump_action: “on” or “off” (for pump type)- Input:
default_interval(float): Default interval between actions (optional, default 0.5s)
- Returns: Execution status with completed actions count
- Note: This tool enables complex behaviors like cat playing, circle drawing, dancing, and custom gestures through action sequences
- Input:
Resources
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"mycobot": {
"command": "Fill in the python path under the virtual environment folder where robotarm-mcp-p340 is installed",
"args": ["-u", "-m", "mycobot_mcp"],
"env": {
"SIMULATE": "1"
}
}
}
}
Example:
{
"mcpServers": {
"mycobot": {
"command": "D:\\anaconda3\\envs\\test-robotarm\\python.exe",
"args": ["-u", "-m", "mycobot_mcp"],
"env": {
"SIMULATE": "1"
}
}
}
}