
sigrok MCP Server
io.github.KenosInc由 GitHub 账号 KenosInc 发布v0.2.0更新于 Oct 24, 2026
Wraps sigrok-cli for signal analysis: capture data, decode protocols, and query instruments.
概览
本地 MCP 服务器,封装 sigrok-cli,让助手从逻辑分析仪和测量设备采集、解码并分析信号。
- 可以做什么
- 列出支持的硬件驱动、协议解码器、输入与输出格式,并显示 sigrok-cli 版本信息。查看协议解码器或硬件驱动的详细信息,包括选项、通道和文档。扫描已连接的硬件设备并检查固件可用性。从设备采集通信数据并保存到文件。使用 I2C、SPI、UART、CAN 等协议解码器解码已采集的数据。
- 适用场景
- 当你使用逻辑分析仪或测量硬件,希望助手发现设备、采集总线数据并解码 I2C、SPI、UART、CAN 等协议并解释结果时适用。也适合对已有采集文件做纯协议分析。
- 运行要求
- 作为本地 stdio 进程运行,通常使用已发布的容器镜像,或用 Go 1.25+ 从源码构建。需要安装并可访问 sigrok-cli,通过 SIGROK_CLI_PATH、SIGROK_TIMEOUT_SECONDS 和 SIGROK_WORKING_DIR 配置。容器访问 USB 设备需要特权模式;需要固件的设备要挂载固件目录。
安装
在 SourceWeft 中
- 打开 控制台中的 sigrok MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
sigrok-mcp-server
[CI] [Go Version] [License: MIT] [GitHub Release]
A Model Context Protocol (MCP) server for sigrok — enables AI agents like Claude Code, Codex, and Cursor to capture, decode, and analyze signals from logic analyzers and measurement devices. Supports I2C, SPI, UART, CAN, and 100+ protocols via sigrok-cli.
Documentation | Getting Started
Tools
Quickstart
Docker
From source
Requires Go 1.25+ and sigrok-cli installed on your system.
The server communicates over stdio (stdin/stdout JSON-RPC).
Configuration
Configuration is via environment variables:
MCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
To access USB devices from the container:
To also provide firmware files for devices that require them (e.g. Kingst LA2016):
Claude Code
With USB access and firmware:
Firmware
Some hardware drivers require firmware files that cannot be bundled with this server due to licensing restrictions. The server works without firmware for devices that don't need it (e.g. demo, protocol-only analysis). For devices that require firmware (e.g. Kingst LA2016, Saleae Logic16), mount your firmware directory into the container at /usr/local/share/sigrok-firmware.
Use the check_firmware_status tool to verify firmware availability and diagnose device detection issues.
See the sigrok wiki for firmware extraction instructions for your device.
Architecture
- Transport: stdio (stdin/stdout JSON-RPC)
- No C bindings: sigrok-cli is the sole interface to sigrok
- Capture & decode:
capture_dataacquires data from devices; all other tools are read-only queries - Structured output: Raw sigrok-cli text output is parsed into JSON
Workflow Example
A typical signal analysis workflow using Claude:
scan_devices— Discover connected hardwareshow_driver_details— Check driver capabilitiescapture_data— Capture communication data to filedecode_protocol— Decode captured data with protocol decoders- Claude analyzes the decoded output and explains the communication
Development
Project Structure
License
MIT (Kenos, Inc.)
来源:README.md,提交 71a652d
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分