siglent-mcp
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., "@siglent-mcpwhat is the supply outputting right now?"
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.
Siglent SPD1305X MCP server
Drive a Siglent SPD1305X (or any SPD1000X series programmable DC power supply) from Claude Code over Ethernet. No EasyPower, no NI-VISA, no drivers. The supply is an LXI-style instrument that accepts plain SCPI on a raw TCP socket (port 5025); this server wraps that as MCP tools using only the Python standard library, so it runs anywhere Python does.
Tools
Tool | What it does |
|
|
| live measured voltage / current / power at the terminals, plus output state and setpoints |
| sample V/I/P over a time window: min/max/mean, CV/CC transitions, decimated preview, optional CSV |
| declare the safe V/A envelope; required before output can be enabled, and it caps the setpoints |
| program the output voltage setpoint (with readback); guarded (see Safety model) |
| program the output current limit (with readback); guarded (see Safety model) |
| enable / disable the physical output (returns resulting state + live measurement) |
| store present settings into an instrument memory slot (1..5, |
| recall settings from an instrument memory slot (1..5, |
| raw SCPI escape hatch for anything else |
Related MCP server: siglent-sds-mcp
Safety model (for agents driving the supply)
The control tools are gated so an autonomous agent cannot energize a circuit carelessly:
Declare limits before energizing.
set_output(True)is refused untilset_safety_limits(max_voltage, max_current)has been called this session. There is no environment default; the agent must consciously commit to a ceiling each time the server starts.Setpoints are capped. After limits are declared,
set_voltageandset_currentrefuse any value above them. To go higher you must raise the limit on purpose. Enabling the output also re-checks that the present setpoints are within the limits.No silent live edits. While the output is ON,
set_voltageandset_currentare refused unless you passIKNOWTHEOUTPUTISONDOITANYWAYS=True. The flag is deliberately loud and hard to pass by accident, and it stands out in logs, so a live change to a powered load is always an explicit decision.monitornever changes anything. It only reads, so it is always safe to run.
Setup
Install the one dependency (the MCP SDK):
pip install "mcp[cli]"...or install the package itself (adds a siglent-mcp console script):
pip install .Find the supply's IP on the unit under System → LAN, or query it over the
network. This unit is at 192.168.178.209. Confirm the link with:
python -c "import socket; s=socket.create_connection(('192.168.178.209',5025),3); s.sendall(b'*IDN?\n'); print(s.recv(200))"You should see Siglent Technologies,SPD1305X,....
Register with Claude Code
claude mcp add --env SIGLENT_HOST=192.168.178.209 --scope user siglent -- python D:/ryzzenDL/siglent-mcp/siglent_mcp.pyThe
--envflag must have another option (here--scope user) between it and the server name, or the CLI mis-parses the name. Ifpythonisn't on PATH, use the fullpython.exepath or-- cmd /c python D:/....
If you pip installed the package, use the console script instead of a path:
claude mcp add --env SIGLENT_HOST=192.168.178.209 --scope user siglent -- siglent-mcpOr add it to a .mcp.json (project scope), see .mcp.example.json:
{
"mcpServers": {
"siglent": {
"type": "stdio",
"command": "python",
"args": ["D:/ryzzenDL/siglent-mcp/siglent_mcp.py"],
"env": { "SIGLENT_HOST": "192.168.178.209" }
}
}
}Then claude mcp list to confirm it connects, and ask Claude things like
"what is the supply outputting right now?", "set it to 5 volts, 0.5 amp limit
and turn the output on", or "read the current and power".
Environment variables
Var | Default | Meaning |
|
| supply IP |
|
| raw SCPI socket port |
|
| socket timeout (seconds) |
|
| channel token (the SPD1305X is single channel) |
|
| hardware voltage ceiling (safe limits and setpoints cannot exceed it) |
|
| hardware current ceiling (safe limits and setpoints cannot exceed it) |
|
| where |
To reuse this server for a different SPD1000X model, override SIGLENT_VMAX /
SIGLENT_IMAX (for example 16 / 8 for an SPD1168X).
SCPI reference (confirmed on this unit, firmware 2.1.1.9)
Purpose | SCPI | Notes |
Identity |
|
|
Firmware |
| |
Set voltage |
| bare |
Set current limit |
| bare |
Read voltage setpoint |
| the programmed value |
Read current limit |
| |
Measure output voltage |
| live at the terminals; 0 while output off |
Measure output current |
| |
Measure output power |
| |
Output on / off |
| write only, there is no |
Status register |
| hex; bit 4 = output ON, bit 0 = CV(0)/CC(1) |
Error queue |
|
|
Save / recall |
| slot 1..5 |
Network |
|
Notes / gotchas
The output state is not queryable directly. There is no
OUTPut?query; readSYSTem:STATus?and test bit 4 (this server does that for you and reportsoutput_on).CV vs CC comes from bit 0 of
SYSTem:STATus?(0 = constant voltage, 1 = constant current). Under no load the supply sits in CV.The LAN service is single client and fragile. The port-5025 SCPI server tolerates one connection and can wedge if a client disconnects abruptly or reconnects in a rapid burst; both the raw socket and the VXI-11 service then reset every new client even though the unit still answers ping. This server avoids that by keeping one persistent, lock serialized connection, closing it gracefully, and pacing reconnects. Do not point multiple clients at the supply at once, and do not fire tools concurrently.
If it does wedge (rare, usually only from an unclean kill), the fix is a power cycle of the unit; ping and the network stack stay up, but the instrument services need the reset. Toggling the output from the front panel is harmless meanwhile.
set_outputenergizes the terminals at the present voltage setpoint. It returns the live measured voltage/current so you can confirm what happened.Setpoints are independent of output state. Changing voltage/current while the output is off just stages the value; it applies when you enable output.
The unit powers on with the output off by default (a front panel setting).
Contributing
Issues and PRs welcome, see CONTRIBUTING.md. CI lints with ruff and runs an import smoke test on Python 3.10 to 3.13 (no supply required).
License
MIT © Valentino Saitz
This server cannot be installed
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/DVSProductions/siglent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server