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.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

本地 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 设备需要特权模式;需要固件的设备要挂载固件目录。
安装前请注意
采集会把数据写入本机文件。为访问 USB 的容器配置使用特权模式,会授予较广的主机权限。部分硬件驱动需要未随附的固件文件,须另行获取。未声明身份验证,任何能启动该进程的人都能操作所连接的硬件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 sigrok MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

ToolDescription
list_supported_hardwareList all supported hardware drivers
list_supported_decodersList all supported protocol decoders
list_input_formatsList all supported input file formats
list_output_formatsList all supported output file formats
show_decoder_detailsShow detailed info about a protocol decoder (options, channels, documentation)
show_driver_detailsShow detailed info about a hardware driver (functions, scan options, devices)
show_versionShow sigrok-cli and library version information
scan_devicesScan for connected hardware devices
capture_dataCapture communication data from a device and save to file
decode_protocolDecode protocol data from a captured file using protocol decoders
check_firmware_statusCheck firmware file availability in sigrok firmware directories

Quickstart

Docker

bash
docker pull ghcr.io/kenosinc/sigrok-mcp-serverdocker run -i ghcr.io/kenosinc/sigrok-mcp-server

From source

Requires Go 1.25+ and sigrok-cli installed on your system.

bash
go build -o sigrok-mcp-server ./cmd/sigrok-mcp-server./sigrok-mcp-server

The server communicates over stdio (stdin/stdout JSON-RPC).

Configuration

Configuration is via environment variables:

VariableDefaultDescription
SIGROK_CLI_PATHsigrok-cliPath to the sigrok-cli binary
SIGROK_TIMEOUT_SECONDS30Command execution timeout in seconds
SIGROK_WORKING_DIR(empty)Working directory for sigrok-cli execution

MCP Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "sigrok": {      "command": "docker",      "args": ["run", "-i", "--rm", "ghcr.io/kenosinc/sigrok-mcp-server"]    }  }}

To access USB devices from the container:

json
{  "mcpServers": {    "sigrok": {      "command": "docker",      "args": ["run", "-i", "--rm", "--privileged", "ghcr.io/kenosinc/sigrok-mcp-server"]    }  }}

To also provide firmware files for devices that require them (e.g. Kingst LA2016):

json
{  "mcpServers": {    "sigrok": {      "command": "docker",      "args": [        "run", "-i", "--rm", "--privileged",        "-v", "/path/to/sigrok-firmware:/usr/local/share/sigrok-firmware:ro",        "ghcr.io/kenosinc/sigrok-mcp-server"      ]    }  }}

Claude Code

bash
claude mcp add sigrok -- docker run -i --rm ghcr.io/kenosinc/sigrok-mcp-server

With USB access and firmware:

bash
claude mcp add sigrok -- docker run -i --rm --privileged -v /path/to/sigrok-firmware:/usr/local/share/sigrok-firmware:ro ghcr.io/kenosinc/sigrok-mcp-server

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

MCP Client (LLM)    |  stdio (JSON-RPC)    vsigrok-mcp-server (Go)    |  exec.Command    vsigrok-cli    |    vlibsigrok / libsigrokdecode
  • Transport: stdio (stdin/stdout JSON-RPC)
  • No C bindings: sigrok-cli is the sole interface to sigrok
  • Capture & decode: capture_data acquires 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:

  1. scan_devices — Discover connected hardware
  2. show_driver_details — Check driver capabilities
  3. capture_data — Capture communication data to file
  4. decode_protocol — Decode captured data with protocol decoders
  5. Claude analyzes the decoded output and explains the communication

Development

bash
# Buildgo build ./...
# Testgo test ./... -race
# Lintgolangci-lint run ./...

Project Structure

cmd/sigrok-mcp-server/     Entry pointinternal/  config/                  Environment-based configuration  sigrok/    executor.go            sigrok-cli command execution with timeout    parser.go              Output parsing (list, decoder, driver, version, scan)    testdata/              Real sigrok-cli output fixtures  tools/    tools.go               MCP tool definitions and registration    handlers.go            Tool handler implementations

License

MIT (Kenos, Inc.)

来源:README.md,提交 71a652d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分