Mcp Sigrok

io.github.daedalus由 GitHub 帳號 daedalus 發布v0.1.0更新於 Nov 3, 2026

MCP server exposing sigrok-cli functionality for logic analyzer hardware and protocol decoding

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

封裝 sigrok-cli,讓助理操作邏輯分析儀:列出驅動與協定解碼器、掃描裝置、擷取樣本並解碼協定。

可以做什麼
  • 查詢 sigrok-cli 版本,列出支援的功能、硬體驅動以及輸入/輸出檔案格式
  • 掃描已連接的裝置並檢視指定驅動的裝置資訊
  • 從邏輯分析儀硬體擷取樣本(含依時長擷取),並設定驅動組態
  • 載入並處理擷取檔案,檢視協定解碼器文件
適用情境
當你使用邏輯分析儀硬體或 sigrok 擷取檔案,希望助理在對話中掃描裝置、執行擷取或解碼 I2C 等協定,而不必手動執行 sigrok-cli 時適用。
執行需求
以本機 stdio 程序執行,從 PyPI 安裝(pip install mcp-sigrok)。系統中必須已安裝 sigrok-cli(apt、brew 或由原始碼編譯)。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
它會操作真實硬體並寫出檔案,擷取與檔案處理會作用於本機與裝置。它依賴系統中存在且可信的 sigrok-cli 執行檔。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Sigrok,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-sigrok — MCP server for sigrok-cli

[PyPI] [Python]

MCP server that exposes all functionality of sigrok-cli as MCP tools. sigrok-cli is a cross-platform command-line utility for the sigrok software suite, used for hardware initialization, acquisition, protocol decoding, and saving logic analyzer sessions.

Install

bash
pip install mcp-sigrok

Requirements

  • sigrok-cli must be installed on the system

Installing sigrok-cli

Debian/Ubuntu:

bash
sudo apt install sigrok-cli

macOS:

bash
brew install sigrok-cli

From source:

bash
git clone git://sigrok.org/sigrok-clicd sigrok-cli./autogen.sh./configuremakesudo make install

Usage

As MCP Server

bash
# Run as stdio MCP servermcp-sigrok

Or configure in your MCP settings:

json
{  "mcpServers": {    "sigrok": {      "command": "mcp-sigrok"    }  }}

Python API

python
from mcp_sigrok import (    check_sigrok_cli,    get_version,    list_drivers,    scan_devices,    capture_samples,    load_input_file,)
# Check if sigrok-cli is availableif cli_path := check_sigrok_cli():    print(f"Found sigrok-cli at: {cli_path}")
# Get version infoinfo = get_version()
# List available driversdrivers = list_drivers()
# Scan for devicesdevices = scan_devices()
# Capture samplesresult = capture_samples("fx2lafw", samples=1000)

MCP Tools

ToolDescription
versionGet sigrok-cli version info
list_supportedList all supported features
list_hardware_driversList available hardware drivers
list_input_file_formatsList supported input formats
list_output_file_formatsList supported output formats
list_protocol_decodersList available protocol decoders
scan_for_devicesScan for detectable devices
show_device_infoShow device info for a driver
captureCapture samples from hardware
capture_for_timeCapture data for duration
load_fileLoad and process input file
show_decoder_docsShow protocol decoder docs
set_configSet driver configuration

Examples

Capture from logic analyzer

python
# Capture 1000 samples from fx2lafw deviceresult = capture(    driver="fx2lafw",    samples=1000,    channels="0-7",    output_format="hex")

Decode I2C protocol

python
# Load capture file and decode I2Cresult = load_file(    input_file="capture.sr",    protocol_decoders="i2c",    output_file="decoded.txt")

Scan for devices

python
# Find available devicesdevices = scan_for_devices()for device in devices.get("devices", []):    print(f"Found: {device}")

Development

bash
git clone https://github.com/daedalus/mcp-sigrok.gitcd mcp-sigrokpip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

mcp-name: io.github.daedalus/mcp-sigrok

來源:README.md,提交 4c58b69

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分