
Bench DC Power Supply
io.github.K-Dense-AI由 GitHub 帳號 K-Dense-AI 發布v0.1.3更新於 Oct 24, 2026
MCP server for programmable DC bench power supplies from Rigol, Siglent and Aim-TTi.
概覽
此 MCP 伺服器讓助理透過 SCPI 控制 Rigol、Siglent 與 Aim-TTi 可程式直流桌上型電源,設定電壓、電流限制並開關輸出。
- 可以做什麼
- 讀取儀器狀態:連線資訊、各通道設定值、實測電壓/電流/功率、CV/CC 模式、保護位準與跳脫狀態、錯誤佇列,以及供除錯與記錄的原始命令日誌。設定通道電壓與電流限制設定值,並依安全限值與機型量程檢查。單獨開啟或關閉某個輸出,或將全部輸出關閉作為緊急停止。設定過壓與過流保護,並在排除原因後清除保護跳脫。在斷電重啟或更換線材後重新連線儀器。
- 適用情境
- 適合讓助理操作真實桌上型電源進行測試量測:設定供電軌、分段升壓並回讀電流、觀察 CV/CC 行為,或快速關閉輸出。內建模擬器可在沒有硬體時試用。
- 執行需求
- 以 Python 套件(labmcp-bench-psu,透過 uvx 啟動)在本機執行。需要一台支援的儀器,可經 USB-TMC、LAN(VXI-11 或原始 socket)、RS-232 或 GPIB 存取,位址由 LABMCP_ADDRESS 或 address 選項提供;已包含 PyVISA,也可改用 NI-VISA 或 Keysight IO Libraries。未宣告驗證機制。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Bench DC Power Supply,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Bench DC Power Supply — MCP Server
Let an AI agent set voltages and current limits, switch outputs on and off, watch constant-voltage / constant-current behaviour and configure over-voltage / over-current protection on programmable DC bench power supplies from Rigol, Siglent and Aim-TTi, using each vendor's documented remote command set. The dialect is detected from *IDN?.
Keysight / Agilent and Rohde & Schwarz supplies are intentionally not covered: both vendors publish official MCP servers. Use the Keysight MCP Server for Instrument Control or the MCP server included in Rohde & Schwarz RsInstrument. This server refuses to connect to them.
Try it without hardware
The simulated outputs drive resistive loads (CH1 10 Ω, CH2 100 Ω, CH3 open), so you can watch the CV → CC crossover and trip OVP/OCP.
Connect your instrument
- Instrument setup: enable the interface you use (Rigol: Utility → I/O Config; Siglent: System → Interface; Aim-TTi: LAN works out of the box, USB appears as a virtual COM port). Note the IP address or VISA resource string.
- Find the address:
uvx labmcp ports(serial) orpython -m pyvisa info/ your VISA vendor's tool (USB/LAN). - Test the connection:
USB-TMC and VXI-11 addresses use PyVISA (installed with this package; add
?backend=@ivito use NI-VISA / Keysight IO Libraries instead of pyvisa-py).
Add to your MCP client
Claude Code
Claude Desktop / Cursor / Windsurf (claude_desktop_config.json, .cursor/mcp.json, …)
Add --read-only to allow monitoring only: setpoint changes and output_on are hidden, while output_off and all_outputs_off stay available. For other clients, generate the snippet with uvx labmcp config bench-psu --address TCPIP0::192.168.1.50::INSTR --client vscode.
Tools
get_connection_info, get_command_log and reconnect are built into every LabMCP server.
Safety limits
Override at launch, e.g. --limit max_voltage_v=12 --limit max_current_a=0.5. Setpoints are also checked against each model's settable range. output_on reads the setpoints back from the instrument first, so a value changed on the front panel cannot slip past the limits.
Example prompts
- "Show me all channels of the power supply: setpoints, measured current and whether they're in CV or CC."
- "Set CH1 to 12 V with a 200 mA current limit, set OVP at 13 V, then turn it on and tell me how much current the LED array draws."
- "Ramp CH2 from 0 to 5 V in 0.5 V steps, reading the current at each step, and plot the I-V curve of the load."
- "The heater is drawing more than expected: turn every output off now."
- "Channel 1 tripped. What happened, and is it safe to clear the trip?"
Notes
- Dialect detection:
*IDN?manufacturer "RIGOL" → Rigol, "Siglent" → Siglent, "THURLBY THANDAR"/"TTi"/"Aim" → Aim-TTi. Force one with--option dialect=rigol|siglent|ttifor rebadged units. Models not in the built-in table are treated as--option channels=Nchannels with no model maxima (the safety limits still apply). - Rigol: setpoints via
:SOUR<n>:VOLT/CURR, readback via:APPL? CHnand:MEAS:ALL? CHn, mode via:OUTP:MODE? CHn(CV/CC/UR), OVP/OCP via:OUTP:OVP|OCP[:STAT|:VAL|:QUES?]. Trips are cleared with:OUTP:OVP|OCP:CLEAR, which only clears the flag.[:SOUR]:VOLT:PROT:CLEis never sent because the programming guide says it also turns the output on. DP831 CH3 is a negative output: give negative voltages (not yet verified on hardware). Over RS-232 the DP800 needs CR LF line endings (?write_termination=CRLF). - Siglent: SPD3303X/X-E have no programmable OVP/OCP and report output state and CV/CC only through the
SYST:STAT?status word (CH1/CH2). CH3 is fixed (2.5/3.3/5 V by front-panel switch) and can only be switched on/off; its state is not readable. SPD1000X has OVP/OCP levels only (always armed, trip state not readable). The error reply format (0 No Error) is not SCPI-standard, so settings are verified by reading them back. The server pauses 0.1 s after each command to Siglent supplies (--option write_delay_s=to change); Siglent's own examples wait between commands, but the required delay is not documented. - Aim-TTi: there is no live CV/CC query, so
modeis inferred from readback vs setpoints (mode_source: "inferred"). Trip flags come from theLSR<n>?limit event register, which latches events and is cleared by reading it. CPX/QL/PL-P protection is always armed (levels only); MX models can also switch OVP/OCP on/off.TRIPRSTclears trips on all outputs (not documented for MX100T/TP). Original QL P/T models have no output-state query, so theiroutput_onis reported as unknown.OPALL 0is sent first inall_outputs_off, then every output individually. - Tracking / series / parallel modes, timers, sequences, remote sense and saved set-ups are not exposed. Put the supply in independent mode before handing it to an agent.
- GW Instek GPP and B&K Precision 9130/9140 supplies are not supported yet: too many reply formats are undocumented in their manuals to implement them safely.
Hardware verification
來源:servers/engineering/bench-power-supply/README.md,提交 46545ea
工具
0版本歷史
2- v0.1.3最新Sep 27, 2026
- v0.1.1Sep 26, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分