mcp-rs232
An MCP server that exposes RS232 serial port connectivity
mcp-name: io.github.daedalus/mcp-rs232
Install
pip install mcp-rs232
Usage
from mcp_rs232 import list_ports, open_port, close_port, read_port, write_port
# List available ports
ports = list_ports()
print(ports)
# Open a port
open_port("COM1", baud_rate=9600)
# Write data (hex encoded)
write_port("COM1", "48656c6c6f") # "Hello"
# Read data (returns hex encoded)
data = read_port("COM1")
# Close the port
close_port("COM1")
CLI
mcp-rs232 --help
API
Resources
serial://ports- Lists all available serial ports with their detailsserial://port/{port_name}- Get details about a specific port
Tools
list_ports_tool()- Returns list of available serial portsopen_port(port, baud_rate, ...)- Opens a serial connectionclose_port(port)- Closes a serial connectionread_port(port, size, timeout)- Reads data from port (hex encoded)write_port(port, data)- Writes hex-encoded data to portget_port_config(port)- Returns current port configuration
Development
git clone https://github.com/daedalus/mcp-rs232.git
cd mcp-rs232
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
Release files for mcp-rs232 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_rs232-0.1.0.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_rs232-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / mcp_rs232-0.1.0.tar.gz
| Download URL | mcp_rs232-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba7e88293f6ed79f3b07e00065bc01c31cbd64718990d51c50b29ac6c190c005
|
|
BLAKE2b-256 checksum How to use checksums |
aeac908cc503269d791ad7e4fe4fabdddddef7c8bd0de029602bfcfdc2759df0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logRelease files / mcp_rs232-0.1.0-py3-none-any.whl
| Download URL | mcp_rs232-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f907b4645ca46879b3c62ec3a0b9106efb6d73d5fb3f1ed9bab9b9778aabe8b
|
|
BLAKE2b-256 checksum How to use checksums |
22fdf7ffca2ffe261cd5bfbcf0c9e3f4bbb3b8b736f2497be6ea64d516834278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency log