Skip to content

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

4. Verified MCUs

✅ Verified 🟡 Not Verified ❌ Not Supported

MCU ModelIDEOSStatusExample
STM32F103C8T6VSCode+STM32Cube
(CMake)
FreeRTOSView Example
GD32F470ZGT6VSCode+STM32Cube
(CMake)
/View Example
STM32F429ZGT6VSCode+STM32Cube
(CMake)
/View Example
GD32F103C8T6Keil V5/🟡/
STC8052Keil V4//
Ai8051UKeil V4/🟡/

5. More Resources

Released under the MIT License.