
erebusnz/rigol-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Claude Code, Cursor, Codex 등의 사용을 위한 Rigol Scope MCP
개요
LAN 또는 USB를 제어하기위한 MCP 서버. Claude (또는 MCP 클라이언트)가 측정을 수행하고 악기를 구성하고 스크린 샷을 캡처 할 수 있는 도구 세트로 범위를 노출합니다. 알려진 신호 (LCR 트랩으로 제곱 파), 잘못된 채널 활성화, 잘못된 timebase/voltage/trigger. Claude는 신호 유형을 식별하고 설정을 수정하고 파형을 문자화합니다. 다른 DHO 모델 (DHO900 / 1000 / 4000 가족)은 동일한 SCPI 방언과 함께 작동하지만 확인되지 않습니다. 범위는 (rear 패널 RJ45)에 또는 (rear 패널 USB-B 장치 항구)를 연결합니다. LAN은 기본적으로; USB는 RIGOL USB가 설정될 때 사용됩니다. USB 수송은 DS1000Z에 유효합니다; DHO 지원은 지금까지 랜에서만 유효하게 되었습니다. - 파이썬 3.
개요(AI 번역)
Rigol DS1000Z 및 DHO 시리즈 oscilloscopes LAN 또는 USB를 제어하기위한 MCP 서버. Claude (또는 MCP 클라이언트)가 측정을 수행하고 악기를 구성하고 스크린 샷을 캡처 할 수 있는 도구 세트로 범위를 노출합니다.
예제: Claude의 알 수없는 신호 특성
알려진 신호 (LCR 트랩으로 제곱 파), 잘못된 채널 활성화, 잘못된 timebase/voltage/trigger. Claude는 신호 유형을 식별하고 설정을 수정하고 파형을 문자화합니다.
지원되는 기계설비
**Rigol DS1000Z / MSO1000Z 시리즈 (8 비트) : **
| 모델 | 채널 | 메모 | |—||||| | DS1054Z | 4 아날로그 | 일반, 50 MHz | | DS1074Z | 4 아날로그 | 70 MHz | | DS1074Z-S | 4개의 아날로그 + 신호 gen | | | DS1104Z | 4 아날로그 | 100 MHz | | DS1104Z-S | 4개의 아날로그 + 신호 gen | | | MSO1054Z | 4 아날로그 + 16 디지털 | MSO 변종 | | MSO1074Z | 4 아날로그 + 16 디지털 | | | MSO1104Z | 4 아날로그 + 16 디지털 | |
**Rigol DHO 시리즈 (12 비트) : **
| 모델 | 채널 | 메모 | |—||||| | DHO924S | 4개의 아날로그 + 신호 gen | 250 MHz |
다른 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):
설치
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"
}
}
}
}