reachy-mcp
by MisterRat
README.md
# reachy-mcp
MCP server that exposes **every** endpoint of the Reachy Mini daemon REST API as a
tool, so any LLM (or you, via curl) can drive the robot.
88 tools, generated from the official OpenAPI spec — one tool per REST endpoint,
nothing left out.
## Quick start
### Option A — pull the GitHub-built image (Portainer / any host)
Pushing to `main` builds the image and pushes it to GHCR via GitHub Actions:
```
ghcr.io/<your-username>/reachy-mcp:latest
```
In Portainer: **Apps → Create container** (or use the `docker-compose.yml` as a
stack), set the image above, publish port `8345`, and set `REACHY_BASE_URL` to
the machine running the daemon:
| daemon location | REACHY_BASE_URL |
|---|---|
| daemon on the same host as Docker | `http://host.docker.internal:8000` |
| robot on the LAN | `http://<robot-ip>:8000` |
Public repo: GHCR pulls need no credentials. Private repo: add your GitHub
username + a fine-grained PAT (read packages) as registry credentials in
Portainer.
### Option B — build locally
```bash
cd reachy-mcp
docker compose up -d --build
```
The MCP server listens on **port 8345**, path `/mcp` (streamable HTTP).
## Connecting a client
Example OpenWebUI / generic streamable-HTTP MCP config:
```
http://<this-box>:8345/mcp
```
The server waits for the daemon at startup (30 retries × 4 s), so it's safe to
start it before the robot/sim is up.
## The tools
- **daemon** – `daemon_status`, `daemon_start`, `daemon_stop`, `daemon_restart`,
`hardware_id`, `robot_name`, `robot_set_name`, `robot_app_lock_status`,
`daemon_dashboard` (raw dashboard HTML)
- **move** – `move_goto` (smooth moves: head pose / body yaw / antennas,
minjerk|linear|ease_in_out|cartoon), `move_set_target` (instant), `move_stop`,
`move_running`, `move_wake_up`, `move_goto_sleep`, `move_list_recorded`,
`move_play_recorded`
- **state** – `state_full` (all sections on demand), `state_head_pose`,
`state_imu`, `state_doa`, `state_body_yaw`, `state_antenna_positions`
- **motors** – `motors_status`, `motors_set_mode`
- **media** – `media_acquire` / `media_release`, `media_play_sound`,
`media_stop_sound`, `media_list_sounds`, `media_upload_sound` (downloads from
a URL and posts it to the robot), `media_delete_sound`,
`media_clear_incoming_audio`, `media_status`
- **tracking / face** – `tracking_enable` (weight), `tracking_disable`,
`tracking_face`, `wobbling_enable`, `wobbling_disable`
- **nfc** – `nfc_status`, `nfc_read_tag`, `nfc_write`, `nfc_erase`, `nfc_dump`,
`nfc_set_enabled`
- **volume** – `volume_get`, `volume_set`, `volume_test_sound`,
`microphone_volume_get`, `microphone_volume_set`
- **apps** – `apps_start`, `apps_start_no_evict`, `apps_stop_current`,
`apps_restart_current`, `apps_current_status`, `apps_list_available`,
`apps_list_available_by_kind`, `apps_install`, `apps_remove`, `apps_update`,
`apps_check_updates`, `apps_job_status`, `apps_get_startup_app`,
`apps_set_startup_app`, `apps_install_private_space`
- **hf-auth** – `hf_auth_status`, `hf_auth_oauth_start`, `hf_auth_oauth_cancel`,
`hf_auth_oauth_begin`, `hf_auth_oauth_callback`, `hf_auth_oauth_status`,
`hf_auth_oauth_configured`, `hf_auth_oauth_device_start`,
`hf_auth_oauth_device_status`, `hf_auth_oauth_device_cancel`,
`hf_auth_refresh_relay`, `hf_auth_relay_status`, `hf_auth_save_token`,
`hf_auth_delete_token`, `hf_auth_central_robot_status`
- **audio** – `audio_apply_config` (JSON string of param pairs),
`audio_read_parameter`
- **kinematics** – `kinematics_info`, `kinematics_stl` (base64, 40 KB cap),
`kinematics_urdf` (base64)
- **telemetry** – `telemetry_get`, `telemetry_set`
- **camera** – `camera_specs`
## Conventions
- Every tool returns a compact JSON string. Success = the daemon's JSON
response verbatim; failure = `{"ok": false, "status": ..., "detail": ...}`
or `{"ok": false, "error": ...}` — the server itself never crashes on a
daemon error.
- Angles are **radians** (head pose, body yaw). Antenna values are `[-1, 1]`,
positive = up.
- `move_goto` returns a `uuid` — pass it to `move_stop` to interrupt.
- **Not available over REST** (SDK/WebRTC only, by design of the daemon): TTS
and live camera frames. Poll `state_full` for live data; use the dashboard
(`http://<daemon>:8000/docs` / the web app) for video.
## Environment
| var | default | meaning |
|---|---|---|
| `REACHY_BASE_URL` | `http://localhost:8000` | daemon base URL |
| `MCP_PORT` | `8345` | MCP server port |
| `REACHY_TOKEN` | *(empty)* | bearer token, only if your daemon requires auth |
## Development
```bash
pip install -r requirements.txt
REACHY_BASE_URL=http://<daemon>:8000 python3 reachy_mcp_server.py
```
`reachy_mcp_server.py` is **generated** from `openapi.json` by `generate.py`:
```bash
python3 generate.py openapi.json -o reachy_mcp_server.py
```
If the daemon's spec changes (new firmware), download the new
`openapi.json`, tweak `DOCS`/`FLATTEN` in `generate.py` for any brand-new
endpoints (most endpoints need no tweaks — they're auto-generated), and
regenerate. `SKIP` hides endpoints you don't want exposed.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues