


Build an ESP32 AI voice robot with XiaoZhi and MCP
Desk, Medium
XiaoZhi is an open-source ESP32 voice chatbot that talks to large models and controls devices through MCP; the community uses it as the brain for robot dogs and desk bots.
It supports 170+ board variants, needs ESP-IDF 6.x, and lists builds like the ESP-HI low-cost robot dog. MCP tools let the model move servos or toggle hardware.
Hardware & cost: An ESP32-S3 board with mic, speaker and screen, often $15-40.
Difficulty: Medium.
Agent install prompt (paste into Claude Code, Cursor or Codex): "Clone https://github.com/78/xiaozhi-esp32, install ESP-IDF 6.x, build for my board, flash it, and add an MCP tool that moves a servo when I ask."
Source: 78/xiaozhi-esp32 on GitHub — https://github.com/78/xiaozhi-esp32 (facts checked against the project README, Oct 2026; prices vary by region).
Quick answers
- What do you need to build an ESP32 AI voice robot with XiaoZhi and MCP?
- An ESP32-S3 board with mic, speaker and screen, often $15-40.
- How hard is it to build an ESP32 AI voice robot with XiaoZhi and MCP?
- Medium.
Ideas to try with it
Our ideas, not the builder's claims.
- Use it as the voice brain for a robot dog or desk bot
- Ask it to turn on a lamp through a device-side MCP tool
- Give it a custom wake word and personality
1 more ideaShow fewer
- Hook it to a local model server so voice stays on your network
- Last commit
- 2026-11-01
- Builder
- 78
- Repo
- 78/xiaozhi-esp32, 32,540 stars
- Built with
- ESP32
Guides: How to set up Anki Vector with wire-pod (2026) · Give your AI agent a robot body · Codex and ChatGPT hardware projects people actually built · Cheap ESP32 robot projects you can build · Robots you can build with AI · AI hardware for robot and agent builds
Parts notes for this device are in the Hermes Workshop catalog.
What to build next
Builds that share a board, robot or agent with this one.
Caduceus: a voice robot body for Hermes Agent, wired up over MCPAlso for MCP
El Tucu: a 4-servo robot arm that AI agents can rent by the minuteAlso for MCP
Hermes Gadget: an ESP32 or Raspberry Pi voice body for your Hermes AgentAlso built on ESP32
Give Reachy Mini a real-time voice and personalityAlso for MCP
JARVIS Desk Bot: a talking ESP32 desk robot for your AI agentAlso built on ESP32
Control any ROS robot from Claude or ChatGPT with ROS MCP ServerAlso for MCP