Logotipo de 使用MCP的SO-ARM100机器人控制

使用MCP的SO-ARM100机器人控制

Comunidad
IliaLarchenko

A simple MCP server for the SO-ARM100 control

EditorIliaLarchenko
Repositoriorobot_MCP
IdiomaPython
Forks
20
Estrellas
85
Herramientas disponibles
0
Tipo de transportestdio, streamable-http
Categorías
LicenciaApache-2.0
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    使用MCP的SO-ARM100机器人控制 ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    85 estrellas y 20 forks en el repositorio enlazado.

SO-ARM100 Robot Control with MCP

Watch the full tutorial

A companion repository to my video about MCP server for the robot:

  • MCP Server for LLM-based AI agents (Claude Desktop, Cursor, Windsurf, etc.) to control the robot
  • Direct keyboard control for manual operation
  • CLI AI Agent can use it directly to control the robot with Claude, Gemini or GPT model

If you want to know more about MCP refer to the official MCP documentation

This repository suppose to work with the SO-ARM100 / 101 robots. Refer to lerobot SO-101 setup guide for the detailed instructions on how to setup the robot.

Update! Now it partially supports LeKiwi (only arm, the mobile base control through MCP is TBD). I also added a simple agent that uses MCP server to control the robot. It supports Claude, Gemini and GPT models. In my experience Claude is the best and GPT is not so good, Gemini is in between.

After I released the video and this repository, LeRobot released a significant update of the library that breaks the compatibility with the original code.

If you want to use the original code and exactly follow the video, please use this release.

Quick Start

1. Install Dependencies

For simplicity I use simple pip instead of uv that is often recommended in MCP tutorials - it works just fine.

bash
python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
pip install -r requirements.txt

It may be required to install lerobot separately, just use the official instructions from the lerobot repository

2. Connect Your Robot

  • Connect SO-ARM100 via USB
  • Update config.py with your serial port for so-arm (e.g., /dev/tty.usbmodem58FD0168731) or robot_ip for lekiwi (e.g., 192.168.1.1)
  • Connect cameras and update config.py with the correct indices and names (for lekiwi only names are important)

3. Use the robot

🔍 Check Robot Status and Calibration:

bash
python check_positions.py

This will show you the current robot state without actual control. Move your robot manually to make sure it is properly calibrated and configured.

After the latest update, lerobot is using the normalized joints states instead of degrees. You can update MOTOR_NORMALIZED_TO_DEGREE_MAPPING in config.py to match your robot calibration. You will need to update these values every time you recalibrate the robot.

🎮 Manual Keyboard Control:

bash
python keyboard_controller.py

Now you can try to control the robot manually using the keyboard. Test it before moving on to the MCP step, to make sure it works properly.

🛠️ MCP server in the dev mode

bash
mcp dev mcp_robot_server.py

Final test step - to debug the MCP server, use the UI to connect to it and try to send some requests.

🤖 AI Agent Control (MCP Server):

WARNING: using MCP server itself is free, but it requires MCP client that will send requests to some LLM. Generally it is not free - and controlling the robot with MCP can become expensive, as it sends multiple agentic requests with images that use a lot of tokens. Make sure you understand and control your token usage and corresponding costs before doing it. The actual cost depends on the client and models you use, and it is your responsibility to monitor and control it.

bash
mcp run mcp_robot_server.py --transport SELECTED_TRANSPORT

Supports: stdio, sse, streamable-http

Now your server can be added to any MCP client.

Connecting MCP Clients

Different clients can support different transports, you can choose the one that works best for you. The functionality is the same.

STDIO transport

Add to your MCP configuration:

json
{
  "mcpServers": {
    "SO-ARM100 robot controller": {
      "command": "/path/to/.venv/bin/python",
      "args": ["/path/to/mcp_robot_server.py"]
    }
  }
}

SEE transport

Run the server in terminal with the SSE transport:

bash
mcp run mcp_robot_server.py --transport sse

Add to your MCP configuration:

json
{
  "mcpServers": {
    "SO-ARM100 robot controller": {
      "url": "http://127.0.0.1:3001/sse"
    }
  }
}

Streamed-HTTP transport

It is suppose to be a replacement for SSE but currently not so many clients support it.

Run the server in terminal with the Streamed-HTTP transport:

bash
mcp run mcp_robot_server.py --transport streamable-http

Add to your MCP configuration:

json
{
  "mcpServers": {
    "SO-ARM100 robot controller": {
      "url": "http://127.0.0.1:3001/mcp"
    }
  }
}

Using the robot with MCP

Now you can go to you Client and it should be able to control the robot when you give it the natural language instructions.

Using the Agent

Start the MCP server with the SSE transport:

bash
mcp run mcp_robot_server.py --transport sse

Now you can use the AI agent to control the robot with natural language instructions.

Configuration

Create a .env file in the project root with your API keys:

bash
# API Keys (at least one required)
ANTHROPIC_API_KEY=your_anthropic_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
OPENAI_API_KEY=your_openai_api_key_here

# MCP Server Configuration (optional)
MCP_SERVER_IP=127.0.0.1
MCP_PORT=3001

Basic Usage

bash
python agent.py

Advanced Usage

bash
# Use Gemini instead of Claude
python agent.py --model gemini-2.5-flash

# Override API key
python agent.py --api-key your_api_key_here

# Enable image viewer window
python agent.py --show-images

# Increase thinking budget for better reasoning
python agent.py --thinking-budget 2048

# Custom MCP server location
python agent.py --mcp-server-ip 192.168.1.100 --mcp-port 3002

Supported Models (examples)

Claude (Anthropic):

  • claude-3-7-sonnet-latest (default)
  • All models support thinking, streaming, and multimodal tool results

Gemini (Google):

  • gemini-2.5-flash
  • gemini-2.5-pro
  • Use 2.5+ models as they support thinking feature

GPT (OpenAI):

  • gpt-4o and variants
  • The rest of the models mostly don't support thinking or tool calling.

Overall I didn't manage to get good results with GPT models.

Parameters

  • --model: LLM model to use (default: claude-3-7-sonnet-latest)
  • --api-key: API key override (uses .env file by default)
  • --show-images: Display robot camera images in a window
  • --thinking-budget: Thinking tokens budget (default: 1024, 0 to disable)
  • --thinking-every-n: Use thinking every N steps (default: 3)
  • --mcp-server-ip: MCP server IP address (default: 127.0.0.1)
  • --mcp-port: MCP server port (default: 3001)

Cost Considerations

Token Usage:

  • Claude counts MCP images in input tokens (more expensive for vision tasks)
  • Gemini doesn't count MCP images in tokens (token usage will be displayed only for text)
  • Thinking tokens add to the cost but improve reasoning quality

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "ilialarchenko-robot_mcp": {
      "command": "",
      "args": []
    }
  }
}

Usa el MCP de 使用MCP的SO-ARM100机器人控制 con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado 使用MCP的SO-ARM100机器人控制, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Puedes ejecutar MCP localmente en tu dispositivo o conectarte a la URL de un servidor MCP remoto.

Opción 1: Usa el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade 使用MCP的SO-ARM100机器人控制 como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de 使用MCP的SO-ARM100机器人控制.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "ilialarchenko-robot_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "robot_MCP"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de 使用MCP的SO-ARM100机器人控制 y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de 使用MCP的SO-ARM100机器人控制.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar 使用MCP的SO-ARM100机器人控制 para ayudarme con esta tarea?
使用MCP的SO-ARM100机器人控制
Claro. Lo he leído.
Esto he encontrado usando 使用MCP的SO-ARM100机器人控制.

Opción 2: Añade la URL de un servidor MCP

Usa esta opción si 使用MCP的SO-ARM100机器人控制 ya está alojado en un servidor remoto o si tu equipo quiere un conector compartido al que puedan acceder varios usuarios.

1

Abre Conectores MCP

En TypingMind, ve a Plugins, abre Conectores MCP y elige Añadir URL.

  1. Abre TypingMind en tu navegador.
  2. Ve a Plugins.
  3. Abre Conectores MCP.
  4. Haz clic en Añadir URL.
Formulario de TypingMind para añadir la URL de un servidor MCP personalizado
2

Pega la URL del servidor

Introduce la URL de tu servidor en el campo URL del servidor. Añade un nombre de conexión, una descripción, un icono, cabeceras HTTP personalizadas o la configuración del cliente OAuth si el servidor los requiere.

  1. Pega la URL de tu servidor en el campo URL del servidor.
  2. Introduce un nombre para la conexión de 使用MCP的SO-ARM100机器人控制.
  3. Añade una descripción y un icono si quieres que sea más fácil de identificar.
  4. Añade cabeceras HTTP personalizadas o los datos del cliente OAuth si el servidor requiere autenticación.
3

Crea la conexión

Haz clic en Crear conexión, vuelve a la lista de plugins y comprueba que la nueva conexión MCP esté activa.

  1. Haz clic en Crear conexión.
  2. Vuelve a la lista de conectores MCP.
  3. Comprueba que la conexión de 使用MCP的SO-ARM100机器人控制 aparezca como activa.
  4. Actualiza la lista de plugins si la conexión no aparece de inmediato.
4

Cambia de modelo sin volver a conectar

Inicia un chat con tu modelo preferido, activa las herramientas de 使用MCP的SO-ARM100机器人控制 desde Plugins y cambia de modelo cuando lo necesites. La conexión MCP seguirá disponible en el espacio de trabajo de TypingMind.

  1. Inicia un nuevo chat en TypingMind.
  2. Selecciona el modelo de IA que quieras usar.
  3. Activa las herramientas de 使用MCP的SO-ARM100机器人控制 desde Plugins.
  4. Pide al modelo que use la herramienta cuando sea necesario.
  5. Cambia a otro modelo de IA y reutiliza la misma conexión MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar 使用MCP的SO-ARM100机器人控制 para ayudarme con esta tarea?
使用MCP的SO-ARM100机器人控制
Claro. Lo he leído.
Esto he encontrado usando 使用MCP的SO-ARM100机器人控制.

Preguntas frecuentes

¿Para qué sirve el servidor MCP 使用MCP的SO-ARM100机器人控制?

使用MCP的SO-ARM100机器人控制 es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP 使用MCP的SO-ARM100机器人控制 con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar 使用MCP的SO-ARM100机器人控制 con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de 使用MCP的SO-ARM100机器人控制 con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con 使用MCP的SO-ARM100机器人控制 conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP 使用MCP的SO-ARM100机器人控制 a TypingMind?

Puedes conectar 使用MCP的SO-ARM100机器人控制 en TypingMind con el conector MCP local o añadiendo la URL de un servidor MCP remoto. Usa el conector local cuando el servidor necesite acceder a archivos, aplicaciones o recursos privados de tu dispositivo, y una URL de servidor cuando el servidor MCP esté alojado de forma remota.

¿Qué herramientas ofrece el servidor MCP 使用MCP的SO-ARM100机器人控制 en TypingMind?

使用MCP的SO-ARM100机器人控制 ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP 使用MCP的SO-ARM100机器人控制?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si 使用MCP的SO-ARM100机器人控制 requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇