loading…
Search for a command to run...
loading…
USB hardware discovery, device identification, serial communication, and diagnostics for makers and hardware engineers.
USB hardware discovery, device identification, serial communication, and diagnostics for makers and hardware engineers.
USB hardware discovery for your AI tools.
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.
22 tools across four categories:
| 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 |
| 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 |
| 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 |
| 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) |
/dev/cu.* serial ports (the #1 question makers ask)brew install seayniclabs/tap/bench
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.
claude mcp add bench -- $(which bench)
Or add manually to ~/.claude.json:
{
"mcpServers": {
"bench": {
"command": "/path/to/bench",
"args": []
}
}
}
Once connected, just talk to your AI tool:
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.
swift build # debug build
swift build -c release # release build
swift test # run tests
Bench requires Swift 6.1+ and targets macOS 14+.
MIT
Built by Seaynic Labs.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"bench": {
"command": "npx",
"args": []
}
}
}