Skip to main content
ClaudeWave
ES, Spanish
78 / MCP Servers

xiaozhi-esp32

An MCP-based chatbot | 一个基于MCP的聊天机器人

  • 31.8k estrellas
  • 7.4k forks
  • 690 issues abiertos
  • Lenguaje: C++
  • Licencia: MIT
  • actualizado

Instalación

Claude Code CLI
git clone https://github.com/78/xiaozhi-esp32
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Clone https://github.com/78/xiaozhi-esp32 and follow its README for install instructions.

Nota editorial

XiaoZhi is an open-source, MCP-based voice chatbot firmware written in C++ for ESP32 microcontrollers (ESP32-C3, ESP32-S3, and ESP32-P4), designed to run on over 70 supported hardware platforms including M5Stack CoreS3, Waveshare ESP32-S3-Touch-AMOLED, and LILYGO T-Circle-S3. The firmware connects to large language models such as Qwen and DeepSeek through a streaming ASR plus LLM plus TTS pipeline, enabling real-time voice interaction with offline wake-word detection via ESP-SR and speaker recognition via 3D-Speaker. MCP operates on two levels: a device-side layer that controls onboard hardware like speakers, LEDs, servos, and GPIO pins, and a cloud-side layer that extends model capabilities to smart home control, PC desktop operation, knowledge search, and email. Communication runs over WebSocket or MQTT plus UDP using the OPUS audio codec, with OLED and LCD displays supporting emoji output. A notable detail is that wake words, fonts, emojis, and chat backgrounds can all be customized through an online web tool called the Custom Assets Generator. The project targets hardware hobbyists and embedded developers building DIY AI voice assistants.

README

Resumen de MCP Servers

README completo en GitHub

An MCP-based Chatbot

(English | 中文 | 日本語)

Introduction

👉 Human: Give AI a camera vs AI: Instantly finds out the owner hasn't washed hair for three days【bilibili】

👉 Handcraft your AI girlfriend, beginner's guide【bilibili】

As a voice interaction entry, the XiaoZhi AI chatbot leverages the AI capabilities of large models like Qwen / DeepSeek, and achieves multi-terminal control via the MCP protocol.

Recent Updates

  • The project now requires ESP-IDF v6.0.1 or later. ESP-IDF release/v6.1 is the recommended SDK branch. ESP-IDF 5.x is no longer supported. The current matrix contains 171 variants; ESP32-S31 builds require IDF 6.1 or later.

  • MQTT and BluFi cryptographic code has migrated to PSA Crypto. IDF 6 component splits and third-party dependency compatibility have also been addressed.

  • Audio pipeline concurrency, MQTT/UDP packet validation, and release-matrix selection have been hardened.

  • ESP32-P4 Rev1 and Rev3 are both supported on IDF 6 with ESP-SR 2.4.7.

Features Implemented
  • Wi-Fi, wired Ethernet, USB RNDIS, and ML307/EC801E or NT26 Cat.1 4G networking; supported boards can switch between Wi-Fi and 4G

  • Offline voice wake-up with ESP-SR, including customizable wake words

  • Two communication transports: WebSocket and MQTT + UDP

  • Opus audio streaming with conventional streaming ASR + LLM + TTS pipelines and Realtime end-to-end voice models; AEC-capable hardware supports realtime full-duplex interaction

  • Speaker recognition, identifies the current speaker 3D Speaker

  • OLED / LCD displays with emoji and rich expression support, plus camera vision input on supported boards

  • Battery display and power management

  • 39 interface languages, with localized voice prompts where available and English fallback

  • ESP32, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-S3, and ESP32-P4 chip platforms

  • Wi-Fi provisioning through hotspot or BluFi

  • Device-side MCP for device control (Speaker, LED, Servo, GPIO, etc.)

  • Cloud-side MCP to extend large model capabilities (smart home control, PC desktop operation, knowledge search, email, etc.)

  • Customizable wake words, fonts, emojis, and chat backgrounds with online web-based editing (Custom Assets Generator)

Hardware

Breadboard DIY Practice

See the Feishu document tutorial:

👉 "XiaoZhi AI Chatbot Encyclopedia"

Breadboard demo:

Breadboard Demo

Supports 138 Board Directories and 171 Release Variants (Partial List)
  • LiChuang ESP32-S3 Development Board

  • Espressif ESP32-S3-BOX-3

  • M5Stack CoreS3

  • M5Stack AtomS3R + Echo Base

  • Magic Button 2.4

  • Waveshare ESP32-S3-Touch-AMOLED-1.8

  • LILYGO T-Circle-S3

  • XiaGe Mini C3

  • CuiCan AI Pendant

  • WMnologo-Xingzhi-1.54TFT

  • SenseCAP Watcher

  • ESP-HI Low Cost Robot Dog

Software

Firmware Flashing

For beginners, it is recommended to use the firmware that can be flashed without setting up a development environment.

The firmware connects to the official xiaozhi.me server by default. Personal users can register an account to use the Qwen real-time model for free.

👉 Beginner's Firmware Flashing Guide

Development Environment
  • Cursor or VSCode

  • Install the ESP-IDF plugin. The minimum SDK is ESP-IDF v6.0.1; ESP-IDF release/v6.1 is recommended. ESP-IDF 5.x is not supported.

  • Linux is better than Windows for faster compilation and fewer driver issues

  • This project uses Google C++ code style, please ensure compliance when submitting code

Use the release/v6.1 branch rather than the v6.1 release tag: an ESP32-C3 Wi-Fi initialization failure with that tag is reported in #2344. After switching SDK revisions, run git submodule update --init --recursive in the ESP-IDF directory, source its export.sh, and run idf.py fullclean in this project before rebuilding.

Developer Documentation

Large Model Configuration

If you already have a XiaoZhi AI chatbot device and have connected to the official server, you can log in to the xiaozhi.me console for configuration.

👉 Backend Operation Video Tutorial (Old Interface)

Related Open Source Projects

For server deployment on personal computers, refer to the following open-source projects:

Other client projects using the XiaoZhi communication protocol:

Custom Assets Tools:

About the Project

This is an open-source ESP32 project, released under the MIT license, allowing anyone to use it for free, including for commercial purposes.

Topics
chatbotesp32mcp
Preguntas frecuentes

Lo que la gente pregunta sobre xiaozhi-esp32

¿Qué es 78/xiaozhi-esp32?

78/xiaozhi-esp32 es mcp servers para el ecosistema de Claude AI. An MCP-based chatbot | 一个基于MCP的聊天机器人 Tiene 31.8k estrellas en GitHub y su última actualización registrada es del 2026-10-23.

¿Cómo se instala xiaozhi-esp32?

Puedes instalar xiaozhi-esp32 clonando el repositorio (https://github.com/78/xiaozhi-esp32) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar 78/xiaozhi-esp32?

Nuestro agente de seguridad ha analizado 78/xiaozhi-esp32 y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene 78/xiaozhi-esp32?

78/xiaozhi-esp32 es mantenido por 78. La última actividad registrada en GitHub es del 2026-10-23, con 690 issues abiertos.

¿Hay alternativas a xiaozhi-esp32?

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

¿Mantienes este repo? Muestra su Trust Score en tu README

La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.

ClaudeWave Trust Score for 78/xiaozhi-esp32
Markdown (README)
[![ClaudeWave Trust Score for 78/xiaozhi-esp32](https://claudewave.com/api/badge/78-xiaozhi-esp32)](https://claudewave.com/en/repo/78-xiaozhi-esp32)
HTML
<a href="https://claudewave.com/en/repo/78-xiaozhi-esp32"><img src="https://claudewave.com/api/badge/78-xiaozhi-esp32" alt="ClaudeWave Trust Score for 78/xiaozhi-esp32" width="320" height="64"></a>

Qué significa la insignia y cómo se calcula la puntuación

Alternativas

Ver todas
Web del proyecto
https://xiaozhi.me