A professional Model Context Protocol (MCP) server for serial port communication. Provides AI assistants with comprehensive serial communication capabilities for embedded systems, IoT devices, and hardware debugging with real hardware integration. - π Production Ready: Real hardware integration with 5 comprehensive serial communication tools - π Cross-Platform Support: Windows, Linux, macOS with
Add this skill
npx mdskills install adancurusul/serial-mcp-serverProduction-ready serial port communication with 5 well-tested tools for embedded systems and IoT devices
A professional Model Context Protocol (MCP) server for serial port communication. Provides AI assistants with comprehensive serial communication capabilities for embedded systems, IoT devices, and hardware debugging with real hardware integration.
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β MCP Client βββββΊβ Serial MCP βββββΊβ Serial Device β
β (Claude/AI) β β Server β β Hardware β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βΌ
ββββββββββββββββββββ
β Target Device β
β (STM32/Arduino) β
ββββββββββββββββββββ
Hardware Requirements:
Software Requirements:
# Clone and build from source
git clone https://github.com/adancurusul/serial-mcp-server.git
cd serial-mcp-server
cargo build --release
Configure MCP Clients
Add to Claude Desktop configuration file:
Windows Example:
{
"mcpServers": {
"serial": {
"command": "C:\\path\\to\\serial-mcp-server\\target\\release\\serial-mcp-server.exe",
"args": [],
"env": {
"RUST_LOG": "info"
}
}
}
}
macOS/Linux Example:
{
"mcpServers": {
"serial": {
"command": "/path/to/serial-mcp-server/target/release/serial-mcp-server",
"args": [],
"env": {
"RUST_LOG": "info"
}
}
}
}
Other examples for other tools like cursor, claude code etc. please refer to the corresponding tool documentation
We provide a comprehensive STM32 Serial Communication Demo that showcases all capabilities:
# Navigate to the example
cd examples/STM32_demo
# Build and run the firmware
cargo run --release
# Use with MCP server for complete serial communication experience
What the demo shows:
π View STM32 Demo Documentation β
Please list available serial ports on the system
Connect to COM19 with baud rate 115200 for my STM32 device
Send 'H' command to get help menu, then send 'L' to toggle the LED
Read the response from the serial device with 2 second timeout
Please help me test all 5 MCP serial tools with my STM32 board on COM19. Start by listing ports, then connect, send some commands, read responses, and finally close the connection.
All tools tested and validated with real STM32 hardware:
| Tool | Description | Status |
|---|---|---|
list_ports | Discover available serial ports on system | β Production Ready |
open | Open serial connection with configuration | β Production Ready |
write | Send data to connected serial device | β Production Ready |
read | Read data from serial device with timeout | β Production Ready |
close | Close serial connection cleanly | β Production Ready |
β 5/5 Tools - 100% Success Rate with Real Hardware
| Platform | Port Format | Examples |
|---|---|---|
| Windows | COMx | COM1, COM3, COM19 |
| Linux | /dev/ttyXXX | /dev/ttyUSB0, /dev/ttyACM0 |
| macOS | /dev/tty.xxx | /dev/tty.usbserial-1234 |
Current Status: PRODUCTION READY
Thanks to the following open source projects:
This project is licensed under the MIT License. See the LICENSE file for details.
β If this project helps you, please give us a Star!
Install via CLI
npx mdskills install adancurusul/serial-mcp-serverSerial MCP Server is a free, open-source AI agent skill. A professional Model Context Protocol (MCP) server for serial port communication. Provides AI assistants with comprehensive serial communication capabilities for embedded systems, IoT devices, and hardware debugging with real hardware integration. - π Production Ready: Real hardware integration with 5 comprehensive serial communication tools - π Cross-Platform Support: Windows, Linux, macOS with
Install Serial MCP Server with a single command:
npx mdskills install adancurusul/serial-mcp-serverThis downloads the skill files into your project and your AI agent picks them up automatically.
Serial MCP Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.