rigol-dho-mcp
This server provides programmatic control and data acquisition from Rigol DHO800/DHO900 oscilloscopes over LAN via the Model Context Protocol (MCP).
Identify & Status: Query device identity (
*IDN?) and retrieve comprehensive status including trigger state, sample rate, memory depth, timebase, and per-channel settings.Run Control: Start/stop acquisition, arm single-shot, autoset, clear waveforms, and force trigger.
Configure Channels: Enable/disable channels, set vertical scale, offset, coupling (AC/DC/GND), probe ratio, bandwidth limit, and invert.
Configure Timebase: Set horizontal scale (s/div) and offset.
Configure Trigger: Set edge trigger source, slope (positive/negative/either), level, and sweep mode.
Configure Acquisition: Set memory depth, acquisition type (Normal/Average/Peak/Ultra), and average count.
Measurements: Perform automatic measurements (VPP, VRMS, VAVG, frequency, period, rise/fall time, duty cycle, etc.) on any channel.
Waveform Capture: Retrieve scaled voltage/time data from screen (~1000 points) or deep memory (scope must be stopped), with summary statistics and optional decimated sample arrays.
Screenshot: Capture the scope's display as a PNG image.
Raw SCPI Commands: Send arbitrary SCPI commands as an escape hatch for any functionality not covered by dedicated tools (opt-in via
RIGOL_ENABLE_SCPI_RAW=1).Deployment: Runs locally via stdio or as a Docker container with HTTP or stdio transport, compatible with standard MCP clients.
Click on "Install 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-dho-mcpIdentify the oscilloscope"
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 DHO800/DHO900 MCP Server
An MCP (Model Context Protocol) server for controlling and reading Rigol DHO800/DHO900 series oscilloscopes over LAN, built on the SCPI command set from the official programming guide. It talks directly to the scope's raw SCPI socket on port 5555, so there's no VISA install to deal with.
Tools
Tool | Purpose |
|
|
| Trigger state, sample rate, memory depth, timebase, per-channel settings |
| run / stop / single / autoset / clear / force_trigger |
| Enable, V/div, offset, coupling, probe ratio, BW limit, invert |
| Main timebase scale and offset |
| Edge trigger source, slope, level, sweep mode |
| Memory depth, acquisition type, averages |
| Automatic measurements (VPP, VRMS, FREQuency, RTIMe, etc.) |
| Scaled voltage/time data from screen or deep memory, with stats |
| PNG of the scope's display |
| Raw SCPI escape hatch for anything else in the guide |
| Set cursor mode (OFF/MANual/TRACk), type, source, and positions |
| Read cursor positions and delta/frequency readouts |
| Delay or phase between two channels (RRDelay, FFPHase, etc.) |
Related MCP server: rigol-mcp
Scope setup
Connect the scope to your LAN and grab its IP address under
Utility > IOon the scope.That's really it. The raw SCPI socket on port 5555 is open by default.
Run locally (stdio)
pip install .
RIGOL_HOST=192.168.1.100 rigol-dho-mcpThis starts the server on stdio, ready for any MCP client to spawn and talk to it directly.
Testing SCPI commands locally (CLI)
rigol-dho-cli talks straight to the scope over the same SCPI client the MCP server uses — no MCP client required. Handy for checking a command works, or debugging the connection before wiring it up as a tool.
pip install .
# one-shot: run one or more commands and print the result, then exit
RIGOL_HOST=192.168.1.100 rigol-dho-cli "*IDN?" ":CHANnel1:SCALe?"
# interactive REPL: omit the commands
RIGOL_HOST=192.168.1.100 rigol-dho-cli
scpi> *IDN?
RIGOL TECHNOLOGIES,DHO814,...
scpi> :RUN
OK (system error queue: 0,"No error")
scpi> :DISPlay:DATA? PNG
binary response (34521 bytes) -> saved to capture_00001.png
scpi> quitIt reads the same RIGOL_HOST / RIGOL_PORT / RIGOL_TIMEOUT env vars as the server (or pass --host / --port / --timeout directly). Queries (commands ending in ?) print the response; writes are followed by a :SYSTem:ERRor? check so a typo shows up immediately. Binary responses (screenshots, waveform data) are saved to a file in the current directory instead of being dumped to the terminal.
Run with Docker
HTTP transport (recommended for containers)
docker build -t rigol-dho-mcp .
docker run -d --name rigol-dho-mcp \
-p 8000:8000 \
-e RIGOL_HOST=192.168.1.100 \
rigol-dho-mcpThis exposes the MCP endpoint at http://<docker-host>:8000/mcp (streamable HTTP).
Using Docker Compose
Alternatively, you can use docker-compose.yml:
# Copy the example environment file and edit it with your scope's IP address:
cp .env.example .env
# Edit .env to set your scope's IP address under RIGOL_HOST
# Then start the service:
docker compose up -d
# View logs:
docker compose logs -f
# Stop the service:
docker compose downstdio inside Docker
docker run -i --rm \
-e RIGOL_HOST=192.168.1.100 \
-e MCP_TRANSPORT=stdio \
rigol-dho-mcpThe container needs to be able to reach the scope's IP. On Linux the default bridge network usually works fine; if your scope only sits on the host's LAN segment and bridge routing doesn't reach it, add
--network host. For docker-compose, you can uncomment thenetwork_mode: "host"line indocker-compose.yml.
Using it with an MCP client
This is a standard MCP server, so any client that speaks MCP over stdio or streamable HTTP can use it. The config shape is basically the same everywhere: point the client at the rigol-dho-mcp command (stdio) or the running HTTP endpoint, and pass RIGOL_HOST.
stdio:
{
"mcpServers": {
"rigol-dho800": {
"command": "rigol-dho-mcp",
"env": { "RIGOL_HOST": "192.168.1.100" }
}
}
}Streamable HTTP (pointing at the Dockerized server from above):
{
"mcpServers": {
"rigol-dho800": {
"url": "http://localhost:8000/mcp"
}
}
}If your client doesn't support remote MCP servers natively, use mcp-remote as a bridge instead:
{
"mcpServers": {
"rigol-dho800": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8000/mcp"]
}
}
}Check your client's docs for exactly where this config goes; the values themselves don't change.
Environment variables
Variable | Default | Meaning |
| — (required) | Scope IP address or hostname |
|
| SCPI socket port |
|
| I/O timeout, seconds |
|
| Transport |
|
| HTTP bind address/port |
|
| Set to |
Notes
Deep-memory reads (
get_waveformwithmode="memory") need the scope in the STOP state, so callrun_control("stop")first. Data comes back in chunks and gets decimated tomax_pointsbefore returning.Waveform samples are scaled to volts using the preamble:
V = (raw − YORigin − YREFerence) × YINCrement.A measurement value near
9.9e37just means it's invalid for the current signal.get_measurementflags this for you.scpi_commandis opt-in (setRIGOL_ENABLE_SCPI_RAW=1). It checks:SYSTem:ERRor?after write-only commands, so a typo in raw SCPI shows up right away instead of failing silently.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattjax16/rigol-dho-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server