An MCP server that exposes RS232 serial port connectivity
Project description
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_rs232-0.1.0.tar.gz.
File metadata
- Download URL: mcp_rs232-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7e88293f6ed79f3b07e00065bc01c31cbd64718990d51c50b29ac6c190c005
|
|
| MD5 |
634ba9ac029bb2fa2550ffade5fd8aa8
|
|
| BLAKE2b-256 |
aeac908cc503269d791ad7e4fe4fabdddddef7c8bd0de029602bfcfdc2759df0
|
Provenance
The following attestation bundles were made for mcp_rs232-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-rs232
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_rs232-0.1.0.tar.gz -
Subject digest:
ba7e88293f6ed79f3b07e00065bc01c31cbd64718990d51c50b29ac6c190c005 - Sigstore transparency entry: 1190684859
- Sigstore integration time:
-
Permalink:
daedalus/mcp-rs232@5788e01f6b9a62f23ca781125ae7ad453d6623ce -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5788e01f6b9a62f23ca781125ae7ad453d6623ce -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_rs232-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_rs232-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f907b4645ca46879b3c62ec3a0b9106efb6d73d5fb3f1ed9bab9b9778aabe8b
|
|
| MD5 |
36dc455edc3acb641158d78bb62d88d4
|
|
| BLAKE2b-256 |
22fdf7ffca2ffe261cd5bfbcf0c9e3f4bbb3b8b736f2497be6ea64d516834278
|
Provenance
The following attestation bundles were made for mcp_rs232-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/mcp-rs232
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_rs232-0.1.0-py3-none-any.whl -
Subject digest:
0f907b4645ca46879b3c62ec3a0b9106efb6d73d5fb3f1ed9bab9b9778aabe8b - Sigstore transparency entry: 1190684862
- Sigstore integration time:
-
Permalink:
daedalus/mcp-rs232@5788e01f6b9a62f23ca781125ae7ad453d6623ce -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5788e01f6b9a62f23ca781125ae7ad453d6623ce -
Trigger Event:
release
-
Statement type: