serial-mcp
If you are the rightful owner of serial-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Serial-MCP is a robust serial communication server built with FastMCP framework, providing a reliable interface for serial port communication with features like message buffering, error handling, and connection management.
Serial-MCP is a model context protocol server that allows agents to communicate with devices connected to the serial port of a computer. It is built using the FastMCP framework and is currently tested only on macOS. The server supports asynchronous serial communication, message buffering, and comprehensive error handling. It also provides tools for initializing serial connections, sending and receiving messages, and managing connection states. The server can be configured using environment variables, and it logs detailed information about its operations. Serial-MCP is designed to be integrated with platforms like Claude Desktop, providing a seamless interface for serial communication tasks.
Features
- Asynchronous Serial Communication: Built on asyncio for efficient I/O operations
- Message Buffering: Configurable buffer size with timestamp support
- Connection Management: Automatic port detection and connection handling
- Error Handling: Comprehensive error detection and reporting
- Environment Configuration: Support for environment variables and runtime configuration
Tools
delay
Wait for a specified number of seconds.
init_serial
Initialize a serial connection with specified parameters.
send_message
Send a message through the serial connection and optionally wait for a response.
read_message
Read messages from the buffer.
list_serial_ports
List all available serial ports on the system.
get_serial_status
Get the current status of the serial connection.
configure_serial
Configure the serial connection after initialization.
close_serial
Close the current serial connection.
help
Get detailed instructions on how to use the Serial MCP server.