
Mcp Rs485
io.github.daedalus由 GitHub 帳號 daedalus 發布v0.1.0更新於 Oct 24, 2026
MCP server that exposes RS485 bus connectivity for reading and writing serial data
概覽
讓助理列出序列埠,並在本機開啟、讀取、寫入與關閉 RS485 匯流排連線。
- 可以做什麼
- 這個本機 MCP 伺服器向助理提供 RS485 序列匯流排連線能力。其工具可列出可用序列埠,依可設定的鮑率、同位檢查、停止位元、資料位元與逾時開啟連線,以十六進位字串讀取接收資料,將十六進位資料寫入匯流排,查詢連線狀態與統計資訊,並關閉連線。
- 適用情境
- 適合助理需要與本機連接的 RS485 或 Modbus RTU 裝置通訊的情境,例如讀取感測器暫存器或送出命令訊框。它面向本機硬體操作,而非一般軟體工作。
- 執行需求
- 以本機程序在使用者機器上執行,從 PyPI 安裝 mcp-rs485,透過 stdio 啟動。需要序列埠路徑(例如 /dev/ttyUSB0)以及該機器可存取的 RS485 轉接器或裝置。未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Rs485,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-rs485
MCP server that exposes RS485 bus connectivity for reading and writing serial data.
mcp-name: io.github.daedalus/mcp-rs485
Install
Configuration
Usage
This MCP server exposes RS485 serial bus connectivity through the Model Context Protocol. It allows AI assistants to interact with RS485 devices.
Tools
list_ports: Lists all available serial ports on the systemconnect_rs485: Opens a connection to an RS485 devicedisconnect_rs485: Closes an RS485 connectionread_rs485: Reads data from an open RS485 connectionwrite_rs485: Writes data to an RS485 connectionget_connection_status: Gets the status of an RS485 connection
Example
Development
API
list_ports()
Lists all available serial ports.
Returns: List of port dictionaries with port, description, and hwid.
connect_rs485(port, baudrate=9600, parity="N", stopbits=1, bytesize=8, timeout=1.0)
Opens a connection to an RS485 device.
Parameters:
port: Serial port path (e.g., "/dev/ttyUSB0")baudrate: Communication speed (default: 9600)parity: "N" (none), "E" (even), "O" (odd)stopbits: Number of stop bitsbytesize: Data bits per frametimeout: Read timeout in seconds
Returns: Connection ID string.
read_rs485(connection_id, length=1024)
Reads data from an open RS485 connection.
Parameters:
connection_id: Connection ID from connect_rs485length: Maximum bytes to read
Returns: Hex string of received data.
write_rs485(connection_id, data)
Writes data to an RS485 connection.
Parameters:
connection_id: Connection ID from connect_rs485data: Hex string (e.g., "01 03 00 00 00 0A")
Returns: Number of bytes written.
get_connection_status(connection_id)
Gets connection status and statistics.
Returns: Dictionary with connection state and statistics.
來源:README.md,提交 4e0026a
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分