Skip to main content

robot-mcp-server

为大语言模型提供机器人控制能力的MCP服务器

Python Version License

功能特性

  • ✅ 支持宇树机器人运动控制
  • ✅ 支持大疆无人机起飞/降落控制
  • ✅ 基于Model Context Protocol (MCP) 的标准接口
  • 📡 实时状态监控
  • 🛑 紧急停止机制
  • 📊 完善的日志记录

安装指南

前置要求

  • Python 3.10+
  • 宇树机器人SDK2 (自动安装)
  • 大疆Tello无人机SDK (自动安装)
# 创建并激活虚拟环境
python -m venv .venv
.venv\Scripts\activate

# 安装依赖
pip install git+https://github.com/unitreerobotics/unitree_sdk2_python.git
pip install djitellopy

快速开始

from modelcontextprotocol import Client

# 连接MCP服务
client = Client.connect_stdio()

# 控制宇树机器人
client.call_tool("unitree_connect", {})
client.call_tool("unitree_move", {"velocity": 1.5})

# 控制大疆无人机
client.call_tool("dji_connect", {})
client.call_tool("dji_takeoff", {"height": 2.0})

API文档

宇树机器人工具

  • unitree_connect: 建立机器人连接
  • unitree_move(velocity: float, duration: float): 控制移动
  • unitree_stop(): 紧急停止

大疆无人机工具

  • dji_connect: 建立无人机连接
  • dji_takeoff(height: float): 起飞到指定高度
  • dji_land(): 安全降落

开发指南

项目结构:

├── src/
│   ├── main.py          # 主服务入口
│   ├── unitree_adapter.py # 宇树机器人适配器
│   └── dji_adapter.py   # 大疆无人机适配器
├── examples/            # 使用示例
├── requirements.txt     # 依赖列表
└── README.md            # 项目文档

贡献

欢迎提交Issue和PR,请遵循现有代码风格并添加适当测试。

授权协议

MIT License

Metadata

Release files for iflow-mcp_showkeyjar-robot-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_showkeyjar-robot-mcp-server 0.1.0
File Size Uploaded
iflow_mcp_showkeyjar_robot_mcp_server-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_showkeyjar-robot-mcp-server 0.1.0
File Interpreter ABI Platform
iflow_mcp_showkeyjar_robot_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / iflow_mcp_showkeyjar_robot_mcp_server-0.1.0.tar.gz

Download URL iflow_mcp_showkeyjar_robot_mcp_server-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ef7c40b52b085aca32535c688983a34124f7c2b76dbe047d6218072f147cef2
BLAKE2b-256 checksum
How to use checksums
5540814e2313ed98c15d81f626c803d123a6f847fb871f75dbe75c39b7f2cc06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_showkeyjar_robot_mcp_server-0.1.0-py3-none-any.whl

Download URL iflow_mcp_showkeyjar_robot_mcp_server-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0082be74b84ccc074e2dc799abea7df3e7a30cd3608e630f6ae61f1df707ab95
BLAKE2b-256 checksum
How to use checksums
e23f6473abe37f06b25e96529dcba32b9dedf9e2860fe7ec9327fabf10251daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page