Unitree Go2 MCP Server
Unitree Go2 MCP サーバー
Unitree Go2 MCPサーバーは、モデルコンテキストプロトコル(MCP)上に構築されたサーバーであり、ユーザーは大規模言語モデル(LLM)によって解釈される自然言語コマンドを使用してUnitree Go2ロボットを制御できます。これらのコマンドはROS2命令に変換され、ロボットは対応するアクションを実行できます。
要件
Related MCP server: nUR MCP Server
MCP機能
関数のリストはMCPFUNCTIONS.mdにあります。
インストール
1. unitree_ros2環境をセットアップする
https://github.com/unitreerobotics/unitree\_ros2
上記のリンク先のリポジトリで
Step 2: Connect and testまでセットアップを完了する必要があります。
2. このリポジトリをクローンする
git clone https://github.com/lpigeon/unitree-go2-mcp-server.git
cd unitree-go2-mcp-server3. uv設置
uvをインストールするには、次のコマンドを使用します。
curl -LsSf https://astral.sh/uv/install.sh | shまたは
pip install uv仮想環境を作成してアクティブ化する(オプション)
uv venv
source .venv/bin/activate4. MCPサーバーの構成
MCP 設定を mcp.json に設定します。
設定は Go2 に接続された PC で行う必要があることに注意してください。
{
"mcpServers": {
"unitree-go2-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/unitree-go2-mcp-server",
"run",
"server.py"
]
}
}
}Claude Desktop を使用する場合は、次のコマンドを使用して mcp.json を見つけることができます。
macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonLinux(Ubuntu)
claude-desktop-debianを使用するには、Claude Desktop をインストールできます。
code ~/.config/Claude/claude_desktop_config.jsonウィンドウズ
code $env:AppData\Claude\claude_desktop_config.json使い方
1. UNITREE_ROS2_SETUP_SH_PATHを設定します。
server.pyを開き、UNITREE_ROS2_SETUP_SH_PATHを変更します (例:/home/lpigeon/unitree_ros2/setup.sh)
rosbridgeを使用する場合は、rosbridge に接続するために IP とポートを設定する必要があります (オプション)。
server.pyを開き、LOCAL_IP、ROSBRIDGE_IP、ROSBRIDGE_PORTを変更します。(ROSBRIDGE_PORTのデフォルト値は9090です)
2. Go2 ロボットがネットワークに接続されていることを確認します。
ターミナルに次のコマンドを入力します。
ros2 topic list次のトピックが表示されます。
/wirelesscontrollerトピックが表示されない場合は、Go2 ロボットとネットワーク間の接続を確認してください。
3. unitree-go2-mcp-serverインポートした AI システムを実行します。
4. 「Go2 ロボットを 0.5 m/s の速度で 3 秒間前進させる」と入力します。
5. Go2 ロボットの動きを確認します。
6. やりたいことを入力して、楽しんでください!
文脈理解
「Go2 は疲れているようです」のようなコマンドを入力すると、LLM はこれを文脈に応じて解釈し、ロボットには休憩や何らかのストレッチが必要であることを理解します。
簡単なタスク
このタスクは、Unitree Go2 ロボットの障害物回避、方向変更、ユーザーインタラクション機能を紹介する包括的なデモタスクです。
貢献
貢献を歓迎します!
タイプミスの修正、新しい機能の追加、改善の提案など、どのような場合でもご協力をお願いいたします。
このプロジェクトに貢献する方法の詳細については、貢献ガイドラインに従ってください。
Available Tools
12 toolsdanceD
Inputs: no named parameters.
get_topicsD
Inputs: no named parameters.
greetD
Inputs: no named parameters.
jump_forwardD
Inputs: no named parameters.
loveD
Inputs: no named parameters.
pounceD
Inputs: no named parameters.
pub_wirelesscontrollerD
Inputs: keys (required), linear_x (required), linear_y (required), pitch (required), +2 more.
shake_handsD
Inputs: no named parameters.
sit_downD
Inputs: no named parameters.
stand_up_from_a_fallD
Inputs: no named parameters.
stopD
Inputs: no named parameters.
stretchD
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
The tools have some distinct purposes like movement (jump_forward, pounce, sit_down) and social interactions (greet, shake_hands), but there is overlap and ambiguity. For example, 'dance', 'love', and 'stretch' are vague and could be confused with other expressive or movement actions, making it unclear when to use one over another.
Naming is inconsistent with mixed conventions: some use verb_noun (e.g., 'jump_forward', 'sit_down', 'stand_up_from_a_fall'), others are single verbs or nouns (e.g., 'dance', 'greet', 'love', 'stop'), and one uses an abbreviation ('pub_wirelesscontroller'). This lack of pattern makes the set harder to navigate and predict.
With 12 tools, the count is reasonable for a robot control server, covering various actions from basic movements to social behaviors. It's slightly on the higher side but still manageable, as each tool appears to serve a specific function in the domain of robot interaction and control.
The tool set covers expressive and movement actions for a robot, but there are notable gaps. For instance, it lacks core navigation tools (e.g., move, turn) and status queries (e.g., get_battery, get_pose), which are essential for comprehensive robot control. The surface is functional but incomplete for advanced agent workflows.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
Remote MCP server to control your Android phone from AI assistants with per-app permissions.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Python-based server that enables AI assistants to control robots by integrating the Model Context Protocol (MCP) with ROS 2, allowing for natural language commands that translate into robot movement via the /cmd\_vel topic.84-
- FlicenseCqualityDmaintenanceA Model Context Protocol server that enables natural language interactive control of Universal Robots collaborative robots, allowing users to control robot motion, monitor status, and execute programs through direct commands to large language models.397-
- AlicenseNot gradedqualityDmaintenanceA robot-control MCP server enabling LLMs to control Unitree robots and DJI Tello drones with mock and hardware backends, built-in routines, and sequence execution.12MIT
- FlicenseNot gradedqualityCmaintenanceControls Autonomous Mobile Robots (AMRs) through natural language via MQTT and an LLM bridge, enabling navigation and system commands.1-