serial-mcp
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., "@serial-mcpList available serial ports"
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.
๐ serial-mcp
MCP server for serial port communication. Provides tools to open, read, write, and manage serial ports through the Model Context Protocol.
๐ค Written by and for AI.
โจ Features
๐ List available serial ports on the system
โ๏ธ Open ports with configurable baud rate, parity, stop bits, and flow control
๐ Read data by byte count, terminator character, or duration
โ๏ธ Write string or hex data
๐ฅ Send BREAK signals
๐ Monitor port status and control line states
Related MCP server: serial-mcp
๐ฆ Prerequisites
Python 3.10+
uv package manager
๐ Installation
Via PyPI
uvx serial-mcp@latestLocal Clone
git clone https://github.com/davidalo/serial-mcp.git
cd serial-mcp
uvx --from "$(pwd)" serial-mcp๐ Integration
Via PyPI
# Claude Code
claude mcp add serial -- uvx serial-mcp@latest
# Codex CLI
codex mcp add serial -- uvx serial-mcp@latestLocal Clone
git clone https://github.com/davidalo/serial-mcp.git
cd serial-mcp
# Claude Code
claude mcp add serial -- uvx --from "$(pwd)" serial-mcp
# Codex CLI
codex mcp add serial -- uvx --from "$(pwd)" serial-mcp๐ ๏ธ Tools
Tool | Description |
| List available system serial ports |
| Open a serial port with configuration (baud rate, parity, stop bits, etc.) |
| Close an open port |
| Write string or hex data to a port |
| Read N bytes with timeout |
| Read until a terminator character |
| Read continuously for N seconds |
| Send a BREAK signal |
| Get port status and control line states |
| List all currently managed ports |
๐งช Testing with Virtual Ports
Use socat to create virtual serial port pairs for testing:
# Create virtual port pair
socat -d -d pty,raw,echo=0,link=/tmp/ttyV0 pty,raw,echo=0,link=/tmp/ttyV1Then open /tmp/ttyV0 with the MCP server and /tmp/ttyV1 with another terminal program to test communication.
๐ License
MIT
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/davidalo/serial-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server