Bench
USB hardware discovery, device identification, serial communication, and diagnostics for makers and hardware engineers.
README
<p align="center"> <img src="docs/assets/bench-logo.svg" alt="Bench" width="200"> </p>
<h1 align="center">Bench</h1>
<p align="center"><strong>USB hardware discovery for your AI tools.</strong></p>
Bench is a native macOS MCP server that gives AI tools like Claude Code, Cursor, and Windsurf visibility into connected USB hardware. It identifies devices, finds serial ports, and recognizes common maker boards — so your AI assistant knows what's on your bench.
No API keys. No drivers. One command to install.
What it does
22 tools across four categories:
Discovery
| Tool | Description |
|---|---|
ping |
Health check — returns server status, version, macOS version |
list_usb_devices |
List all connected USB devices with vendor, type, speed, serial |
get_device_info |
Detailed info on a specific device by serial, location ID, or name |
identify_device |
Smart identification of 83+ known maker/dev boards |
list_serial_ports |
Enumerate serial ports with USB device matching |
hub_topology |
USB hub tree view showing port hierarchy and connections |
device_descriptors |
Full USB descriptor chain — interfaces, endpoints, class codes |
chip_detect |
Detect exact chip type of ESP32/microcontroller via esptool |
Monitoring
| Tool | Description |
|---|---|
monitor_events |
Detect USB connect/disconnect events between calls |
snapshot_state |
Capture and diff USB device state snapshots |
diagnose_device |
Query system logs for USB errors on a specific device |
power_info |
Per-device power draw, bus budgets, charging detection |
Management
| Tool | Description |
|---|---|
eject_device |
Safely unmount and eject removable storage |
tag_device |
Persistent user-defined aliases for devices |
port_reset |
Reset a USB port to recover frozen devices |
flash_firmware |
Flash firmware via esptool/dfu-util/avrdude/UF2 |
hid_send |
Send/receive raw HID reports |
Serial Communication
| Tool | Description |
|---|---|
serial_open |
Open a serial connection with configurable baud rate, data bits, parity |
serial_read |
Read available data from an open serial connection |
serial_write |
Write data or commands to an open serial connection |
serial_close |
Close an open serial connection |
serial_monitor |
Capture serial output for N seconds (boot logs, debug output) |
Features
- Device classification — automatically categorizes devices as storage, input, hub, video, serial adapter, microcontroller, or debugger
- Serial port detection — maps USB devices to their
/dev/cu.*serial ports (the #1 question makers ask) - 83+ known boards — recognizes Arduino, Raspberry Pi, ESP32, Adafruit, SparkFun, Teensy, STM32, and common USB-serial chips
- Storage info — mount points, capacity, and free space for USB drives
- USB monitoring — event tracking, state snapshots, diagnostic log queries, and power analysis
- Firmware flashing — flash ESP32, STM32, Arduino AVR, and RP2040 boards directly
- HID interaction — send and receive reports from Stream Decks, macro pads, and custom HID devices
- Serial communication — open, read, write, and monitor serial ports with configurable baud rate, data bits, parity, and stop bits
Requirements
- macOS 14+ (Sonoma or later) on Apple Silicon
- An MCP-compatible AI tool (Claude Code, Cursor, Windsurf, etc.)
- For building from source: Xcode 16.3+ / Swift 6.1+
Install
Homebrew (recommended)
brew install seayniclabs/tap/bench
From source
git clone https://github.com/seayniclabs/bench.git
cd bench
swift build -c release
codesign --force --sign - --entitlements Sources/Bench/Bench.entitlements .build/release/Bench
The binary is at .build/release/Bench.
Add to Claude Code
claude mcp add bench -- $(which bench)
Or add manually to ~/.claude.json:
{
"mcpServers": {
"bench": {
"command": "/path/to/bench",
"args": []
}
}
}
Usage
Once connected, just talk to your AI tool:
- "What USB devices are connected?"
- "What port is my Arduino on?"
- "Identify the device on /dev/cu.usbserial-2120"
- "Eject the Samsung T7"
- "Show me all storage devices"
- "Open a serial connection to /dev/cu.usbserial-2120 at 9600 baud"
- "Monitor the serial output from my ESP32 for 10 seconds"
How it works
Bench uses Apple's IOKit framework to enumerate USB devices natively on macOS. It enriches results with serial port detection (/dev/cu.* scanning), storage info (diskutil), and a built-in database of known maker boards. It communicates with AI tools over stdio using the Model Context Protocol (JSON-RPC).
AI Tool --stdio/JSON-RPC--> Bench --IOKit--> USB Device Tree
--diskutil--> Storage Info
--/dev/cu.*--> Serial Ports
--DeviceDB--> Board Recognition
No special permissions needed. IOKit USB enumeration works without entitlements from a CLI binary.
Building
swift build # debug build
swift build -c release # release build
swift test # run tests
Bench requires Swift 6.1+ and targets macOS 14+.
License
MIT
Credits
Built by Seaynic Labs.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。