ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Serial MCP Server

โดย es617รุ่น 0.1.3i★ –iรันบนเครื่อง
ชื่อใน registryio.github.es617/serial-mcp-server

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Let AI agents interact with serial devices — list ports, connect, send, and read.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: SERIAL_MCP_MAX_CONNECTIONS, SERIAL_MCP_PLUGINS, SERIAL_MCP_MIRROR, SERIAL_MCP_MIRROR_LINK, SERIAL_MCP_TOOL_SEPARATOR

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "serial": {
      "command": "uvx",
      "args": [
        "serial-mcp-server"
      ],
      "env": {
        "SERIAL_MCP_MAX_CONNECTIONS": "ใส่ค่าของคุณ",
        "SERIAL_MCP_PLUGINS": "ใส่ค่าของคุณ",
        "SERIAL_MCP_MIRROR": "ใส่ค่าของคุณ",
        "SERIAL_MCP_MIRROR_LINK": "ใส่ค่าของคุณ",
        "SERIAL_MCP_TOOL_SEPARATOR": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add serial --env SERIAL_MCP_MAX_CONNECTIONS='ใส่ค่าของคุณ' --env SERIAL_MCP_PLUGINS='ใส่ค่าของคุณ' --env SERIAL_MCP_MIRROR='ใส่ค่าของคุณ' --env SERIAL_MCP_MIRROR_LINK='ใส่ค่าของคุณ' --env SERIAL_MCP_TOOL_SEPARATOR='ใส่ค่าของคุณ' -- uvx serial-mcp-server

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "serial": {
      "command": "uvx",
      "args": [
        "serial-mcp-server"
      ],
      "env": {
        "SERIAL_MCP_MAX_CONNECTIONS": "ใส่ค่าของคุณ",
        "SERIAL_MCP_PLUGINS": "ใส่ค่าของคุณ",
        "SERIAL_MCP_MIRROR": "ใส่ค่าของคุณ",
        "SERIAL_MCP_MIRROR_LINK": "ใส่ค่าของคุณ",
        "SERIAL_MCP_TOOL_SEPARATOR": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "serial": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "serial-mcp-server"
      ],
      "env": {
        "SERIAL_MCP_MAX_CONNECTIONS": "ใส่ค่าของคุณ",
        "SERIAL_MCP_PLUGINS": "ใส่ค่าของคุณ",
        "SERIAL_MCP_MIRROR": "ใส่ค่าของคุณ",
        "SERIAL_MCP_MIRROR_LINK": "ใส่ค่าของคุณ",
        "SERIAL_MCP_TOOL_SEPARATOR": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • SERIAL_MCP_MAX_CONNECTIONS env
    Maximum simultaneous open serial connections (default 10)
  • SERIAL_MCP_PLUGINS env
    Plugin policy: 'all' or comma-separated plugin names. Unset = disabled.
  • SERIAL_MCP_MIRROR env
    PTY mirror mode: 'off' (default), 'ro' (read-only), or 'rw' (read-write). macOS/Linux only.
  • SERIAL_MCP_MIRROR_LINK env
    Base path for PTY symlinks (default /tmp/serial-mcp when mirror is enabled). Connections get numbered: /tmp/serial-mcp0, /tmp/serial-mcp1, etc.
  • SERIAL_MCP_TOOL_SEPARATOR env
    Tool name separator character (default '.'). Set to '_' for clients that reject dots (e.g. Cursor).

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub es617 ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32464 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 3% ของอีก 32464 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32464 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Serial MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.3) เข้า registry 8 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, yontu

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

yontu

โดย senrecep

Türkçe yazı denetimi: TDK kuralları, yapay zekâ izleri, metin türüne göre üslup.

รันบนเครื่องอัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Serial MCP Server

A stateful serial port Model Context Protocol (MCP) server for developer tooling and AI agents. Works out of the box with Claude Code, VS Code with Copilot, and any MCP-compatible runtime. Communicates over stdio and uses pyserial for cross-platform serial on macOS, Windows, and Linux.

Example: Let Claude Code list available serial ports, connect to your microcontroller, reset it via DTR, and read the boot banner from your hardware.

Demo

Video walkthrough — connecting to a serial device, sending commands, reading responses, and creating plugins.


Why this exists

If you’ve ever copy-pasted commands into screen or minicom, guessed baud rates, toggled DTR to kick a bootloader, and re-run the same test sequence 20 times — this is for you.

You have a serial device. You want an AI agent to talk to it — open a port, send commands, read responses, debug protocols. This server makes that possible.

It gives any MCP-compatible agent a full set of serial tools: listing ports, opening connections, reading, writing, line-oriented I/O, control line manipulation — plus protocol specs and device plugins, so the agent can reason about higher-level device behavior instead of just raw bytes.

The agent calls these tools, gets structured JSON back, and reasons about what to do next — without you manually typing commands into a terminal for every step.

What agents can do with it:

  • Develop and debug — connect to your device, send commands, read responses, and diagnose issues conversationally (boot banners, prompts, error codes).
  • Iterate on new firmware — attach a protocol spec so the agent understands your command set, boot modes, and output format as they evolve.
  • Automate test flows — reset device via DTR, wait for prompt, run a command sequence, validate output.
  • Explore unknown devices — probe command sets, discover prompts, infer message formats.
  • Build serial automation — long-running test rigs, manufacturing bring-up, CI hardware smoke tests.

Who is this for?

  • Embedded engineers — faster iteration on serial protocols, conversational debugging, automated test sequences
  • Hobbyists and makers — interact with serial devices without writing boilerplate; let the agent help reverse-engineer simple protocols
  • QA and test engineers — build repeatable serial test suites with plugin tools
  • Support and field engineers — diagnose serial device issues interactively without specialized tooling
  • Researchers — automate data collection from serial devices, explore device capabilities systematically

Quickstart (Claude Code)

pip install serial-mcp-server

Register the MCP server with Claude Code

claude mcp add serial -- serial_mcp

Then in Claude Code, try:

"List available serial ports and connect to the one on /dev/ttyUSB0 at 115200 baud."


What the agent can do

Once connected, the agent has full serial capabilities:

  • List ports to find available serial devices
  • Open and close connections with configurable baud rate, parity, stop bits, and encoding
  • Read and write data in text, hex, or base64 format
  • Line-oriented I/O — readline and read-until-delimiter for text protocols
  • Control lines — set or pulse DTR and RTS for hardware reset and boot mode entry
  • Flush input and output buffers
  • Attach protocol specs to understand device-specific commands and data formats
  • Use plugins for high-level device operations instead of raw reads/writes
  • Create specs and plugins for new devices so future sessions start "knowing" your protocol
  • PTY mirroring — attach screen, minicom, or custom scripts to the same serial session the agent is using

The agent can coordinate multi-step flows automatically — e.g., toggle reset, wait for prompt, send init sequence, stream output.

At a high level:

Raw Serial → Protocol Spec → Plugin

You can start with raw serial tools, then move up the stack as your device protocol becomes understood and repeatable.


Install (development)

# Editable install from repo root

pip install -e .

Or with uv

uv pip install -e .

MCP is a protocol — this server works with any MCP-compatible client. Below are setup instructions for the most common ones.

Add to Claude Code

# Standard setup

claude mcp add serial -- serial_mcp

Or run as a module

claude mcp add serial -- python -m serial_mcp_server

Enable all plugins

claude mcp add serial -e SERIAL_MCP_PLUGINS=all -- serial_mcp

Enable specific plugins only

claude mcp add serial -e SERIAL_MCP_PLUGINS=mydevice,ota -- serial_mcp

Debug logging

claude mcp add serial -e SERIAL_MCP_LOG_LEVEL=DEBUG -- serial_mcp

Add to VS Code / Copilot

Add to your project's .vscode/mcp.json (or create it):

{

"servers": { "serial": { "type": "stdio", "command": "serial_mcp", "args": [], "env": { "SERIAL_MCP_PLUGINS": "all" } } } }

Adjust env to match your needs — set SERIAL_MCP_PLUGINS to specific plugin names, or add SERIAL_MCP_MIRROR for PTY mirroring.

Add to Cursor

Add to your project's .cursor/mcp.json (or create it). Cursor does not support dots in tool names, so SERIAL_MCP_TOOL_SEPARATOR must be set to _:

{

"mcpServers": { "serial": { "command": "serial_mcp", "args": [], "env": { "SERIAL_MCP_PLUGINS": "all", "SERIAL_MCP_TOOL_SEPARATOR": "_" } } } }

Environment variables

VariableDefaultDescription
SERIAL_MCP_MAX_CONNECTIONS10Maximum simultaneous open serial connections.
SERIAL_MCP_PLUGINSdisabledPlugin policy: all to allow all, or name1,name2 to allow specific plugins. Unset = disabled.
SERIAL_MCP_MIRRORoffPTY mirror mode: off, ro (read-only), or rw (read-write). macOS and Linux only.
SERIAL_MCP_MIRROR_LINK/tmp/serial-mcpBase path for PTY symlinks. Connections get numbered: /tmp/serial-mcp0, /tmp/serial-mcp1, etc.
SERIAL_MCP_LOG_LEVELWARNINGPython log level (DEBUG, INFO, WARNING, ERROR). Logs go to stderr.
SERIAL_MCP_TRACEenabledJSONL tracing of every tool call. Set to 0, false, or no to disable.
SERIAL_MCP_TRACE_PAYLOADSdisabledInclude write data in traced args (stripped by default).
SERIAL_MCP_TRACE_MAX_BYTES16384Max payload chars before truncation (only applies when TRACE_PAYLOADS is on).
SERIAL_MCP_TOOL_SEPARATOR.Character used to separate tool name segments. Set to _ for MCP clients that reject dots in tool names (e.g. Cursor).

Tools

CategoryTools
Serial Coreserial.list_ports, serial.open, serial.close, serial.connection_status, serial.read, serial.write, serial.readline, serial.read_until, serial.flush, serial.set_dtr, serial.set_rts, serial.pulse_dtr, serial.pulse_rts
Introspectionserial.connections.list
Protocol Specsserial.spec.template, serial.spec.register, serial.spec.list, serial.spec.attach, serial.spec.get, serial.spec.read, serial.spec.search
Tracingserial.trace.status, serial.trace.tail
Pluginsserial.plugin.template, serial.plugin.list, serial.plugin.reload, serial.plugin.load

Protocol Specs

Specs are markdown files that describe a serial device's protocol — connection settings, message format, commands, and multi-step flows. They live in .serial_mcp/specs/ and teach the agent what the byte stream means.

Without a spec, the agent can still open a port and exchange data. With a spec, it knows what commands to send, what responses to expect, and what the data means.

You can create specs by telling the agent about your device — paste a datasheet, describe the protocol, or just let it explore and document what it finds. The agent generates the spec file, registers it, and references it in future sessions. You can also write specs by hand.


Plugins

Plugins add device-specific shortcut tools to the server. Instead of the agent composing raw read/write sequences, a plugin provides high-level operations like mydevice.read_temp or ota.upload_firmware.

The agent can also generate Python plugins (with your approval). It explores a device, writes a plugin based on what it learns, and future sessions get shortcut tools — no manual coding required.

To enable plugins:

# Enable all plugins

claude mcp add serial -e SERIAL_MCP_PLUGINS=all -- serial_mcp

Enable specific plugins only

claude mcp add serial -e SERIAL_MCP_PLUGINS=mydevice,ota -- serial_mcp

Editing an already-loaded plugin only requires serial.plugin.reload — no restart needed.


Tracing

Every tool call is traced to .serial_mcp/traces/trace.jsonl and an in-memory ring buffer (last 2000 events). Tracing is on by default — set SERIAL_MCP_TRACE=0 to disable.

Event format

Two events per tool call:

{"ts":"2025-01-01T00:00:00.000Z","event":"tool_call_start","tool":"serial.read","args":{"connection_id":"s1"},"connection_id":"s1"}

{"ts":"2025-01-01T00:00:00.050Z","event":"tool_call_end","tool":"serial.read","ok":true,"error_code":null,"duration_ms":50,"connection_id":"s1"}

  • connection_id is extracted from args when present
  • Write data is stripped from traced args by default (enable with SERIAL_MCP_TRACE_PAYLOADS=1)
Inspecting the trace

Use serial.trace.status to check config and event count, and serial.trace.tail to retrieve recent events — no need to read the file directly.


PTY Mirror

When the MCP server owns a serial port, most OSes prevent any other process from opening it. PTY mirroring creates a virtual clone port that external tools (screen, minicom, logic analyzers, custom scripts) can connect to simultaneously.

# Enable read-only mirror

claude mcp add serial \ -e SERIAL_MCP_MIRROR=ro \ -- serial_mcp

After opening a connection, the response includes the mirror path:

{ "mirror": { "pty_path": "/dev/ttys004", "link": "/tmp/serial-mcp0", "mode": "ro" } }

In another terminal:

screen /tmp/serial-mcp0 115200

ModeBehavior
offNo mirror (default). Only the MCP server can access the port.
roExternal tools see all serial data but cannot write to the device.
rwExternal tools can both see data and write to the device.

Platform: macOS and Linux only. On Windows, setting SERIAL_MCP_MIRROR to ro/rw logs a warning and is silently ignored.


Try without an agent

You can test the server interactively using the MCP Inspector — no Claude or other agent needed:

npx @modelcontextprotocol/inspector python -m serial_mcp_server

Open the URL with the auth token from the terminal output. The Inspector gives you a web UI to call any tool and see responses in real time.


Known limitations

  • Single-client only. The server handles one MCP session at a time (stdio transport). Multi-client transports (HTTP/SSE) may be added later.
  • Exclusive access. Without PTY mirroring, the MCP server must own the serial port exclusively.

Safety

This server connects an AI agent to real hardware. That's t

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx