siglent-sds-mcp
v2.1.0MCP server for Siglent SDS oscilloscope control via SCPI over TCP sockets
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. 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. The server uses standard SCPI commands from the SDS1000X-E Programming Guide.
Summary extracted from the README.
siglent-sds-mcp
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 display captured through the screenshot MCP tool.

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
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.
Option A: Docker (recommended)
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:
- Open the Agent pane on the right side of the workspace
- Click the
...button at the top - Select MCP Servers
- Click Manage MCP Servers
- Click View raw config
- 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_queryonly sends queries: a single header immediately followed by?. Parameters after?are only accepted forPAVA?(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). connectis restricted toSIGLENT_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_commandis off by default. SetSIGLENT_ALLOW_RAW_SCPI=trueto 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 documenteddocker runadds--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_channelcan 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_channelwithchannel: "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
measuretwice — once withparameter: "FREQ"and once withparameter: "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_waveformon 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) andconfigure_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, withcause: 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 anaudit.lossevent 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 finalserver.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_ENDPOINTis 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=noneorOTEL_SDK_DISABLED=truekeeps the export off in any case.OTEL_EXPORTER_OTLP_LOGS_ENDPOINTis used as-is; the generic endpoint gets/v1/logsappended, and the server logs the URL it posts to. - The export is independent of
SIGLENT_AUDIT_LOG: withSIGLENT_AUDIT_LOG=offit's the only copy.OTEL_SERVICE_NAMEandOTEL_RESOURCE_ATTRIBUTESwork as usual, except thatservice.instance.idstays the server's own, so exported records join the local ones. Other protocols (grpc,http/protobuf) and otherOTEL_LOGS_EXPORTERvalues aren't supported; the server says so at startup. - Each record's event name is
siglent.audit.<event>(for examplesiglent.audit.guard.refused), refusals and failures areWARN, 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.lossonce the export works again. At shutdown,server.stopgoes to the collector first; the local sinks get theirs after that final export, carryingotlp.lost(every record that didn't reach the collector) andotlp.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.tsexports 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:
- Bump
versioninpackage.jsonandSERVER_VERSIONinsrc/server.ts, and add aCHANGELOG.mdsection. Merge tomaster. - Create a release (draft first) with tag
vX.Y.Zonmaster, using the changelog section as the release notes. Tick "pre-release" exactly when the version has a suffix such as-rc.1. - Publish the release. The
Releaseworkflow 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> 5025from 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 hostto the Docker args:
Note:"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"]--network hostdoes 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.