プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Serial MCP Server

作者:es617バージョン 0.1.3i★ –iパソコンで動く
レジストリ名io.github.es617/serial-mcp-server

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: SERIAL_MCP_MAX_CONNECTIONS, SERIAL_MCP_PLUGINS, SERIAL_MCP_MIRROR, SERIAL_MCP_MIRROR_LINK, SERIAL_MCP_TOOL_SEPARATOR

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "serial": {
      "command": "uvx",
      "args": [
        "serial-mcp-server"
      ],
      "env": {
        "SERIAL_MCP_MAX_CONNECTIONS": "your-value",
        "SERIAL_MCP_PLUGINS": "your-value",
        "SERIAL_MCP_MIRROR": "your-value",
        "SERIAL_MCP_MIRROR_LINK": "your-value",
        "SERIAL_MCP_TOOL_SEPARATOR": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add serial --env SERIAL_MCP_MAX_CONNECTIONS=your-value --env SERIAL_MCP_PLUGINS=your-value --env SERIAL_MCP_MIRROR=your-value --env SERIAL_MCP_MIRROR_LINK=your-value --env SERIAL_MCP_TOOL_SEPARATOR=your-value -- uvx serial-mcp-server

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "serial": {
      "command": "uvx",
      "args": [
        "serial-mcp-server"
      ],
      "env": {
        "SERIAL_MCP_MAX_CONNECTIONS": "your-value",
        "SERIAL_MCP_PLUGINS": "your-value",
        "SERIAL_MCP_MIRROR": "your-value",
        "SERIAL_MCP_MIRROR_LINK": "your-value",
        "SERIAL_MCP_TOOL_SEPARATOR": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "serial": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "serial-mcp-server"
      ],
      "env": {
        "SERIAL_MCP_MAX_CONNECTIONS": "your-value",
        "SERIAL_MCP_PLUGINS": "your-value",
        "SERIAL_MCP_MIRROR": "your-value",
        "SERIAL_MCP_MIRROR_LINK": "your-value",
        "SERIAL_MCP_TOOL_SEPARATOR": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • 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).

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント es617 で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32484件のうち0%よりスターが多い
  • このカテゴリのほかの32484件のうち3%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32484件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Serial MCP Serverは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.3)がレジストリに届いたのは8 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Recta

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

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

クラウドで動く★ 211昨日更新
インストール

Recta

作者:RectaBuild

Cheaper cross-chain stablecoin routes for AI agents; 5 % of the verified saving, nothing if none.

パソコンでもクラウドでも今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。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

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く