Skip to main content

Serial MCP Server

A Model Context Protocol (MCP) server for serial port communication, enabling LLMs to interact with hardware devices via serial connections.

Features

  • List available serial ports
  • Open/close serial port connections
  • Read and write data to serial ports
  • Control serial signals (DTR, RTS, CTS, DSR, DCD)
  • Support for custom baud rates, data bits, stop bits, and parity
  • JSON and Markdown output formats

Installation

# Install from PyPI (when published)
pip install serial-mcp-new

Usage

Running the Server

# Run with stdio transport (default, for local use)
serial-mcp

Config in Claude Code

  "mcpServers": {
    "ssh-mcp": {
      "command": "C:\\Users\\DELL\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python311\\Scripts\\serial-mcp.exe",
      "args": [],
      "env": {}
    }
  },

Available Tools

Tool Description
serial_list_ports List all available serial ports
serial_open Open a serial port connection
serial_close Close a serial port connection
serial_write Write data to a serial port
serial_read Read data from a serial port
serial_set_signals Set control signal states
serial_get_signals Read current signal states
serial_list_connections List all active connections

Example Workflow

  1. List available ports:

    serial_list_ports()
    
  2. Open a connection:

    serial_open(port="COM3", baud_rate=115200)
    
  3. Write data:

    serial_write(connection_id="conn_1", data="Hello, device!")
    
  4. Read response:

    serial_read(connection_id="conn_1", timeout=2.0)
    
  5. Close when done:

    serial_close(connection_id="conn_1")
    

Dependencies

  • Python 3.10+
  • mcp >= 1.6.1
  • pyserial >= 3.5
  • pydantic >= 2.0.0

License

MIT

Metadata

Release files for serial-mcp-new 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serial-mcp-new 1.0.1
File Size Uploaded Provenance
serial_mcp_new-1.0.1.tar.gz 9.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for serial-mcp-new 1.0.1
File Interpreter ABI Platform
serial_mcp_new-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / serial_mcp_new-1.0.1.tar.gz

Download URL serial_mcp_new-1.0.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f86183ec5136dee21ac00eb00e2fdcd3da62e33d15d7dd20948a0c0ccb4bdba8
BLAKE2b-256 checksum
How to use checksums
39b51b02921a98f3c184aae99769b9060062d6c3fb6915ec1da76304a3186e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / serial_mcp_new-1.0.1-py3-none-any.whl

Download URL serial_mcp_new-1.0.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e616f3bcd8a528bcb2b588194574d988f58363469abbd526e1580e24051b8a3c
BLAKE2b-256 checksum
How to use checksums
3a7ed2c7d503a397ab8a50f65889c0c195e85c6ce2518c9296e4808268aa33ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for serial-mcp-new 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page