RIGOL MHO98 MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RIGOL MHO98 MCP Measure the frequency and peak-to-peak on CH1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RIGOL MHO98 MCP
RIGOL MHO98をUSB経由で操作するMCPサーバーです。MCP対応のAIクライアントから、オシロスコープの設定変更、波形・測定値の取得、FFT、通信デコードなどを扱えます。
実験中の操作を短くするため、設定の送信と測定を分けています。設定変更のたびに全設定を読み直したり、確認用の通信を追加したりしません。
実機の画面
以下は、CH1にプローブを接続し、本体の PROBE COMP 信号を入力して、このMCPの screenshot で取得した画面です。撮影日:2026-09-26。
矩形波を表示する
CH1を1 V/div、時間軸を200 µs/divに設定した表示例です。約1 ms周期の矩形波が見えます。

同じ信号をFFTで見る
MATH1の入力をCH1にして、Hann窓・dBV表示・0〜20 kHzでFFTを表示した例です。約1 kHzの基本波と高調波が見えます。撮影時の取得設定はHiRes・100 kポイントです。

Related MCP server: rigol-oscilloscope-mcp
できること
現在、MHO98向けに 90ツールを登録しています。
用途 | 主な機能 |
入力・取り込み | CH1〜4、時間軸、トリガ、取得メモリ長、ハイレゾ、平均化 |
数値測定 | 振幅・周波数・時間差・位相・統計、DVM、カウンタ、カーソル |
波形の取得 | 波形データ取得、CSV出力、スクリーンショット |
演算・解析 | FFT、MATH演算、ヒストグラム、マスク、イベント検索 |
通信デコード | I2C、SPI、RS232、Parallel、CAN、LIN、IIS、FlexRay、MIL-STD-1553 |
信号発生 | 波形・周波数・振幅・変調・出力ON/OFF、Bode設定 |
その他 | デジタル入力、波形記録、参照波形、保存・読込み、表示設定 |
通信デコードや信号発生などは、本体に搭載された機能・オプションに依存します。接続して実際に確認した機器はMHO98です。
会話での操作例
MCPを登録したクライアントから、例えば次のように依頼できます。
CH2〜4をOFFにして、CH1をFFTで表示して。
取得メモリ長を100 kポイントにして。
ハイレゾモードを16 bitにして。
CH1のDVMをDC測定でONにして。
CH1の周波数とピーク・ツー・ピーク値を取得して。
CH1の波形をCSVに保存して。ツールは設定の送信結果と測定値を区別して返します。例えば sent: true, verified: false は、コマンドを送信したことを表します。本体の状態を確認したという意味ではありません。
設定の扱い
通常のCH設定は全項目を指定
set_channel は、対象CHに加えて以下の11項目を必須にしています。帯域制限などが以前の状態のまま残るのを避けるためです。
表示ON/OFF、帯域制限、反転、AC/DC/GND結合
縦軸スケール、オフセット、チャンネル間スキュー、微調整
ラベル表示、ラベル文字列、バイアス
不足がある呼出しは、オシロスコープに送る前に拒否します。値の確認のために本体を読みに行く処理はありません。
接続条件に依存する3項目は人が決める
入力インピーダンス・測定単位・プローブ倍率は、通常のCH設定に含めません。実機で人が設定するか、人が明示的に指示した場合だけ set_channel_input で変更します。
例えば「ACにして」という依頼から、AIが勝手に50 Ωを1 MΩに変更する扱いにはしていません。50 Ω入力はDC結合に限られるため、こうした条件の衝突は依頼者に伝えます。
読取りは結果に必要なものだけ
測定値を解釈するための測定元・モード・単位、波形を換算するためのプリアンブルなどは取得します。設定変更の前後の照合、自動エラー照会、自動再試行は行いません。診断が必要なときは専用の読取りツールを明示的に使います。
セットアップ
1. インストール
Python 3.13とuvを使う構成です。
git clone https://github.com/kitour/rigol-mho98-mcp.git
cd rigol-mho98-mcp
uv syncリポジトリが非公開の場合、cloneにはアクセスできるGitHubアカウントが必要です。
2. USBで接続
PCとMHO98をUSBで接続し、MHO98用の実行ファイルを起動します。
RIGOL_USB=1 \
RIGOL_USB_SERIAL=YOUR_MHO98_SERIAL \
RIGOL_OUTPUT_DIR=/absolute/path/to/output \
.venv/bin/rigol-mho98YOUR_MHO98_SERIAL は接続する本体のシリアル番号に置き換えてください。起動後は標準入出力でMCPクライアントと通信するため、単独で起動しても対話画面は表示されません。
3. MCPクライアントに登録
クライアントの設定形式に合わせて、次の実行ファイルと環境変数を指定します。
項目 | 値 |
実行ファイル |
|
|
|
| 接続するMHO98のシリアル番号 |
| 画像・CSVなどの保存先の絶対パス |
MHO98用のエントリーポイントは rigol-mho98 です。ソースを更新した後は、クライアント側のMCP接続を再起動すると変更が反映されます。
構成と資料
src/rigol_mcp/mho98/— MHO98向けの実装src/rigol_mcp/mho98/data/— SCPI実行用の構文・型・静的範囲docs/FAST_OPERATIONS.md— 通信と設定の設計docs/FEATURE_TRIAL.md— 実機で試した機能の記録docs/features/— 機能別の実装メモ
このリポジトリは開発中のスナップショットです。古いテスト・試験記録には変更前の仕様を扱うものもあります。現在の操作方針はこのREADMEと FAST_OPERATIONS.md を参照してください。
Available Tools
16 toolsautoscaleA
Run the scope's auto-setup (timebase, vertical scale, trigger). Takes a few seconds; call get_scope_state afterwards to see the resulting configuration. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
check_errorA
Query the SCPI error queue. Returns the error if present, or 'No error' if clear. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
get_cursor_valuesA
Read current cursor mode and all cursor readouts. AX_s and BX_s are time positions in seconds. inv_delta_x is 1/Δt — the frequency between the two cursors. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
get_scope_stateA
Return a snapshot of the scope's current configuration: active channels (scale, offset, coupling, probe), timebase, and trigger. Call this at the start of a session to understand the current setup. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
get_waveformA
Download and analyse the current waveform for a channel (NORM screen buffer, up to ~1000–1200 points depending on scope). Preferred over screenshot for inspecting the trace — the text analysis is cheaper and easier to reason over than an image. Stop or single-trigger the scope first for consistent data. By default returns a plain-text analysis: signal shape, frequency/period, amplitude, DC offset, cycle count, and data-quality warnings (e.g. mid-cycle edges, invalid frequency). Amplitude is judged against the channel's V/div: a trace filling under ~10% of the vertical screen is flagged as noise floor and its shape/frequency are not reported, and one filling under ~20% gets a low-amplitude warning (reduce V/div and re-capture for a clean signal). Set raw_data=true to get the full time/voltage JSON arrays instead. If the channel's display is OFF it is auto-enabled first (flagged in the warnings). After reading, act on any warnings — if FREQUENCY would be 9.9E37 widen the timebase; if edges are not near the DC mean, adjust offset so right edge = N×(period/2) − 6×scale. Do not call concurrently with any other rigol tool.
Inputs: channel (required), raw_data.
idnA
Identify the instrument and report connection details. Always returns the connection block (transport, RIGOL_USB/RIGOL_IP env vars, backend hint, resource string, session state, and the detected dialect driver — DS1000Z, DHO, …) followed by the scope's *IDN? string. If the *IDN? query fails, the connection block is still returned with the error — use it to spot LAN-vs-USB misconfig or an unreachable IP before assuming the scope itself is the problem. Call this first to verify connectivity and confirm the correct driver was selected. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
measureA
Query a single-source built-in measurement on a channel. Preferred over screenshot for reading values — numeric results are cheaper and easier to analyse than an image. For stable readings: on DS1000Z, stop acquisition first. On DHO, keep acquisition running — the DHO measurement engine only populates item values from live acquisitions; some items (VMAX/VMIN/VTOP/FREQUENCY/…) return 9.9E37 if first queried on a stopped scope. channel: CHAN1–CHAN4. item: VMAX, VMIN, VPP, VTOP (pulse top flat level, histogram-derived — not the same as VMAX), VBASE (pulse base flat level — not the same as VMIN), VAMP (=VTOP−VBASE — not the same as VPP=VMAX−VMIN), VAVG, VRMS (RMS over screen window), PVRMS (RMS over one period), VUPPER/VMID/VLOWER (timing thresholds at 90%/50%/10% of VAMP by default), VARIANCE (statistical variance of voltage samples), FREQUENCY, PERIOD, PWIDTH, NWIDTH, PDUTY, NDUTY, RTIME, FTIME, OVERSHOOT, PRESHOOT, PSLEWRATE, NSLEWRATE (slew rate, V/s), TVMAX, TVMIN (time position at which VMAX/VMIN occurs), MAREA (waveform area, V·s over screen window), MPAREA (area per period, V·s), PPULSES, NPULSES, PEDGES, NEDGES. A return value of 9.9E37 is the scope's invalid/overflow sentinel — it means the measurement could not be computed (e.g. FREQUENCY returns 9.9E37 when the timebase is too narrow to show a complete cycle; widen scale and retry); such values come back annotated as invalid/overflow. If the channel's display is OFF it is auto-enabled first (noted in the result). For delay or phase between two channels use measure_between. Do not call concurrently with any other rigol tool.
Inputs: item (required), channel (required).
measure_betweenA
Query a two-source delay or phase measurement between two channels. source1 is the reference channel, source2 is the measured channel. DS1000Z items: RDELAY (rising-edge delay, seconds), FDELAY (falling-edge delay, seconds), RPHASE (rising-edge phase, degrees), FPHASE (falling-edge phase, degrees). DHO series exposes a 4-way matrix: RRDELAY/RFDELAY/FRDELAY/FFDELAY and RRPHASE/RFPHASE/FRPHASE/FFPHASE (first letter = source1 edge, second = source2 edge). On DHO the DS1000Z names are auto-mapped to their homogeneous equivalents (RDELAY→RRDELAY, FDELAY→FFDELAY, RPHASE→RRPHASE, FPHASE→FFPHASE). For stable readings: on DS1000Z, stop acquisition first. On DHO, keep acquisition running (see measure for details). A 9.9E37 result is the scope's invalid/overflow sentinel and comes back annotated; any source channel whose display is OFF is auto-enabled first (noted in the result). Do not call concurrently with any other rigol tool.
Inputs: item (required), source1 (required), source2 (required).
runA
Start continuous acquisition. Returns trigger status after the command. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
screenshotA
Capture a screenshot of the oscilloscope display. Returns the image and the absolute path where the PNG was saved. This is a fallback, not the primary way to read the scope: for numeric readings use measure/measure_between and for trace data use get_waveform — they return compact structured text that is faster and cheaper to reason over than an image. Reach for screenshot only when a genuinely visual check is needed (on-screen menus/UI state, cursor placement, display rendering, or confirming what a human sees). Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
set_channelA
Configure a channel. Only specified parameters are changed. channel: CHAN1–CHAN4. scale_v_div: V/div. offset_v: volts. coupling: AC, DC, or GND. probe: attenuation ratio (1, 10, 100, …). Parameter names match get_scope_state output for easy round-tripping. Returns the resulting channel configuration. Do not call concurrently with any other rigol tool.
Inputs: channel (required), probe, display, coupling, +2 more.
set_cursorsA
Set cursor mode and/or X positions. mode: OFF, MANUAL (fixed time positions, reads voltage at those X points), TRACK (cursors snap to and follow the waveform at the X position). Omit mode to keep current mode. ax/bx: cursor A/B time positions in seconds. Returns the resulting cursor readouts. Do not call concurrently with any other rigol tool.
Inputs: ax, bx, mode.
set_timebaseA
Set the horizontal timebase. scale_s_div: seconds per division (e.g. 0.001 for 1 ms/div). offset_s: shifts the display window; time_start = offset_s − 6×scale_s_div, time_end = offset_s + 6×scale_s_div. Trigger (t=0) is always a zero crossing when using edge trigger. To align the right edge to a zero crossing at time T: set offset_s = T − 6×scale_s_div. To put the trigger at the left edge of the screen: set offset_s = +6×scale_s_div. Parameter names match get_scope_state output for easy round-tripping. Returns the resulting timebase configuration. Do not call concurrently with any other rigol tool.
Inputs: offset_s, scale_s_div.
set_triggerA
Configure edge trigger. source: CHAN1–CHAN4 or EXT. slope: POS (rising), NEG (falling), or RFAL (either). level: trigger level in volts. Returns the resulting trigger configuration. Do not call concurrently with any other rigol tool.
Inputs: level, slope, source.
singleA
Arm the scope for a single acquisition; stops automatically after one trigger event. Returns trigger status. Note: acquisition does not complete until a trigger occurs — call stop or check trigger status before reading measurements. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
stopA
Stop acquisition and freeze the display. Use before reading measurements or cursors for stable values. Returns trigger status after the command. Do not call concurrently with any other rigol tool.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct function: acquisition control (run/stop/single/autoscale), configuration (set_channel/set_timebase/set_trigger), measurement (measure/measure_between), data retrieval (get_waveform/get_scope_state/get_cursor_values), and utilities (idn/check_error/screenshot). Even similar tools like run/stop/single are clearly differentiated by their descriptions.
All tools use snake_case with clear verb prefixes (get_, set_, check_, measure_) and action verbs (run, stop, single, autoscale). Minor inconsistency: some tools are single verbs without object nouns, but the pattern is predictable and readable.
16 tools is slightly above the ideal range but justified for a complex oscilloscope with acquisition, configuration, measurement, and diagnostic capabilities. Each tool has a defined role and none are redundant.
The surface covers all core oscilloscope workflows: acquisition, channel/timebase/trigger configuration, single and between-channel measurements, waveform capture, cursor operations, and diagnostics. Minor gaps like non-edge trigger types (e.g., pulse, video) exist but are not essential for basic usage.
Maintenance
Related MCP Connectors
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Governed AI agent skills — one library, distributed to devs and exposed to remote agents over MCP.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for controlling and reading Rigol DHO800/DHO900 oscilloscopes over LAN via SCPI commands.112MIT
- AlicenseAqualityCmaintenanceEnables LLMs to control RIGOL oscilloscopes over SCPI via LAN or USB, including configuring channels/timebase/trigger, taking measurements, capturing waveforms and screenshots, decoding serial protocols, running FFT analysis, and controlling the built-in AFG.38MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to discover tools, configure a Rigol oscilloscope over LAN, take measurements, and retrieve waveform captures via a containerized stdio server.211MIT
- AlicenseNot gradedqualityCmaintenanceEnables control and data capture from compatible oscilloscopes over SCPI/VISA, including channel and trigger configuration, measurements, waveform retrieval, screenshots, and raw SCPI commands through MCP tools.MIT