Serial

A production‑grade MCP server for serial port control with real hardware support, multi‑format data handling, and AI integration.
  • rust

11

GitHub Stars

rust

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "adancurusul-serial-mcp-server": {
      "command": "C:\\\\path\\\\to\\\\serial-mcp-server\\\\target\\\\release\\\\serial-mcp-server.exe",
      "args": [],
      "env": {
        "RUST_LOG": "info"
      }
    }
  }
}

You can run a Serial MCP Server to manage real hardware serial connections from AI-assisted clients. It provides cross‑platform, production‑ready serial control with multiple data formats, robust timeouts, and seamless hardware integration for embedded devices and debugging workflows.

How to use

You will use an MCP client to interact with the Serial MCP Server to discover ports, open a connection, send and receive data, and then close the connection. The server runs locally (stdio mode) and can be started ahead of time so your MCP client can connect to it.

Typical usage flow you can perform with your MCP client:

  1. List available serial ports on the system. 2) Open a connection to the target device with the desired baud rate and settings. 3) Write data to the device and read responses with configurable timeouts. 4) Close the serial connection when done. 5) Use interactive commands to control hardware features such as LEDs, counters, or patterns if your target supports them.

How to install

Prerequisites: you need a Rust toolchain and access to your system’s serial ports.

Install and build the server from source

# Clone and build from source
git clone https://github.com/adancurusul/serial-mcp-server.git
cd serial-mcp-server
cargo build --release

Configure your MCP client to run the server

Set up the MCP client to launch the Serial MCP Server in stdio mode. Use the commands shown for your operating system to point the client at the built executable and enable the log output.

Windows (example path to the executable)
"mcpServers": {
  "serial": {
    "command": "C:\\path\\to\\serial-mcp-server\\target\\release\\serial-mcp-server.exe",
    "args": [],
    "env": {
      "RUST_LOG": "info"
    }
  }
}
macOS/Linux (example path to the executable)
"mcpServers": {
  "serial": {
    "command": "/path/to/serial-mcp-server/target/release/serial-mcp-server",
    "args": [],
    "env": {
      "RUST_LOG": "info"
    }
  }
}

Note: adjust the paths to wherever you built the binary on your system and ensure the console logs are enabled if you need visibility during debugging.


## Available tools

### list\_ports

Discover available serial ports on the system

### open

Open a serial connection with configuration (port, baud rate, parity, stop bits, etc.)

### write

Send data to the connected serial device

### read

Read data from the serial device with a timeout

### close

Close the serial connection cleanly
Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational