Skip to main content
Glama
CSOAI-ORG

Robotics Control MCP Server

by CSOAI-ORG

机器人控制 MCP 服务器

由 MEOK AI Labs 开发 | meok.ai

面向 AI 智能体的物联网与机器人接口。通过串口和 HTTP 控制硬件设备——包括 Arduino、树莓派、3D 打印机、CNC 机床、舵机控制器和自定义机器人。HARVI 人形机器人项目的一部分。

工具

工具

描述

list_devices

自动发现串口 + 列出已注册的 HTTP 设备

send_command

向任何设备(串口或 HTTP)发送文本命令

read_sensor

读取传感器数值,支持自动 key=value 解析

set_servo

将指定通道的舵机设置为特定角度 (0-180)

run_gcode

向 CNC 机床、3D 打印机或机械臂发送 G 代码

emergency_stop

软件 + 硬件紧急停止(拦截所有命令)

安装

# Core
pip install mcp pyserial

# Optional: for HTTP device communication
pip install httpx

使用方法

运行服务器

python server.py

Claude Desktop 配置

{
  "mcpServers": {
    "robotics": {
      "command": "python",
      "args": ["/path/to/robotics-control-mcp/server.py"]
    }
  }
}

调用示例

发现已连接的设备:

Tool: list_devices
Output: {"discovered_serial": [{"port": "/dev/cu.usbmodem1401", "description": "Arduino Mega 2560", "manufacturer": "Arduino"}], "discovered_count": 1}

向 Arduino 发送命令:

Tool: send_command
Input: {"device": "/dev/cu.usbmodem1401", "command": "GET_STATUS", "baudrate": 9600}
Output: {"status": "ok", "response": ["STATUS: READY", "TEMP: 23.5", "BATTERY: 87%"]}

读取传感器:

Tool: read_sensor
Input: {"device": "/dev/cu.usbmodem1401", "sensor_id": "temperature"}
Output: {"status": "ok", "response": ["temperature=23.5"], "parsed_values": {"temperature": 23.5}}

控制舵机:

Tool: set_servo
Input: {"device": "/dev/cu.usbmodem1401", "channel": 0, "angle": 90.0, "speed": 50}
Output: {"status": "ok", "servo": {"channel": 0, "angle": 90.0, "speed": 50}}

向 3D 打印机发送 G 代码:

Tool: run_gcode
Input: {"device": "/dev/ttyUSB0", "gcode": "G28\nG1 X50 Y50 Z10 F3000\nG1 X100 Y100 F1500", "baudrate": 115200}
Output: {"total_lines": 3, "successful": 3, "failed": 0}

向 HTTP 设备(ESP32、树莓派)发送命令:

Tool: send_command
Input: {"device": "http://192.168.1.100/api/command", "command": "LED_ON"}
Output: {"status": "ok", "response": {"led": "on", "brightness": 255}}

紧急停止:

Tool: emergency_stop
Input: {"device": "/dev/ttyUSB0"}
Output: {"status": "activated", "emergency_stop": true, "message": "EMERGENCY STOP ACTIVATED. All commands blocked."}

解除紧急停止:

Tool: emergency_stop
Input: {"release": true}
Output: {"status": "released", "emergency_stop": false, "message": "Emergency stop released. Commands enabled."}

安全特性

  • 紧急停止:软件级终止开关,激活时会拦截发送给所有设备的所有命令

  • 硬件 E-stop:向物理设备发送 M112(串口)或 ESTOP(HTTP)指令

  • G 代码验证:仅接受有效的 G 代码字符

  • G 代码行数限制:免费版每次调用最多 50 行,以防止失控作业

  • 舵机范围限制:角度验证范围为 0-180 度,通道范围为 0-31

  • 超时设置:所有串口/HTTP 调用均具有可配置的超时时间

  • 无持久连接:每个命令都会打开并关闭其自身的连接

支持的设备

设备类型

连接方式

示例

Arduino / Teensy

串口 USB

/dev/cu.usbmodem*, COM3

3D 打印机 (Marlin)

串口 USB

/dev/ttyUSB0, 115200 波特率

CNC 机床 (GRBL)

串口 USB

/dev/ttyUSB0, 115200 波特率

ESP32 / ESP8266

HTTP WiFi

http://192.168.1.x/api

树莓派

HTTP

http://pi.local:5000/cmd

舵机控制器

串口

PCA9685, Pololu Maestro

自定义机器人

串口/HTTP

任何基于文本的协议

HARVI 集成

本服务器是 MEOK AI Labs 的 HARVI 人形机器人项目的一部分。HARVI 使用带有 LeRobot ML 推理的 SO-101 舵机臂,通过此 MCP 服务器连接,以实现 AI 驱动的远程操作和自主控制。

定价

等级

限制

价格

免费版

50 次调用/天,50 行 G 代码/调用

$0

专业版

无限制 + 持久连接 + 批量 G 代码

$12/月

企业版

定制 + 多设备编排 + 安全认证

联系我们

许可证

MIT

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CSOAI-ORG/robotics-control-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server