Skip to main content
Glama
Unitree Go2 MCP Server
by lpigeon

Unitree Go2 MCP 서버

로오스 2정적 배지

Unitree Go2 MCP 서버는 모델 컨텍스트 프로토콜(MCP) 기반으로 구축된 서버로, 사용자가 LLM(Large Language Model)으로 해석된 자연어 명령을 사용하여 Unitree Go2 로봇을 제어할 수 있도록 합니다. 이러한 명령은 ROS2 명령어로 변환되어 로봇이 해당 동작을 수행할 수 있도록 합니다.

요구 사항

  • 유니트리 고2 로봇

  • 우분투 20.04 또는 22.04

  • ROS2 환경 : Humble (권장) 또는 Foxy

Related MCP server: nUR MCP Server

MCP 기능

MCPFUNCTIONS.md 에서 함수 목록을 찾을 수 있습니다.

설치

1. unitree_ros2 환경 설정

https://github.com/unitreerobotics/unitree\_ros2

  • 위에 링크된 저장소에서 Step 2: Connect and test 까지 설정을 완료해야 합니다.

2. 이 저장소를 복제합니다.

지엑스피1

3. uv 설치

  • uv 설치하려면 다음 명령을 사용하면 됩니다.

curl -LsSf https://astral.sh/uv/install.sh | sh

또는

pip install uv
  • 가상 환경을 생성하고 활성화합니다(선택 사항)

uv venv
source .venv/bin/activate

4. 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을 찾을 수 있습니다.

  • 맥OS

code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • 리눅스(우분투)

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 로봇을 3초 동안 0.5m/s의 속도로 전진시키세요."라고 입력하세요.

5. Go2 로봇의 움직임을 확인하세요.

6. 하고 싶은 일을 입력하고 즐기세요!

문맥적 이해

"Go2가 피곤해 보인다"와 같은 명령을 입력하면 LLM은 이를 문맥에 맞게 해석합니다. 즉, 로봇에게 휴식이나 스트레칭이 필요하다는 것을 이해합니다!

간단한 작업

이 과제는 Unitree Go2 로봇의 장애물 회피, 방향 전환, 사용자 상호 작용 기능을 보여주는 포괄적인 데모 과제입니다.

기여하다

기여를 환영합니다!
오타를 수정하든, 새로운 기능을 추가하든, 개선 사항을 제안하든, 여러분의 도움에 감사드립니다.
이 프로젝트에 기여하는 방법에 대한 자세한 내용은 기여 지침을 따르세요.

Available Tools

12 tools
danceD

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

    D1.6/5.0

    Scored across 12 tools

    Disambiguation3/5

    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 Consistency2/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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
      -
    • F
      license
      C
      quality
      D
      maintenance
      A 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.
      39
      7
      -