mcp-uart
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-uartOpen COM3 at 115200 baud and send AT command"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-uart
Serial Port MCP Server for AI agents. Lets Claude, Cline, Cursor, and other MCP-compatible AI tools talk to UART/serial devices.
Features
11 Tools: list ports, open, write, read, wait (single frame / full response), reconfigure, status, close, monitor start/stop, list encodings, list protocols
12 Encodings: UTF-8, ASCII, Latin-1, GBK, GB2312, GB18030, Big5, Shift_JIS, EUC-KR, Hex, Base64, Binary
6 Protocols: Raw, Line (newline), Custom delimiter, Modbus RTU, Hex frame, SLIP (RFC 1055)
Smart Wait:
serial_waitcollects a full device response (silence detection),serial_wait_framereturns on first frameReal-time Monitor: Auto-opens a terminal window showing TX/RX data live, like a serial assistant
Time-aware Read:
sinceLastReadmode returns only new messages with timing metadataFile Logging:
serial_start_monitorlogs all data to a file, viewable withtail -f
Related MCP server: UART MCP Server
Install
From npm
npm install -g mcp-uartFrom source
git clone https://github.com/yourname/mcp-uart.git
cd mcp-uart
npm install
npm run buildSetup
Claude Code
claude mcp add uart -- mcp-uartOr add to ~/.claude/settings.json:
{
"mcpServers": {
"uart": {
"command": "mcp-uart"
}
}
}Cline (VS Code)
Open Cline -> MCP Servers -> Edit Configuration, add:
{
"mcpServers": {
"uart": {
"command": "mcp-uart"
}
}
}Cursor
Add to Cursor MCP settings:
{
"mcpServers": {
"uart": {
"command": "mcp-uart"
}
}
}From source (not installed globally)
If running from a local clone instead of npm install -g:
{
"mcpServers": {
"uart": {
"command": "node",
"args": ["/absolute/path/to/mcp-uart/dist/index.js"]
}
}
}Usage
Once configured, talk to your AI naturally:
"List available serial ports"
"Open COM3 at 115200 baud with GBK encoding and Modbus RTU protocol"
"Send 01030000000A in hex"
"Wait for the device to finish responding"
"Read any new data since my last read"
"Switch to 9600 baud"
"Close the connection"Tools Reference
Tool | Description |
| Discover available serial ports |
| Open a port (auto-opens monitor terminal) |
| Write data (text/hex/base64) |
| Read buffered messages (supports |
| Wait for complete device response (silence detection) |
| Wait for a single data frame |
| Change settings on the fly |
| View connection status |
| Close a connection |
| Start logging to file |
| Stop file logging |
| List supported encodings |
| List supported protocols |
Standalone Serial Monitor
Run directly from the terminal (no AI needed):
# Global install
serial-monitor COM3 115200 utf8
# From source
node dist/monitor.js COM3 115200 utf8Type and press Enter to send. Ctrl+C to exit.
Supported Encodings
Encoding | Description |
| UTF-8 (default) |
| 7-bit ASCII |
| ISO-8859-1 Western European |
| GBK Simplified Chinese (Windows) |
| GB2312 Simplified Chinese (basic) |
| GB18030 Simplified Chinese (full) |
| Big5 Traditional Chinese |
| Shift_JIS Japanese |
| EUC-KR Korean |
| Hexadecimal string |
| Base64 encoded |
| Raw hex bytes |
Supported Protocols
Protocol | Description |
| No parsing, raw byte stream |
| Newline-delimited ( |
| Custom hex delimiter (e.g. |
| Modbus RTU frame detection by silence gap |
| Extract between configurable start/end markers |
| SLIP RFC 1055 de-framing |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SamyiHu/mcp-uart'
If you have feedback or need assistance with the MCP directory API, please join our Discord server