百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
X

xiaozhi-esp32

> 编程语言
开源

一个基于 MCP 的聊天员 QQMCP

28.5K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个基于 MCP 的聊天员 QQMCP

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 mainline now targets ESP-IDF v6.0 or later, with v6.0.2 as the preferred stable SDK. The previous 157-variant baseline was validated on ESP-IDF v6.0.1; the current matrix contains 171 variants, of which 170 support IDF 6.0.x and the ESP32-S31 variant requires 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.
  • ESP-IDF v5.5 is retained only for documented legacy boards. ESP32-P4 Rev1 and Rev3 are both supported on IDF 6 with ESP-SR 2.4.7; see the ESP-IDF 6.0 Migration Guide for full compatibility and board-validation details.

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:

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. ESP-IDF v6.0.2 is preferred; use a stable v6.0 or later release. ESP-IDF v5.5.2 is retained only for legacy board compatibility
  • 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

Developer Documentation

  • ESP-IDF 6.0 Migration Guide - SDK compatibility, component changes, legacy hardware support, and board validation status
  • Custom Board Guide - Learn how to create custom boards for XiaoZhi AI
  • MCP Protocol IoT Control Usage - Learn how to control IoT devices via MCP protocol
  • MCP Protocol Interaction Flow - Device-side MCP protocol implementation
  • MQTT + UDP Hybrid Communication Protocol Document
  • A detailed WebSocket communication protocol document

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:

  • xinnan-tech/xiaozhi-esp32-server Python server
  • joey-zhou/xiaozhi-esp32-server-java Java server
  • AnimeAIChat/xiaozhi-server-go Golang server
  • hackers365/xiaozhi-esp32-server-golang Golang server

Other client projects using the XiaoZhi communication protocol:

  • huangjunsen0406/py-xiaozhi Python client
  • TOM88812/xiaozhi-android-client Android client
  • 100askTeam/xiaozhi-linux Linux client by 100ask
  • 78/xiaozhi-sf32 Bluetooth chip firmware by Sichuan
  • QuecPython/solution-xiaozhiAI QuecPython firmware by Quectel

Custom Assets Tools:

  • 78/xiaozhi-assets-generator Custom Assets Generator (Wake words, fonts, emojis, backgrounds)

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.

We hope this project helps everyone understand AI hardware development and apply rapidly evolving large language models to real hardware devices.

If you have any ideas or suggestions, please feel free to raise Issues or join our Discord or QQ group: 1095994019

Star History

GitHub Issues· 663 开放

在 GitHub 查看全部
  • #2209

    ESP32-S3 280x240 屏幕。帮孩子修复小智。求 WonderBoy-AI-Buddy 固件

    enhancement更新于 2026年9月17日
  • #2262

    [Bug] ESP32-S3-Box Lite only hears wakeword. Nothing else. 仅限唤醒词。其他什么都没有。

    bug更新于 2026年9月16日
  • #2255

    请问语音内容转发MCP没有携带speakerId

    enhancement更新于 2026年9月13日
  • #2251

    [Bug] Waveshare Touch 1.54: AEC/VAD false triggers and breaks playback when master volume is reduced

    bug更新于 2026年9月12日
  • #2250

    [Board Support]espressif-esp32s31-vocat

    enhancement更新于 2026年9月12日
  • #2105

    xiaozhi.me 有没有 API 或机制,让外部服务(比如我的云服务器)主动发送一段文本给某个在线的设备,触发服务器走 LLM → TTS → 推送语音给机器人?

    enhancement更新于 2026年9月11日
  • #2173

    xiaozhi后台获取的mcp 的ws的token,频繁失效

    question更新于 2026年9月9日
  • #915

    能否提供api支持推送消息

    enhancement更新于 2026年9月9日

> 标签

C++chatbotesp32mcp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言