Skip to main content
Glama
siglent-sds-mcp

siglent-sds-mcp

siglent-sds-mcp

CI CodeQL OpenSSF Scorecard npm License: MIT

A Model Context Protocol (MCP) server that lets AI assistants control Siglent oscilloscopes over your local network. Connect Claude to your bench and measure, capture, and configure your scope through natural language.

Overview

This MCP server communicates with Siglent SDS oscilloscopes via SCPI commands over TCP sockets (port 5025). No VISA drivers or NI-MAX installation required — just a network connection to your scope.

Oscilloscope screenshot captured via MCP

Oscilloscope display captured through the screenshot MCP tool.

MCP interaction in terminal

Natural-language scope control and measurement workflow in the terminal.

Key features:

  • 12 tools covering channels, timebase, triggers, measurements, waveform capture, and screenshots

  • Auto-connect on startup via environment variable

  • Query queue serializes commands automatically — tools can safely run in parallel

  • Waveform data returned as voltage/time arrays ready for analysis

  • Screenshots captured and converted to PNG for inline display in Claude

  • Raw SCPI escape hatch for any command not covered by the built-in tools

Related MCP server: SkippyMCP

Compatibility

Status

Model

Tested

SDS1104X-E

Expected to work

SDS1000X-E series (SDS1202X-E, SDS1204X-E, etc.)

May work

Other Siglent SDS models with SCPI over TCP support

The server uses standard SCPI commands from the SDS1000X-E Programming Guide. Other Siglent models that support the same command set over port 5025 should work with little or no modification.

Quick Start

You need a Siglent oscilloscope accessible on your network (TCP port 5025). Pick one of the three options below and add the config to your .mcp.json (in your project directory, or ~/.claude/.mcp.json for global access).

Replace 192.168.1.126 with your scope's IP address.

No Node.js installation required. Works on Linux, macOS, and Windows (via WSL2 or Docker Desktop).

The image runs the server as an unprivileged user (node, UID 1000) and contains no setuid or setgid binaries. The extra flags below are optional hardening: --read-only makes the container's filesystem read-only (the server writes no files unless a file audit log is configured, which needs a mounted directory), --cap-drop=ALL drops all Linux capabilities, and --security-opt=no-new-privileges stops a process from gaining privileges through setuid binaries. The server only needs outbound TCP to the instrument.

{
  "mcpServers": {
    "siglent-sds": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
        "-e", "SIGLENT_IP=192.168.1.126",
        "ghcr.io/magnusjohansson/siglent-sds-mcp:latest"
      ]
    }
  }
}

Option B: npx

Requires Node.js 22.15 or later. Downloads and runs the package automatically.

{
  "mcpServers": {
    "siglent-sds": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "siglent-sds-mcp"],
      "env": {
        "SIGLENT_IP": "192.168.1.126"
      }
    }
  }
}

Option C: Clone and build

git clone https://github.com/magnusjohansson/siglent-sds-mcp.git
cd siglent-sds-mcp
npm install
npm run build
{
  "mcpServers": {
    "siglent-sds": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/siglent-sds-mcp/build/index.js"],
      "env": {
        "SIGLENT_IP": "192.168.1.126"
      }
    }
  }
}

Replace /path/to/siglent-sds-mcp with the actual path to your clone.

Environment Variables

Variable

Required

Default

Description

SIGLENT_IP

No

—

Oscilloscope IP address for auto-connect on startup. Always allowed as a connect target.

SIGLENT_PORT

No

5025

TCP port (only change if your setup differs)

SIGLENT_ALLOWED_HOSTS

No

—

Comma-separated hosts connect may reach besides SIGLENT_IP. If neither is set, only private-LAN IP addresses are accepted.

SIGLENT_ALLOW_RAW_SCPI

No

false

Registers the raw scpi_command tool. Requires SIGLENT_IP or SIGLENT_ALLOWED_HOSTS naming specific hosts.

SIGLENT_AUDIT_LOG

No

security events on stderr

stderr for the full audit trail on stderr, an absolute file path for the full trail in that file, or off. See Audit log

SIGLENT_AUDIT_OTLP

No

—

1 to export the audit log to the collector in OTEL_EXPORTER_OTLP_ENDPOINT. Not needed with OTEL_EXPORTER_OTLP_LOGS_ENDPOINT. Without either endpoint, the server refuses to start. See Exporting to OpenTelemetry

SIGLENT_IDLE_TIMEOUT

No

0 (never)

Seconds of inactivity after which the scope connection is released (at most about 24 days). The next tool call reconnects automatically.

Invalid values (e.g. a non-numeric port) stop the server at startup instead of being ignored.

Auto-Connect Behavior

If SIGLENT_IP is set, the server attempts to connect to the scope immediately after starting. This runs in the background and does not block the MCP server — Claude can start using other tools right away. If the scope is offline or unreachable, the server logs a warning and you can connect manually later using the connect tool.

If SIGLENT_IP is not set, the server starts without a scope connection. Use the connect tool to connect when ready.

If the connection is closed (by the idle timeout, a reset after a timeout, or the scope restarting), the next tool call reconnects automatically to the last host, subject to the same host policy as connect. An explicit disconnect turns this off until connect is called again.

One Client at a Time

The scope serves a single TCP client on port 5025. A second client can open the socket but gets no replies, so the server reports that the scope is probably in use by another program. If more than one MCP client uses the same scope, set SIGLENT_IDLE_TIMEOUT (e.g. 60) in each so an idle server releases the scope for the other.

Using with Other AI Clients

The Quick Start examples above use Claude Code's .mcp.json format, which includes a "type": "stdio" field. Other AI clients use the same JSON structure but without the "type" field and with different config file locations.

Claude Desktop

Edit claude_desktop_config.json:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Docker

{
  "mcpServers": {
    "siglent-sds": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
        "-e", "SIGLENT_IP=192.168.1.126",
        "ghcr.io/magnusjohansson/siglent-sds-mcp:latest"
      ]
    }
  }
}

npx

{
  "mcpServers": {
    "siglent-sds": {
      "command": "npx",
      "args": ["-y", "siglent-sds-mcp"],
      "env": {
        "SIGLENT_IP": "192.168.1.126"
      }
    }
  }
}

Note: You must fully restart Claude Desktop after changing the config file.

Cursor

Edit one of:

  • User-level: ~/.cursor/mcp.json (available across all projects)

  • Project-level: .cursor/mcp.json (shared with your team via version control)

You can also add servers through the UI: Settings > Cursor Settings > MCP > Add new global MCP server.

Docker

{
  "mcpServers": {
    "siglent-sds": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
        "-e", "SIGLENT_IP=192.168.1.126",
        "ghcr.io/magnusjohansson/siglent-sds-mcp:latest"
      ]
    }
  }
}

npx

{
  "mcpServers": {
    "siglent-sds": {
      "command": "npx",
      "args": ["-y", "siglent-sds-mcp"],
      "env": {
        "SIGLENT_IP": "192.168.1.126"
      }
    }
  }
}

Windsurf

Edit mcp_config.json:

  • Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

  • macOS/Linux: ~/.codeium/windsurf/mcp_config.json

You can also configure servers through the UI: Cascade panel > MCP icon > Manage MCP Servers > View raw config.

Docker

{
  "mcpServers": {
    "siglent-sds": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
        "-e", "SIGLENT_IP=192.168.1.126",
        "ghcr.io/magnusjohansson/siglent-sds-mcp:latest"
      ]
    }
  }
}

npx

{
  "mcpServers": {
    "siglent-sds": {
      "command": "npx",
      "args": ["-y", "siglent-sds-mcp"],
      "env": {
        "SIGLENT_IP": "192.168.1.126"
      }
    }
  }
}

Google Antigravity

Configuration is managed through the IDE's UI:

  1. Open the Agent pane on the right side of the workspace

  2. Click the ... button at the top

  3. Select MCP Servers

  4. Click Manage MCP Servers

  5. Click View raw config

  6. Add the configuration below and save

Docker

{
  "mcpServers": {
    "siglent-sds": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
        "-e", "SIGLENT_IP=192.168.1.126",
        "ghcr.io/magnusjohansson/siglent-sds-mcp:latest"
      ]
    }
  }
}

npx

{
  "mcpServers": {
    "siglent-sds": {
      "command": "npx",
      "args": ["-y", "siglent-sds-mcp"],
      "env": {
        "SIGLENT_IP": "192.168.1.126"
      }
    }
  }
}

Replace 192.168.1.126 with your scope's IP address in all examples above.

ChatGPT Desktop

ChatGPT Desktop only supports remote HTTPS MCP servers (called "connectors"), not local stdio servers. Since this MCP server uses stdio transport, it is not directly compatible with ChatGPT Desktop.

Tools

12 tools across 6 categories by default, plus scpi_command when raw SCPI is enabled. See docs/tools-reference.md for full parameter details.

Category

Tool

Description

Connection

connect

Connect to oscilloscope over TCP

disconnect

Close the connection

identify

Query device ID (manufacturer, model, serial, firmware)

Channel

get_channel

Read channel configuration (vdiv, offset, coupling, etc.)

configure_channel

Set vdiv, offset, coupling, bandwidth limit, trace, probe

Acquisition

get_acquisition_status

Read timebase, sample rate, trigger settings

configure_acquisition

Set timebase, trigger, run/stop/single

Measurement

measure

Read a measurement (frequency, Vpp, RMS, etc.)

measure_statistics

Enable/read/reset measurement statistics

Waveform

get_waveform

Download voltage/time data arrays

screenshot

Capture scope screen as PNG

SCPI

scpi_query

Send a SCPI query (queries only)

scpi_command

Send a raw SCPI command. Off by default; see Security

Security

Tool arguments come from a language model, which may have been steered by content it read (a datasheet, a web page, a previous tool result). The server therefore treats every argument as untrusted and enforces its checks in the connection layer, the single point every command passes through before it reaches the scope. See docs/threat-model.md for the full analysis.

  • One command per write. Newlines, other control characters and ; are rejected in every command and query, so a parameter can't smuggle in a second command.

  • scpi_query only sends queries: a single header immediately followed by ?. Parameters after ? are only accepted for PAVA? (e.g. C1:PAVA? FREQ). * commands only as pure queries (*IDN?, *OPC?, ...); commands the programming guide documents without a query form (ASET?, ARM, SET50?, MEACL?, ...) and queries that clear a status register as they read it (INR?, *ESR?) are refused.

  • Strict formats for every free-text parameter: voltages (500mV), times (1US).

  • connect is restricted to SIGLENT_IP, SIGLENT_ALLOWED_HOSTS, or, if neither is set, private-LAN IP addresses, on the instrument port. Loopback, link-local (cloud metadata) and host names are refused. The same check applies to automatic reconnects.

  • Raw scpi_command is off by default. Set SIGLENT_ALLOW_RAW_SCPI=true to enable it; it also requires named hosts (* is not accepted).

  • The Docker image runs unprivileged: as node (UID 1000), with the app files owned by root and no setuid or setgid binaries. The documented docker run adds --read-only --cap-drop=ALL --security-opt=no-new-privileges. Before publishing, every release checks that the image built from the release commit doesn't run as root, has no setuid or setgid binaries, and starts with those flags. A compromised server process can't modify its own code or use root inside the container as a step towards the host.

  • Audit log: every refusal, with the rule that refused it, every connect and disconnect, and every state-changing tool call, as JSON lines on stderr by default; optionally the full trail, including every line written to the scope, and an export to OpenTelemetry. See Audit log.

  • Replies stay matched to their queries. After a timeout, or if a command unexpectedly produces output, the connection is reset so a late reply can't be read as the answer to the next query.

What it does not protect against:

  • Settings that can harm the scope or the circuit. configure_channel can switch a channel to 50 Ω input coupling (A50/D50) on models that have it. A signal above the 50 Ω input's rating can then exceed what the input is specified for; check your scope's manual. With raw SCPI enabled, the model can change any setting.

  • Other clients on port 5025. The instrument has no authentication: anyone with network access to it can control it directly, without this server. Network segmentation is the control for that.

  • Who is calling. In stdio mode, whoever can start the server has full access.

Example Conversations

Read a channel configuration

You: What's the current setup on channel 1?

Claude calls get_channel with channel: "C1" and returns the volts/div, offset, coupling, and other settings.

Measure a signal

You: Measure the frequency and peak-to-peak voltage on channel 2.

Claude calls measure twice — once with parameter: "FREQ" and once with parameter: "PKPK" on channel C2 — and reports both values.

Capture and analyze a waveform

You: Download the waveform from channel 1 and tell me what you see.

Claude calls get_waveform on C1, receives voltage/time data, and analyzes the signal shape, frequency, amplitude, and any anomalies.

Take a screenshot

You: Show me what the scope screen looks like right now.

Claude calls screenshot, receives a base64 BMP image, and displays it inline.

Configure the scope for a specific measurement

You: Set up channel 1 for a 3.3V logic signal — DC coupling, 1V/div, trigger on the rising edge at 1.6V.

Claude calls configure_channel (setting vdiv, coupling) and configure_acquisition (setting trigger source, level, slope) in sequence.

Audit log

The server records what it refused, what it connected to and, optionally, every line it wrote to the scope, as one JSON object per line. Without configuration, the security events go to stderr, which MCP clients usually capture in their own logs.

SIGLENT_AUDIT_LOG

Where

What

not set

stderr

Security events: refusals (guard.refused), instrument.connect/disconnect, state-changing tool calls with their arguments and results, server.start/stop, and audit.loss

stderr

stderr

The full trail: also every MCP message, read-only tool calls, and every line written to the instrument with its reply (scpi.write, scpi.result)

/absolute/path.jsonl

that file, appended, created with mode 0600

The full trail

off

nowhere

Nothing

A refused query looks like this (shortened):

{"time":"2026-11-16T09:12:03.412Z","event.name":"guard.refused","jsonrpc.request.id":"7","guard":"query","rule":"query.not_a_query","scpi.command":"C1:VDIV 1V","audit.sink":"stderr","audit.seq":12}
  • Every event carries the JSON-RPC request id of the call that caused it, so a refusal, the tool call and every instrument write it led to can be joined. Events no call caused (auto-connect, an idle close, the scope closing the socket, shutdown) say so in cause; a reconnect carries the id of the call that needed it, with cause: reconnect.

  • Refusals have stable rule ids (query.not_a_query, wire.compound, schema.invalid, raw.disabled, host.not_allowed, ...), so they can be counted and alerted on without parsing messages.

  • Losses are visible. Each sink numbers its records (audit.seq) without gaps; a missing number is a lost record, and an audit.loss event reports the count once the sink accepts records again. The server never waits for the log: if stderr is a pipe nobody reads, records are dropped and counted, and tool calls carry on. If a write is stuck in the kernel at shutdown (a file on a hung network filesystem), the server ends itself with SIGKILL after about 2 s rather than hanging; that shows as status 137, without a final server.stop.

  • What's logged: tool arguments and the scope's text replies, each cut at 512 characters. Waveform and screenshot data are logged by size only, and tool results are summarised as types and sizes, not copied. The instrument's *IDN? reply includes its serial number. Nothing from the environment is logged beyond the effective configuration.

  • What it can't do: a local log records an honest server's activity. A compromised server process could rewrite the file, forge events or send commands without logging them; the file lives on the same machine, under the same user. Exporting to a collector (below) keeps a copy the process can't change afterwards. There's no caller identity in stdio mode: the client's name is recorded as self-reported. The design is in docs/audit-log-design.md.

Exporting to OpenTelemetry

The server can also export the full trail as OTLP log records, over HTTP with JSON payloads, to a collector or any backend that accepts OTLP. It's opt-in: set SIGLENT_AUDIT_OTLP=1 together with the standard endpoint, or use the logs-specific OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, which is the opt-in on its own:

"env": {
  "SIGLENT_IP": "192.168.1.126",
  "SIGLENT_AUDIT_OTLP": "1",
  "OTEL_EXPORTER_OTLP_ENDPOINT": "https://otlp.example.com:4318",
  "OTEL_EXPORTER_OTLP_HEADERS": "authorization=Bearer <ingest-only key>"
}
  • Why the opt-in: the generic OTEL_EXPORTER_OTLP_ENDPOINT is often inherited from an environment set up for another application's telemetry, and the audit trail carries tool arguments and the instrument's serial number. On its own it only gets a startup note. OTEL_LOGS_EXPORTER=none or OTEL_SDK_DISABLED=true keeps the export off in any case. OTEL_EXPORTER_OTLP_LOGS_ENDPOINT is used as-is; the generic endpoint gets /v1/logs appended, and the server logs the URL it posts to.

  • The export is independent of SIGLENT_AUDIT_LOG: with SIGLENT_AUDIT_LOG=off it's the only copy. OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES work as usual, except that service.instance.id stays the server's own, so exported records join the local ones. Other protocols (grpc, http/protobuf) and other OTEL_LOGS_EXPORTER values aren't supported; the server says so at startup.

  • Each record's event name is siglent.audit.<event> (for example siglent.audit.guard.refused), refusals and failures are WARN, and the fields above are attributes. Attribute names follow the OpenTelemetry conventions where one exists (gen_ai.tool.name, mcp.method.name, server.address); the MCP conventions are still at Development status, so a name may change, and the CHANGELOG will say so.

  • An invalid endpoint stops the server at startup. An unreachable or failing collector doesn't: tool calls carry on, and the server warns on stderr (once, then at most once a minute). Records a failed export didn't deliver, and records a collector rejects in a "partial success" answer, are counted and reported with audit.loss once the export works again. At shutdown, server.stop goes to the collector first; the local sinks get theirs after that final export, carrying otlp.lost (every record that didn't reach the collector) and otlp.unexported (those still waiting), and stderr says how many were lost.

  • What can be lost: with a healthy collector, about a second's worth of records not yet exported. While the collector is failing or unreachable, everything still queued, up to 2048 records, plus what a retrying export holds. Losses are counted, not silent, but the records themselves are gone.

  • What the export protects: records exported before a compromise can't be changed by the compromised process, provided the backend is append-only and the key can only ingest, not delete or query. Use such a key. After a compromise the process holds that key, so it could stop exporting or send forged records.

  • The key isn't logged: it's sent only as the configured header, and the logged endpoint has no userinfo or query string. The exporter's own errors are logged as a message and status code only, never with the collector's response body or a stack trace, and every configured header value (and each part of it, such as the token in Bearer <token>) is removed from them.

  • The exporter adds 11 packages, all from the OpenTelemetry project. They're loaded only when an endpoint is set.

In Docker, pass the key by name, so its value comes from the client's environment and isn't written into the MCP config, where docker inspect and ps would show it: "-e", "OTEL_EXPORTER_OTLP_HEADERS" (or use --env-file).

Docker: stderr works unchanged with --read-only. A file needs a mounted directory that UID 1000 can write: add "-v", "/host/audit:/audit", "-e", "SIGLENT_AUDIT_LOG=/audit/sds.jsonl" to the docker run arguments. On Linux the file then belongs to UID 1000 with mode 0600, so only that user (or root) can read it on the host; add "--user", "<your uid>:<your gid>" to run the server as your own user instead (still not root). Docker Desktop on macOS and Windows maps ownership to your user.

Architecture

Claude Code <-- stdio/JSON-RPC --> siglent-sds-mcp <-- TCP/SCPI --> Oscilloscope:5025
  • Transport: MCP over stdio (JSON-RPC 2.0)

  • Protocol: SCPI commands over raw TCP sockets, newline-terminated

  • Security checks: Every command and query passes through the connection layer, which checks it before writing to the socket (see Security), and records refusals and writes in the audit log.

  • Audit log: src/audit/ hooks the MCP transport (every message, before the SDK validates it) and the connection, and writes JSON lines through a non-blocking writer; all stderr output goes through that writer, so a stuck stderr can't stall the server. src/audit/otlp.ts exports to OpenTelemetry when enabled.

  • Query Queue: All SCPI queries are serialized through an internal queue. The oscilloscope processes one command at a time, so even when tools issue parallel requests (via Promise.all), the queue ensures they're sent sequentially.

  • Binary Block Parsing: Waveform and screenshot data use IEEE 488.2 definite-length block format (#9XXXXXXXXX + data bytes + \n\n). The connection layer detects and parses these automatically.

  • Voltage Reconstruction: Raw ADC codes are converted to voltages: code * (vdiv / 25) - offset, with two's complement handling for signed values.

Development

npm run build       # Compile TypeScript
npm run watch       # Watch mode — recompile on changes
npm run dev         # Build and run
npm run inspector   # Launch with MCP Inspector for debugging
npm test            # Unit, integration and end-to-end security tests (SCPI simulator)
npm run hardware-check -- <scope-ip>   # Security checks against a real scope; restores the settings it changes
npm run e2e-loopback -- <generator-ip> <scope-ip>   # Siglent SDG CH1 -> coax -> scope CH1: generate with siglent-sdg-mcp, measure with this server

Releasing

Publishing is triggered by publishing a GitHub Release, not by pushing a tag:

  1. Bump version in package.json and SERVER_VERSION in src/server.ts, and add a CHANGELOG.md section. Merge to master.

  2. Create a release (draft first) with tag vX.Y.Z on master, using the changelog section as the release notes. Tick "pre-release" exactly when the version has a suffix such as -rc.1.

  3. Publish the release. The Release workflow runs three jobs in order: verify, then npm, then docker.

The verify job fails, and nothing is published, if the tag doesn't match the package.json version, SERVER_VERSION differs from it, repository.url doesn't match the repository exactly, the pre-release checkbox doesn't match the version, the tagged commit isn't on master, or the build or tests fail. The Docker image is only pushed after the npm publish succeeds. A pre-release publishes to the npm next dist-tag and doesn't move the Docker latest tag. A draft release publishes nothing.

Docker (local build)

Build the image locally:

docker build -t siglent-sds-mcp .

Then use the local image in your .mcp.json:

{
  "mcpServers": {
    "siglent-sds": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges",
        "-e", "SIGLENT_IP=192.168.1.126",
        "siglent-sds-mcp"
      ]
    }
  }
}

Project Structure

src/
  index.ts              # Entry point, MCP server setup
  connection.ts         # TCP socket manager with query queue (security choke point)
  security/             # Guards (rule ids), host policy, parameter formats
  audit/
    audit.ts            # Audit events, levels, sinks, loss reporting
    transport.ts        # Hooks on the MCP transport
    writer.ts           # Non-blocking writer for stderr and files
    bounds.ts           # Size limits for logged content
    otlp.ts             # OpenTelemetry export
  tools/
    connection.ts       # connect, disconnect, identify
    channel.ts          # get_channel, configure_channel
    acquisition.ts      # configure_acquisition, get_acquisition_status
    measure.ts          # measure, measure_statistics
    waveform.ts         # get_waveform, screenshot
    scpi.ts             # scpi_query, scpi_command

Troubleshooting

"Not connected to oscilloscope"

The scope isn't connected yet. Either set SIGLENT_IP in your .mcp.json env for auto-connect, or use the connect tool manually.

Connection timeout

  • Verify the scope's IP address (check the scope's Utility > Interface menu)

  • Ensure port 5025 is accessible (try telnet <scope-ip> 5025 from your machine)

  • Check that no firewall is blocking the connection

  • The scope only accepts one TCP connection at a time — close any other SCPI clients

Query timeout

Some SCPI queries can take a few seconds, especially on slower scope models. The default timeout is 5 seconds. For scpi_query, you can increase the timeout with the timeout_ms parameter.

Docker: can't reach the oscilloscope

By default, Docker containers can reach LAN devices via the bridge network (NAT). If the container can't connect to your scope:

  • Verify the scope is reachable from your host: telnet 192.168.1.126 5025

  • On Linux, try adding --network host to the Docker args:

    "args": ["run", "--rm", "-i", "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges", "--network", "host", "-e", "SIGLENT_IP=192.168.1.126", "ghcr.io/magnusjohansson/siglent-sds-mcp:latest"]

    Note: --network host does not work on macOS or Windows Docker Desktop.

Docker: wrong architecture / exec format error

The published image supports linux/amd64 and linux/arm64. Docker should pull the correct one automatically. If you see an exec format error, pull explicitly:

docker pull --platform linux/amd64 ghcr.io/magnusjohansson/siglent-sds-mcp:latest

"CHDR" appears in responses

This shouldn't happen — the server sets CHDR OFF on connect. If you see command headers in responses, try disconnecting and reconnecting.

License

MIT — see LICENSE for details.

Available Tools

12 tools
configure_acquisitionA

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.

Inputs: command, timebase, trigger_mode, trigger_delay, +3 more.

configure_channelA
Idempotent

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

Inputs: channel (required), vdiv, probe, trace, +3 more.

connectA

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.

Inputs: host, port.

disconnectA

Disconnect from the oscilloscope.

Inputs: no named parameters.

get_acquisition_statusA
Read-only

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

Inputs: no named parameters.

get_channelA
Read-only

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

Inputs: channel (required).

get_waveformA
Read-only

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).

Inputs: channel (required), max_points.

identifyA
Read-only

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

Inputs: no named parameters.

measureB
Idempotent

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.

Inputs: channel (required), parameter (required).

measure_statisticsA

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

Inputs: action (required), channel (required), parameter (required).

scpi_queryA
Read-only

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).

Inputs: command (required), timeout_ms.

screenshotA
Read-only

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

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 12 tools

    Disambiguation4/5

    Each tool targets a distinct resource or action: channel read vs. write (get_channel/configure_channel), acquisition status vs. configuration, waveform vs. screenshot. The only real soft spots are measure vs. measure_statistics and scpi_query, which by design can duplicate any other tool as an escape hatch.

    Naming Consistency4/5

    Names are uniformly snake_case with a predictable get_/configure_/measure_ prefix scheme for the resource-oriented tools. The lifecycle verbs (connect, disconnect, identify, screenshot) deviate slightly but remain obvious and readable.

    Tool Count5/5

    12 tools is squarely in the well-scoped range for an oscilloscope control server. Every tool covers a real instrument workflow (connection, channels, acquisition/trigger, measurement, data capture) with no filler.

    Completeness4/5

    Core lifecycle is well covered: connect/disconnect, identify, channel and acquisition read/write, measurements and statistics, waveform download, screenshot, plus a SCPI escape hatch for gaps. Missing dedicated math/FFT, digital (MSO) channels, serial decode, and reference waveform handling, which the escape hatch only partially mitigates.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      An MCP server for controlling Rigol DS1000Z series oscilloscopes over LAN using natural language. It enables users to take measurements, configure instrument settings, and capture screenshots directly through an MCP client.
      17
      46
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server for controlling Rigol oscilloscopes from an AI assistant. It translates MCP tool calls into SCPI commands over PyVISA.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that enables AI agents to operate an oscilloscope through high-level tools like signal capture and measurement, abstracting vendor-specific SCPI commands.
      18
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server that lets AI assistants control Siglent SDG waveform generators over a local network using natural language, supporting signal generation, modulation, sweep, burst, and arbitrary waveforms.
      20
      69 npm
      MIT