ER

erebusnz/rigol-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

46 stars 16 forks 品質 73 トレンド 9MIT

リコールスコープ MCP は、Claude コード、Cursor、Codex などで、有力電気工学に使用されます

概要

LAN または USB 上で制御するための MCP サーバー。 Claude(または任意のMCPクライアント)が測定を取るために呼び出すことができるツールのセットとしてスコープを露出し、機器を設定し、スクリーンショットをキャプチャします。 不明な信号(LCRトラップに四角波)、誤ったチャンネルが有効、無効なタイムベース/電圧/トリガー。 Claude は、信号タイプを識別し、設定を修正し、波形を特徴付けます。 その他のDHOモデル(DHO900/1000/4000ファミリー)は、同じSCPIの文字盤で動作する可能性が高いが検証されていない。 スコープは、(リアパネルRJ45)以上(リアパネルUSB-Bデバイスポート)に接続します。 LAN はデフォルトです。 RIGOL USB が設定されているときに USB が使用されます(設定を参照)。 DS1000Z では USB トランスポートが検証されています。DHO のサポートは LAN のみで検証されています。 - Python 3.

概要(AI 翻訳)

Rigol DS1000ZおよびDHOシリーズ oscilloscopesをLANかUSBで制御するためのMCPサーバー。 Claude(または任意のMCPクライアント)が測定を取るために呼び出すことができるツールのセットとしてスコープを露出し、機器を設定し、スクリーンショットをキャプチャします。

##例:クラウデの未知のシグナル特性評価

不明な信号(LCRトラップに四角波)、誤ったチャンネルが有効、無効なタイムベース/電圧/トリガー。 Claude は、信号タイプを識別し、設定を修正し、波形を特徴付けます。

対応ハードウェア

Rigol DS1000Z/MSO1000Zシリーズ(8ビット):

| モデル | チャンネル | ノート | お問い合わせ | DS1054Z | 4 アナログ | ほぼ共通 50 MHz | | DS1074Z | 4 アナログ | 70 MHz | | DS1074Z-S | 4アナログ+信号発生器 | | | | DS1104Z | 4 アナログ | 100 MHz | | DS1104Z-S | 4アナログ+信号発生器 | | | | MSO1054Z | 4 アナログ + 16 デジタル | MSO 多様体 | | MSO1074Z | 4アナログ + 16 デジタル | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSO1104Z | 4 アナログ + 16 デジタル | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

Rigol DHOシリーズ(12ビット):

| モデル | チャンネル | ノート | お問い合わせ | DHO924S | 4アナログ+信号発生器 | 250MHz |

その他のDHOモデル(DHO900/1000/4000ファミリー)は、同じSCPIの文字盤で動作する可能性が高いが検証されていない.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

rigol-mcp

MCP server for controlling Rigol DS1000Z and DHO series oscilloscopes over LAN or USB. Exposes the scope as a set of tools that Claude (or any MCP client) can call to take measurements, configure the instrument, and capture screenshots — entirely through natural language.

Example: unknown signal characterisation in Claude

Unknown signal (square wave into LCR trap), wrong channel enabled, invalid timebase/voltage/trigger. Claude identifies the signal type, corrects the setup, and characterises the waveform.

Supported Hardware

Rigol DS1000Z / MSO1000Z series (8-bit):

Model Channels Notes
DS1054Z 4 analog Most common, 50 MHz
DS1074Z 4 analog 70 MHz
DS1074Z-S 4 analog + signal gen
DS1104Z 4 analog 100 MHz
DS1104Z-S 4 analog + signal gen
MSO1054Z 4 analog + 16 digital MSO variant
MSO1074Z 4 analog + 16 digital
MSO1104Z 4 analog + 16 digital

Rigol DHO series (12-bit):

Model Channels Notes
DHO924S 4 analog + signal gen 250 MHz

Other DHO models (DHO900/1000/4000 families) likely work with the same SCPI dialect but are not verified.

The scope connects either over your local network via Ethernet (rear panel RJ45) or over USB (rear panel USB-B device port). LAN is the default; USB is used when RIGOL_USB is set (see Configuration). USB transport has been validated on DS1000Z; DHO support has so far been validated over LAN only.

Requirements

  • Python 3.11+
  • uv
  • A Rigol DS1000Z (LAN or USB) or DHO series scope (LAN) connected to your computer
  • For LAN: SCPI over TCP/IP enabled on the scope (on by default)
  • For USB: a VISA driver on the scope’s USB interface — either the native USBTMC driver (e.g. from Rigol UltraSigma / any NI-VISA runtime) or WinUSB via Zadig (see USB connection)

Installation

git clone https://github.com/erebusnz/rigol-mcp
cd rigol-mcp
uv sync

Scope Network Setup

On the scope, go to Utility → IO Setting → LAN and note the IP address (or assign a static one). The scope listens on port 5555 for raw SCPI commands — no additional configuration is needed.

Replace 192.168.1.123 with the IP address of your scope in all instructions below.

Verify in browser: http://192.168.1.123/DS1000Z_WelcomePage.html

Verify connectivity before using as MCP:

python -c "import pyvisa; rm = pyvisa.ResourceManager('@py'); s = rm.open_resource('TCPIP0::192.168.1.123::5555::SOCKET'); s.write_termination='\n'; s.read_termination='\n'; print(s.query('*IDN?'))"

You should see something like:

RIGOL TECHNOLOGIES,DS1054Z,DS1ZA123456789,00.04.04.SP4

Configuration

Set the scope IP for MCP via environment variable:

export RIGOL_IP=192.168.1.123

Or create a .env file (copy from .env.example):

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "rigol": { "command": "uv", "args": ["run", "rigol-mcp"], "cwd": "/path/to/rigol-mcp", "env": { "RIGOL_IP": "192.168.1.123" } } } }