QSerial MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
# QSerial
AI-powered serial console and device management tool. Built on Electron + MCP (Model Context Protocol).
Architecture — How AI Interacts with Your Hardware
sequenceDiagram
participant AI as AI Agent (Claude/Copilot/Cursor...)
participant MCP as QSerial MCP Server
participant IPC as Electron Main
participant HW as Hardware Device
AI->>MCP: tools/list (discover 47 tools)
MCP-->>AI: 5 namespaces: conn, device, session, sftp, app
AI->>MCP: conn.create (serial COM3, 115200)
MCP->>IPC: open serial port
IPC->>HW: physical connection
HW-->>IPC: connected
IPC-->>MCP: connectionId: abc123
MCP-->>AI: {id: "abc123", state: "connected"}
AI->>MCP: conn.data.send (id: abc123, data: "AT\r\n")
MCP->>IPC: write to device
IPC->>HW: AT\r\n
HW-->>IPC: OK\r\n
IPC-->>MCP: output buffer
MCP-->>AI: {output: "OK"}
AI->>MCP: conn.analyze.probe (id: abc123)
MCP-->>AI: best_match: ESP32/ESP8266 (75%)Related MCP server: Serial Web Terminal MCP
Quick Start
pnpm install
pnpm run dev # dev mode with hot reload
pnpm start # run pre-built app
pnpm run package:win # build Windows installer + portable exeOne-Click Build & Deploy (Linux / WSL2)
./build-win.sh # build NSIS installer + portable exe + win-unpacked
./build-win.sh --deploy # build, then upload artifacts to your Aliyun server
./build-win.sh --help # show usageDeployment uses scp/ssh to upload release/*.exe to the server. Configure
server info in .env (copy from .env.example and fill in QSERIAL_HOST,
QSERIAL_USER, QSERIAL_WEB_ROOT). Requires Node >= 20, pnpm, python3, and
SSH access to the target server.
MCP Client Config
Add to your AI client's MCP configuration. Two transports are supported:
Streamable HTTP(推荐):JSON-RPC 请求与响应都在 POST 请求中完成
{"mcpServers":{"qserial":{"type":"streamable-http","url":"http://127.0.0.1:9800/mcp"}}}SSE:客户端先 GET /sse 建立事件流,JSON-RPC 响应经该流以 message 事件推送
{"mcpServers":{"qserial":{"type":"sse","url":"http://127.0.0.1:9800/sse"}}}鉴权(Token)
MCP 服务器默认关闭鉴权。一旦设置了访问令牌(或在非 localhost 监听时自动生成随机令牌),客户端必须在请求中携带 token:
Streamable HTTP:请求头
Authorization: Bearer <token>SSE:URL 查询参数
http://127.0.0.1:9800/sse?token=<token>,或同样使用Authorization请求头
令牌可在 MCP 对话框的状态面板中查看。
监听地址
默认只监听 127.0.0.1(仅本机可访问)。需要局域网内其他机器接入时,在 MCP 对话框中把监听地址改为 0.0.0.0;此时若未手动设置 token,服务会自动生成一个随机 token,请从对话框状态面板或启动日志中获取。
Capabilities
Category | Tools | Description |
Connection |
| Manage serial, SSH, Telnet, PTY connections |
Data I/O |
| Send commands, read output, pattern matching |
Scripting |
| Multi-step scripts, auto-login |
Analysis |
| Device detection (21 types), state analysis |
File Transfer |
| SFTP, XMODEM/YMODEM |
Monitoring |
| Pattern alerts, session recording |
Device |
| List available serial ports |
Tech Stack
Layer | Technology |
Desktop | Electron 35, React 18, TypeScript |
Terminal | xterm.js 5 |
Styling | Tailwind CSS |
State | Zustand + immer |
Protocol | MCP (Model Context Protocol) over Streamable HTTP / SSE |
Testing | Vitest (135 tests) |
Build | electron-builder, Vite, pnpm workspace |
Project Structure
packages/
├── main/ # Electron main process, IPC handlers, MCP tools, services
├── renderer/ # React frontend (components, stores, i18n)
└── shared/ # TypeScript types and constants
plugins/ # Community plugins and device models
scripts/ # Build, deploy, packaging, icon scriptsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect your AI to your own devices, 3D printers, factory tools and a shared agent task pool.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with physical serial port devices across platforms (Windows COM/Linux tty) with support for asynchronous communication, URC pattern recognition, and structured logging.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with serial port devices by sending commands, capturing output, and managing connections, with real-time browser-based terminal monitoring.1MIT
- AlicenseBqualityBmaintenanceEnables AI agents to open persistent interactive terminal sessions with network devices over SSH, Telnet, TCP console, or serial, write raw commands including nested ssh/telnet transitions, and read full output without requiring a particular prompt format. It supports multiple concurrent sessions and keeps credentials/secrets out of MCP arguments or audit logs.770 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to drive switches, servers, and consoles over SSH or serial Console through 28 MCP tools, auto-detecting vendors, paging through long output, and cleaning raw byte streams into readable text. Provides structured diagnostics (interfaces, ARP/MAC/routing tables, ping, logs, health checks) plus a three-tier safety model with audit logging, credential redaction, and dry-run config changes.MIT