Cover image
Try Now
2025-02-27

用于机器人和自动化的MCP服务器

3 years

Works with Finder

1

Github Watches

0

Github Forks

8

Github Stars

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    5 (1)
    Avatar
    user_ZuhrxQxM
    2025-04-18

    I am thoroughly impressed with the robot-mcp-server created by showkeyjar. The seamless integration and user-friendly interface make it a top choice for managing MCP applications. The project on GitHub showcases exceptional coding and innovation. Highly recommended for anyone looking to streamline their server management efficiently!