1. Welcome to emMCP
emMCP (Easy MCU MCP) is an adaptation library for rapid development based on UART-MCP. It provides a simple and easy-to-use API to help developers quickly connect MCUs with AI models for MCP interaction.
The UART-MCP protocol is a UART-based communication protocol primarily used for MCP interaction between MCU and AI models, with JSON-formatted content structure. During development, developers often spend significant time handling low-level tasks such as UART serial port adaptation, protocol parsing, and data format conversion.
emMCP provides a set of highly-encapsulated APIs that abstract complex low-level operations (serial port initialization, MCP command packing/parsing, data validation, exception handling, etc.). Developers only need to call the encapsulated interfaces to complete operations like "establishing connection between MCU and module," "sending MCP commands," and "receiving MCP commands," significantly reducing development difficulty and shortening the development cycle.
2. Features
- Customizable MCP tools for AI agents (configurable count, default 4)
- Supports active wake-up of XiaoAn AI devices
- Supports configurable baud rate (default 115200)
- Supports voice volume control
- Built-in lightweight state machine with freely customizable callbacks
- Built-in MCP tool management
- Memory and Flash usage (minimum): RAM: 62 Bytes, Flash: 1708 Bytes
Memory consumption varies with the number of defined MCP tools. Monitor your MCU's memory usage.
3. Compatible XiaoAn AI Firmware Version
- Firmware V3.2 (Beta): Download
4. Verified MCUs
✅ Verified 🟡 Not Verified ❌ Not Supported
| MCU Model | IDE | OS | Status | Example |
|---|---|---|---|---|
| STM32F103C8T6 | VSCode+STM32Cube (CMake) | FreeRTOS | ✅ | View Example |
| GD32F470ZGT6 | VSCode+STM32Cube (CMake) | / | ✅ | View Example |
| STM32F429ZGT6 | VSCode+STM32Cube (CMake) | / | ✅ | View Example |
| GD32F103C8T6 | Keil V5 | / | 🟡 | / |
| STC8052 | Keil V4 | / | ❌ | / |
| Ai8051U | Keil V4 | / | 🟡 | / |

