Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By kisaragi-mochiv0.8.0In 1 marketplace
Sends touch taps and strokes from an M5Stack StackChan desktop robot into Claude Code as channel messages. Requires the official 2025 StackChan kit, flashed with this project's firmware and connected to a gateway on your LAN.
Trending plugins
7-day copy clicks
Connected while the plugin is enabled; Claude calls their tools.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
stackchan, esp32, robotics, touch-events, desktop-robot, hardware-bridge, mcp, channel ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
English | 日本語
An MCP (Model Context Protocol) bridge for the M5Stack official StackChan (2025 Kickstarter shipping kit), letting any LLM client drive the device.
Born out of the stack-chan project community (originated by Shinya Ishikawa in 2021). This repository targets the M5Stack official StackChan kit that grew out of that lineage.
┌─────────────┐ stdio MCP ┌──────────────┐ WebSocket MCP ┌──────────────┐
│ MCP client │ ─────────────────▶ │ gateway │ ──────────────────▶ │ ESP32 (CoreS3│
│ (e.g.Claude)│ ◀───────────────── │ (Python) │ ◀────────────────── │ +StackChan) │
└─────────────┘ │ │ └──────────────┘
│ /capture │ ◀── HTTP POST (JPEG) ──┘
└──────────────┘
From any MCP client (Claude Code / Claude Desktop / others) you can call StackChan operations such as head movement, camera capture, touch sensor reads, and avatar expression switches.
This repository is a monorepo.
| Directory | Contents |
|---|---|
firmware/ | Full git subtree of 78/xiaozhi-esp32. The custom StackChan board lives at firmware/main/boards/stackchan/. |
gateway/ | Python MCP gateway. stdio MCP server (LLM side) + WebSocket MCP client (ESP32 side) + HTTP capture server. |
docs/ | architecture.md: full component diagram, tool name mapping, photo flow, auth, phase roadmap. firmware-sync.md: upstream xiaozhi-esp32 sync playbook. remote-access.md: Tailscale Funnel setup for non-LAN use. |
examples/ | Optional, unmaintained examples. cloudflare-relay/: Cloudflare Workers WebSocket relay for reaching the gateway from outside the local LAN. |
M5Stack official StackChan kit (Kickstarter 2025 shipping version). The firmware in this repository is meant to replace the kit's factory firmware.
| Part | Spec |
|---|---|
| Body | M5Stack CoreS3 (ESP32-S3, 16MB Flash, 8MB PSRAM) |
| Neck servos | SCS0009 ×2 (yaw + pitch, serial bus, TX=GPIO6, RX=GPIO7) |
| Camera | GC0308 (DVP, 320×240) |
| Touch | FT6336 / Si12T |
| Display | ILI9342 (SPI, 320×240) |
A self-built stack-chan (following the original stack-chan project design) may also work as long as the pin assignments and I2C addresses match. Reports and PRs welcome.
| Tool | Description | Status |
|---|---|---|
get_status | Gateway connection state | ✅ |
get_device_info | ESP32 device state (battery / volume / WiFi / etc.) | ✅ |
take_photo(question?) | Capture a frame, save as JPEG, return the path + inline image block | ✅ |
set_volume(volume) | Speaker volume (0-100) | ✅ |
set_brightness(brightness) | Screen brightness (0-100) | ✅ |
set_off_timeout(seconds) | Persistent idle screen-off timeout (0..86400 seconds; default 300, 0 disables). Requires firmware 1.17.0+ | ✅ |
get_off_timeout | Read the persistent screen-off timeout and current screen state. Requires firmware 1.17.0+ | ✅ |
move_head(yaw, pitch, speed?) | Move the neck (servos). pitch is constrained to 5..85 — the M5Stack-recommended operating range. For the wider firmware hard clamp (0..88), use the firmware-side set_head_angles device tool instead. | ✅ |
get_touch_state | Touch sensor state (press / release / stroke / etc.) | ✅ |
get_touch_sensor_enabled | Read whether head-touch detection is enabled. The NVS-backed setting persists across reboot. | ✅ |
set_touch_sensor_enabled(enabled) | Enable or disable head-touch detection. Disabling stops both the firmware local motion response and MCP stackchan/event emission, and persists across reboot. Head-touch is off until enabled. | ✅ |
set_avatar(face) | Switch avatar expression (idle / happy / thinking / sad / surprised / embarrassed), or off to hide the avatar and disable blink so the underlying WiFi config / OTA / settings screens are visible. Any other face brings the avatar back and restores blink. | ✅ |
set_blink(state) | Blink on/off | ✅ |
set_mouth(state) | Mouth open/close (one-shot, held until next call) | ✅ |
set_mouth_sequence(steps) | Queue and play a list of {shape, duration_ms} steps locally for TTS lip-sync — no per-step WebSocket RTT jitter | ✅ |
check_vm_en | Check servo power supply (VM EN HIGH) state | ✅ |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kisaragi-mochi/stackchan-mcp --plugin stackchanmcpPlugins from other owners that cover similar ground