sigrok-mcp-server¶
An MCP (Model Context Protocol) server that wraps sigrok-cli, exposing sigrok's signal analysis capabilities to LLMs.
It translates MCP tool calls into sigrok-cli invocations and returns structured JSON results, enabling LLMs to query logic analyzers, decode protocols, and analyze signals.
What can it do?¶
- Discover hardware — Scan for connected logic analyzers, oscilloscopes, and multimeters
- Capture data — Acquire signal data from devices and save to files
- Decode protocols — Analyze captured data with 100+ protocol decoders (UART, SPI, I2C, etc.)
- Query instruments — Send SCPI commands directly to serial-attached instruments
- Browse capabilities — List supported drivers, decoders, and file formats
Available Tools¶
| Tool | Description |
|---|---|
list_supported_hardware |
List all supported hardware drivers |
list_supported_decoders |
List all supported protocol decoders |
list_input_formats |
List all supported input file formats |
list_output_formats |
List all supported output file formats |
show_decoder_details |
Show detailed info about a protocol decoder |
show_driver_details |
Show detailed info about a hardware driver |
show_version |
Show sigrok-cli and library version info |
scan_devices |
Scan for connected hardware devices |
capture_data |
Capture data from a device and save to file |
decode_protocol |
Decode protocol data from a captured file |
check_firmware_status |
Check firmware file availability |
serial_query |
Send commands over a serial port |
get_device_profile |
Look up device profiles and connection settings |
Quick Example¶
A typical signal analysis workflow with an LLM:
- Discover —
scan_devicesto find connected hardware - Inspect —
show_driver_detailsto check driver capabilities - Capture —
capture_datato acquire signal data - Decode —
decode_protocolto analyze with protocol decoders - Understand — The LLM interprets decoded output and explains the communication
Getting Started¶
See the Installation guide to get up and running.