LAB GEAR / HM-LB-094
HM-LB-094 · datasheet

pyMSO5000

Python library and MCP server for Rigol MSO5000 series oscilloscopes over VISA, with every call checked against SCPI definitions extracted from the scope's firmware, plus screenshot and front-panel control

01 · What it does

  • Set channels, timebase, trigger and the built-in waveform generator
  • Run measurements such as frequency on a channel
  • Acquire full waveform records and find edges or summarize ranges
  • Take screenshots and use touchscreen, key and knob controls
  • Reject a bad argument locally before it reaches the scope

02 · Install

$ pip install 'pymso5000[mcp]'
$ pymso5000-mcp --resource TCPIP::192.168.178.102::INSTR
  1. By default the server can change the state of the scope (acquisition, channels, trigger, generator, reset/recall, front-panel controls)
  2. Storage, connectivity, security, calibration, licensing and firmware operations are off by default; enable each with --allow-risk
  3. Any VISA resource works: VXI-11, HiSLIP, USBTMC, GPIB, raw socket or serial; USBTMC needs pyusb and serial needs pyserial
  4. PyPI pymso5000 0.2.0 requires Python 3.14+
  5. The README's client config runs uv from a clone; with a pip install, use pymso5000-mcp as the command

03 · Client config (from README)

{
  "mcpServers": {
    "mso5000": {
      "command": "uv",
      "args": ["run", "pymso5000-mcp"],
      "env": { "PYMSO5000_RESOURCE": "TCPIP::192.168.178.102::INSTR" }
    }
  }
}

Install steps taken from the project README (its recommended path first). Placeholders are the maintainer's. Not bench-tested by HardwareMCP yet.

Weekly bulletin

New hardware MCP servers, notable releases and setup notes. One email, Mondays.