Skip to main content

An MCP server that exposes RS232 serial port connectivity

Project description

mcp-rs232

An MCP server that exposes RS232 serial port connectivity

PyPI Python Ruff

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 details
  • serial://port/{port_name} - Get details about a specific port

Tools

  • list_ports_tool() - Returns list of available serial ports
  • open_port(port, baud_rate, ...) - Opens a serial connection
  • close_port(port) - Closes a serial connection
  • read_port(port, size, timeout) - Reads data from port (hex encoded)
  • write_port(port, data) - Writes hex-encoded data to port
  • get_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_rs232-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_rs232-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for mcp_rs232-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba7e88293f6ed79f3b07e00065bc01c31cbd64718990d51c50b29ac6c190c005
MD5 634ba9ac029bb2fa2550ffade5fd8aa8
BLAKE2b-256 aeac908cc503269d791ad7e4fe4fabdddddef7c8bd0de029602bfcfdc2759df0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_rs232-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-rs232

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mcp_rs232-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f907b4645ca46879b3c62ec3a0b9106efb6d73d5fb3f1ed9bab9b9778aabe8b
MD5 36dc455edc3acb641158d78bb62d88d4
BLAKE2b-256 22fdf7ffca2ffe261cd5bfbcf0c9e3f4bbb3b8b736f2497be6ea64d516834278

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page