Skip to main content
Glama
Unitree Go2 MCP Server
by lpigeon

Servidor Unitree Go2 MCP

ROS 2Insignia estática

El servidor MCP de Unitree Go2 es un servidor basado en el Protocolo de Contexto de Modelo (MCP) que permite a los usuarios controlar el robot Unitree Go2 mediante comandos de lenguaje natural interpretados por un Modelo de Lenguaje Grande (LLM). Estos comandos se traducen en instrucciones ROS2, lo que permite al robot realizar las acciones correspondientes.

Requisitos

  • Robot Unitree Go2

  • Ubuntu 20.04 o 22.04

  • Entorno ROS2 : Humble (recomendado) o Foxy

Related MCP server: nUR MCP Server

Funciones MCP

Puede encontrar la lista de funciones en MCPFUNCTIONS.md .

Instalación

1. Configurar el entorno unitree_ros2

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

  • Debe completar la configuración hasta Step 2: Connect and test en el repositorio vinculado anteriormente.

2. Clonar este repositorio

git clone https://github.com/lpigeon/unitree-go2-mcp-server.git
cd unitree-go2-mcp-server

3. Instalación uv

  • Para instalar uv , puedes utilizar el siguiente comando:

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

o

pip install uv
  • Crear entorno virtual y activarlo (Opcional)

uv venv
source .venv/bin/activate

4. Configuración del servidor MCP

Establezca la configuración de MCP en mcp.json.

Tenga en cuenta que la configuración debe realizarse en el PC conectado al Go2.

{
    "mcpServers": {
        "unitree-go2-mcp-server": {
            "command": "uv",
            "args": [
              "--directory",
              "/ABSOLUTE/PATH/TO/PARENT/FOLDER/unitree-go2-mcp-server",
              "run",
              "server.py"
            ]
        }
    }
}

Si usa Claude Desktop, puede encontrar mcp.json usando el siguiente comando:

  • Sistema operativo Mac

code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Linux (Ubuntu)

Puedes instalar Claude Desktop para utilizar claude-desktop-debian .

code ~/.config/Claude/claude_desktop_config.json
  • Ventanas

code $env:AppData\Claude\claude_desktop_config.json

Cómo utilizar

1. Establezca UNITREE_ROS2_SETUP_SH_PATH .

  • Abra server.py y cambie su UNITREE_ROS2_SETUP_SH_PATH (por ejemplo, /home/lpigeon/unitree_ros2/setup.sh )

Si usa rosbridge , necesita configurar IP y puerto para conectarse a rosbridge (opcional).

  • Abra server.py y cambie LOCAL_IP , ROSBRIDGE_IP y ROSBRIDGE_PORT . (El valor predeterminado de ROSBRIDGE_PORT es 9090 ).

2. Compruebe que el robot Go2 esté conectado a la red.

Escriba el siguiente comando en la terminal.

ros2 topic list

Deberías ver el siguiente tema:

/wirelesscontroller

Si no ve el tema, verifique la conexión entre el robot Go2 y la red.

3. Ejecute cualquier sistema de IA que haya importado unitree-go2-mcp-server .

4. Escribe "Haz que el robot Go2 se mueva hacia adelante a una velocidad de 0,5 m/s durante 3 segundos".

5. Verifique el movimiento del robot Go2.

6. Escribe lo que quieres hacer y ¡disfruta!

Comprensión contextual

Cuando escribes un comando como "Parece que el Go2 se está cansando", el LLM lo interpreta contextualmente, entendiendo que el robot podría necesitar un descanso o algún tipo de estiramiento.

Tarea sencilla

Esta tarea es una tarea de demostración integral que muestra las capacidades de evitación de obstáculos, cambio de dirección e interacción del usuario del robot Unitree Go2.

Contribuyendo

¡Las contribuciones son bienvenidas!
Ya sea que esté corrigiendo un error tipográfico, agregando una nueva función o sugiriendo mejoras, su ayuda es apreciada.
Siga las pautas de contribución para obtener más detalles sobre cómo contribuir a este proyecto.

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
      -