siglent-sds-mcp

v2.1.0
siglent-sds-mcp Checked 9 hours ago Published 15 days ago

MCP server for Siglent SDS oscilloscope control via SCPI over TCP sockets

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

connect

Connect to a Siglent oscilloscope over TCP. Returns device identification on success. Only the configured oscilloscope (SIGLENT_IP), hosts in SIGLENT_ALLOWED_HOSTS, or, if neither is set, private-LAN IP addresses are accepted, on the instrument port.

ParameterTypeDescription
hoststringIP address of the oscilloscope (defaults to SIGLENT_IP)
portintegerTCP port (defaults to SIGLENT_PORT or 5025)

disconnect

Disconnect from the oscilloscope.

identify

Query the oscilloscope identification (*IDN?). Returns manufacturer, model, serial number, and firmware version.

get_channel

Query the configuration of an analog channel. Returns volts/div, offset, coupling, bandwidth limit, trace on/off, probe attenuation, and unit.

ParameterTypeDescription
channel *stringChannel to query (C1, C2, C3, or C4)

configure_channel

Configure an analog channel's parameters. Only specified parameters will be changed.

ParameterTypeDescription
channel *stringChannel to configure (C1, C2, C3, or C4)
bandwidth_limitbooleanEnable (true) or disable (false) 20MHz bandwidth limit
couplingstringCoupling mode: A1M=AC 1MOhm, A50=AC 50Ohm, D1M=DC 1MOhm, D50=DC 50Ohm, GND=Ground
offsetstringVertical offset with unit (e.g. '0V', '-500mV', '1.5V')
probenumberProbe attenuation factor (e.g. 1, 10, 100, 1000)
tracebooleanTurn channel display on (true) or off (false)
vdivstringVolts per division with unit (e.g. '500mV', '1V', '2V'). Range: 500uV to 10V

configure_acquisition

Control acquisition state and configure timebase/trigger settings. Use 'command' to run/stop the scope, and optionally set timebase and trigger parameters in the same call.

ParameterTypeDescription
commandstringAcquisition command: 'run' starts acquisition (ARM), 'stop' stops it, 'single' sets single trigger mode, 'auto' sets auto trigger mode
timebasestringTime per division with unit (e.g. '1US', '500NS', '10MS', '1S'). Range: 1NS to 100S
trigger_delaystringTrigger delay / horizontal position with unit (e.g. '0S', '-4.8US', '100NS')
trigger_levelstringTrigger level voltage with unit (e.g. '1.5V', '500mV', '-200mV')
trigger_modestringTrigger sweep mode
trigger_slopestringTrigger slope: POS=rising edge, NEG=falling edge, WINDOW=alternating
trigger_sourcestringTrigger source. Setting it selects an edge trigger on that source (TRSE EDGE,SR,<source>), replacing any other trigger type such as pulse or serial.

get_acquisition_status

Get the current acquisition state including sample rate, memory depth, timebase, trigger configuration, and acquisition status.

measure

Take a measurement on a channel. Common parameters: PKPK (peak-to-peak), FREQ (frequency), RMS, MEAN, RISE (rise time), FALL (fall time), DUTY (duty cycle), ALL (all measurements). Installs the measurement on the scope and returns the value.

ParameterTypeDescription
channel *stringChannel to measure (C1, C2, C3, or C4)
parameter *stringMeasurement type: PKPK, MAX, MIN, AMPL, TOP, BASE, CMEAN, MEAN, RMS, CRMS, OVSN, FPRE, OVSP, RPRE, PER, FREQ, PWID, NWID, RISE, FALL, WID, DUTY, NDUTY, ALL

measure_statistics

Control measurement statistics. Turn statistics on/off, reset them, or read the statistical values (current, mean, min, max, std-dev, count) for a measurement.

ParameterTypeDescription
action *stringAction: 'on' enables statistics, 'off' disables, 'reset' clears accumulated stats, 'read' returns current statistics
channel *stringChannel to measure
parameter *stringMeasurement type

get_waveform

Download waveform data from a channel. Returns voltage and time arrays reconstructed from the raw oscilloscope data. By default returns up to 1000 points (downsampled from full memory depth).

ParameterTypeDescription
channel *stringChannel to download waveform from (C1, C2, C3, or C4)
max_pointsintegerMaximum number of data points to return (default 1000). Higher values give more detail but use more context.

screenshot

Capture the oscilloscope screen as a PNG image. Returns a base64-encoded image.

scpi_query

Send a SCPI query to the oscilloscope and return the response. Use this as an escape hatch for queries not covered by other tools. Only queries are accepted: a single header ending in '?' (e.g. '*IDN?', 'C1:VDIV?', 'SARA?'); parameters after '?' only for PAVA? (e.g. 'C1:PAVA? FREQ'). Note: CHDR is set to OFF, so responses contain only values (no headers).

ParameterTypeDescription
command *stringSCPI query to send (e.g. '*IDN?', 'C1:VDIV?', 'SARA?')
timeout_msintegerTimeout in milliseconds (default 5000)