Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
MCP server for serial port communication. 25 tools, resources, prompts, and stdio/HTTP transports.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Download the maker’s .mcpb file
The link goes to the maker’s own file; we do not host or repackage it. Open the file and Claude Desktop installs it.
Run this in your terminal
Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026
The registry name was verified with the GitHub account qarnet, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.9.3) reached the registry 3 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need MCPB on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
serial-mcp is an MCP server for direct access to serial ports. It reads, writes, and streams UART or USB-serial data to microcontrollers, Arduino boards, STM32 chips, and other embedded targets. Reads use timeouts and pattern matching instead of blocking on a serial monitor.
The server provides always-on RX capture. It decodes TX and RX frames using line, delimiter, length-prefixed, start/end, SLIP, and COBS formats. It provides AT, JSON, shell, NMEA-0183, and Modbus ASCII parsers.
Protocol presets provide checksum validation. The server also supports auto-reconnect, event logging, DTR/RTS, BREAK, and flow control. MCP clients can use these features with serial bootloaders, resets, and embedded boards.
list_ports() and inspect profile_matches. The result shows what a bare open would reuse.open(port=...) with only the port. Baud defaults to 115200/8-N-1. The server reuses the most recently used high-confidence profile for a known device. It creates a durable generated profile for a new device.transact() for command and response exchanges. Use read() for buffered or unsolicited data. Use write() for send-only operations.| Area | What it provides |
|---|---|
| RX model | An always-on ring buffer captures bytes from open to close. read returns buffered bytes immediately. It can also wait, match, and replay history. |
| Framing and parsing | Both directions support line, delimiter, length-prefixed, start/end, SLIP, and COBS framing. Parsers include AT, JSON, shell, NMEA-0183, and Modbus ASCII. |
| Protocol presets | Seven presets are available. They are at_command, slip, json_lines, cobs, ndjson, nmea0183, and modbus_ascii. Checksum validation is included. |
| Device profiles | The server creates automatic profile sessions. High-confidence devices get durable generated profiles. Learned settings persist across sessions. |
| Boot capture | capture_boot handles Arduino auto-reset, power-cycle banners, and boot prompts in one atomic call. |
| Reliability | Ring wrap is reported through bytes_lost. Encoding fallback is lossless. The server also supports auto-reconnect and reports partial failures. |
| Operations | Event logging supports persistent JSONL capture through export_log. The server also provides port allowlisting and stdio and HTTP transports. |
| Group | Tools |
|---|---|
| Discovery | list_ports, list_connections |
| Connection lifecycle | open, close, reconnect, get_status, reconfigure |
| I/O | read, write, transact, capture_boot, flush |
| Line control | set_dtr_rts, set_flow_control, send_break |
| Profiles & config | list_profiles, open_profile, save_profile, delete_profile, configure, rollback_profile |
| Logs & capture | get_log, clear_log, export_log |
| Utility | compute_checksum |
| Kind | Items |
|---|---|
| Resources (5) | serial://ports, serial://connections (static); serial://connections/{id}, serial://connections/{id}/raw, serial://connections/{id}/log (templates) |
| Prompts (2) | diagnose_port, interactive_terminal |
cargo install serial-mcp
nix profile install github:qarnet/serial-mcp
No toolchain is required. Each release publishes one binary per platform. The latest/download URLs resolve to the newest release.
| Platform | Command |
|---|---|
| Linux x86_64 | curl -L https://github.com/qarnet/serial-mcp/releases/latest/download/serial-mcp-x86_64-linux -o serial-mcp && sudo install -m 755 serial-mcp /usr/local/bin/ |
| Linux ARM64 | Same command with the serial-mcp-aarch64-linux asset |
| macOS (Apple Silicon) | Same command with the serial-mcp-aarch64-macos asset |
| Windows (x86_64) | Download serial-mcp-x86_64-windows.exe and place it on your PATH |
On Linux, add your user to the dialout group for port access:
sudo usermod -aG dialout $USER
For client-specific setup, see the agent configuration guide. It covers Claude Code CLI, Claude Desktop, Cursor, VS Code, Zed, opencode, Codex, Hermes, and HTTP transport.
Quick example (Claude Code, Linux/macOS)
{
"mcpServers": { "serial": { "type": "stdio", "command": "serial-mcp", "args": ["--allowlist=/dev/ttyACM*,/dev/ttyUSB*"] } } }
Use this sequence for common work: discover, open, talk, verify the learned profile, then use advanced tools when needed.
list_ports(). Its profile_matches entries correspond to ports.selected means a bare open reuses selected_profile.ambiguous means equal-ranked profiles require open_profile.duplicate, ineligible, and none mean a bare open starts fresh or transient.open(port=...). The result includes the profile binding. The binding reports its name, source, confidence, persistence, generated flag, revision, and dirty state.transact(data=..., match=..., timeout_ms=...) to write and await a response in one call. Use read() for buffered or unsolicited data.reconfigure, set_flow_control, or connection-mode configure, inspect profile_persistence. It reports persisted, not_needed, transient, or failed. Also inspect the updated profile binding.close(). A clean close retries a dirty binding as a safety measure.For boot and reset capture, call capture_boot. It handles Arduino auto-reset, power-cycle banners, and boot prompts.
The call purges unread OS input. It marks the RX live edge. It can pulse DTR/RTS, with guaranteed release. It captures only post-mark bytes on a private cursor. The result is bounded in memory and does not write a file. See RX and reading for the from cursor model. See Device profiles for profile behavior.
The protocol field supplies framing and parser defaults for both directions. NMEA and Modbus ASCII presets validate checksums:
| Preset | Wire name | Framing / parser |
|---|---|---|
| AT commands | at_command | Line (CR) + AT parser |
| SLIP | slip | RFC 1055 byte stuffing |
| JSON lines | json_lines | Line + JSON-lines parser |
| COBS | cobs | Consistent Overhead Byte Stuffing |
| NDJSON | ndjson | Line + JSON-lines parser, skips blank lines |
| NMEA-0183 | nmea0183 | Start/end $/! + NMEA parser, *XX checksum |
| Modbus ASCII | modbus_ascii | Start/end : + Modbus ASCII parser, LRC |
Field precedence is explicit call field, call-time preset, connection default, then connection preset. The Protocol guide documents this order, checksum behavior, and the framing and parser reference.
| Guide | What it covers |
|---|---|
| RX and reading | Ring buffer and shared cursor. Tagged from forms. Timeouts, silence, and matching. Ring wrap and bytes_lost. Encoding fallback, flow control, capture_boot, and subscriptions. |
| Device profiles | profile_matches outcomes and identity rules. Generated and reused selection. Learning, revision CAS, rollback, and deletion guards. |
| Persistent capture | The export_log contract. Quotas, portable filenames, atomicity, and failure semantics. |
| Agent configuration | Client setup. HTTP transport. Troubleshooting. |
| Protocol guide | Framing and parsers. Presets and precedence. Checksum behavior. |
| Documentation index | User and development guides |
| Mode | How to activate | Use case |
|---|---|---|
| stdio | default | Desktop agents |
| HTTP | --transport=http | Remote and headless use |
CLI options
serial-mcp [OPTIONS]
--transport Transport to use (default: stdio) --allowlist Comma-separated glob patterns for allowed ports --bind HTTP bind address (default: 127.0.0.1:8000) --max-program-buffered-bytes Global budget for all in-flight RX tools --max-tool-buffered-bytes Per-tool ceiling for max_buffered_bytes --profiles-path Profile store file path (default: OS user config dir + serial-mcp/profiles.toml) --capture-dir Enable persistent export_log capture into an existing absolute directory (disabled by default; no fallback to cwd/config/temp) --capture-max-file-bytes Per-file quota for a capture JSONL snapshot (default: 16777216 / 16 MiB) --capture-max-total-bytes Total-byte quota across committed capture files (default: 268435456 / 256 MiB) --capture-max-files File-count quota across committed capture files (default: 256) -V, --version Print version and exit (also: serial-mcp version) -h, --help Print help
RUST_LOG Log level env var (error/warn/info/debug/trace)
The profile store is one TOML file shared by every session. Use --profiles-path for an isolated store. See Device profiles.
export_log writes portable .jsonl filenames into the --capture-dir root. It never accepts arbitrary paths and never overwrites files. See Persistent capture.
serial-mcp supports MCP 2025-11-25. This version uses the legacy session lifecycle.
It also supports MCP 2026-07-28. This version uses modern discovery and stateless requests with SEP-2549 cache fields. Both stdio and HTTP transports support the port allowlist.
CI runs official conformance checks and Inspector interoperability checks. The validation tools come from the committed npm lockfile. CI installs them with npm ci --ignore-scripts. It runs them as local binaries, never through npx.
An actual historical rmcp 1.7.0 client tests backward compatibility over HTTP and stdio. Run the complete local and CI version gate with:
bash scripts/test-mcp-compat.sh
Before pushing or opening a pull request, run cargo fmt --all. CI runs cargo fmt --all -- --check once in standalone Ubuntu format job first. Formatting failures block dependent expensive Nix, build/test/Clippy, and MCP conformance jobs.
cargo test --locked
cargo clippy --all-targets --locked -- -D warnings cargo fmt --all -- --check
cargo test --locked --test device_fixture -- --test-threads=1 cargo test --locked --test device_command_parity -- --test-threads=1 cargo test --locked --test device_framing_parity -- --test-threads=1 cargo test --locked --test device_protocol_parity -- --test-threads=1 cargo test --locked --test device_
Only the beginning is shown; read the rest in the repo