serial-mcp

serial-mcp

3.3

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

  1. delay

    Wait for a specified number of seconds.

  2. init_serial

    Initialize a serial connection with specified parameters.

  3. send_message

    Send a message through the serial connection and optionally wait for a response.

  4. read_message

    Read messages from the buffer.

  5. list_serial_ports

    List all available serial ports on the system.

  6. get_serial_status

    Get the current status of the serial connection.

  7. configure_serial

    Configure the serial connection after initialization.

  8. close_serial

    Close the current serial connection.

  9. help

    Get detailed instructions on how to use the Serial MCP server.