proteus2py-mcp
Drives a licensed Proteus 8 Professional installation in a Wine prefix to run headless circuit simulations with Proteus's ProSPICE engine, open .pdsprj projects, capture netlists, and generate Proteus graphs and screenshots.
Click on "Deploy 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., "@proteus2py-mcp Simulate my RC low-pass filter and measure its -3 dB bandwidth"
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.
Requires your own licensed Proteus 8 Professional (installed in a Wine prefix). proteus2py is an independent project, not affiliated with or endorsed by Labcenter Electronics, and ships no Proteus code, libraries or models: it drives the copy you already have.
Why
Proteus is a capable simulator many universities teach with, but it has no scripting interface. proteus2py reverse-engineered the pieces that matter:
Real numbers, fast. The engine behind Proteus's graph simulation (ProSPICE) is driven directly: ~2 s per run, no GUI. OP, transient, AC, DC sweep (nested), noise; SPICE decks or JSON circuits; 4000+ SPICE models and 37k device-library parts (BC547, 2N2222, 1N4007, TL072, LM324...).
Measurements. -3 dB bandwidth, THD, rise time, expressions of probes (
db(v(out)/v(in)), input impedance), parameter sweeps, Monte Carlo, plots.Proteus's own pictures. Open a real
.pdsprj, run its graph, get the full-size Proteus graph as an image, or bridge it to numbers (simulate_projectcaptures the netlist ISIS hands to ProSPICE and re-runs it headless).AI-ready. An MCP server lets an assistant build, simulate and measure circuits.
Safe. Everything runs in a bubblewrap sandbox (no network, empty
$HOME); the GUI (Xvfb + Wine + Proteus) exists only for the duration of one call.
Related MCP server: CadenceAI MCP
A 60-second tour
pip install proteus2py # or: uvx proteus2py-mcp
proteus2py setup ~/.wine-with-proteus # once: copies a Wine prefix that has Proteus 8 into the sandbox (about 2 GB)
proteus2py doctor
proteus2py spice examples/rc_lowpass.cir # -3 dB at 1000.09 Hzfrom proteus2py import sim, spice
spec = spice.parse(open("examples/ce_amplifier.cir").read())
r = sim.simulate(spec, "ce") # Proteus's engine, headless
print(r["stats"]["v(c)"]) # min / max / mean / rms
print(sim.measure_run("ce", "harmonics", "v(c)", f0=1000)["thd_pct"])MCP server
{ "mcpServers": { "proteus": { "command": "uvx", "args": ["proteus2py-mcp"] } } }Tools: simulate, simulate_spice, measure, derive, sweep, monte_carlo, plot_run, search_models, model_text, simulate_project, gui_run, build_design, ...
Full reference: docs (mkdocs), tool list, example session.
Verified against theory
RC step response (0.03 %), RC -3 dB point (1000.09 Hz), resistor thermal noise (1e-4), BJT bias point and output characteristics, OP07 gain-11 amplifier (5.5002 V), ideal transformer ratio, TL072/LM324 library macromodels, current/voltage-controlled sources, switches and behavioural sources.
Limits
Linux only (Wine + bubblewrap). Digital/mixed-mode parts, microcontroller (VSM) models, .INCLUDE of host files and the distortion card are not supported yet.
Opening the GUI costs 15-40 s per call. build_design writes projects only for a small device set. Details: docs/MCP.md,
docs/NOTES_prospice.md, docs/PDSPRJ.md.
Contributing, license
CONTRIBUTING.md · MIT. Proteus and ISIS are trademarks of Labcenter Electronics Ltd.
Available Tools
24 toolsbuild_designA
Generate a project from seed templates. parts: [{"id":"U1","kind":"6116","x":-3400,"y":1000,"state":0}] (thou).
kinds: LS(pin Q) 6116(A0-A10 CE OE WE D0-D7) 74HC374(D0-D7 Q0-Q7 OE CLK) DIPSW_8(L0-L7 R0-R7) BCD BLUE GRN(P0-P3).
wires: [{"a":"S1.Q","b":"U1.A0","net":"A0","via":[[x,y],...],"jog_x":-5000}]. Without via a 2-bend route is made.
Check conflicts is empty (wires of different nets touching/overlapping = merged nets in Proteus).
Experimental: new designs may fail to load in Proteus; verify with open_project + screenshot.
Inputs: name (required), parts (required), wires (required). Returns: Answer of build_design.
deriveB
Evaluate an expression of a finished run's probes on a grid, e.g. "db(v(out)/v(in))" (gain), "v(in)/i(R1)" (input impedance),
"v(a)-v(b)", "v(out)*i(R2)" (power). AC probes are complex (answer gives mag/dB/deg). measure() accepts such expressions as probe.
Inputs: expr (required), name (required), interp, points. Returns: object
evidenceA
Proteus-authored evidence bundle for a project that contains simulation graphs. In ONE Proteus session: run each graph (all by default, or the
1-based indices in graphs), save Proteus's own full-size graph picture and the data Proteus exports (Graph > Export Graph Data), screenshot the
schematic, and write a manifest with SHA-256 checksums. Use this when reviewers only trust Proteus's own results: no number in it is computed by
Python. Open dialogs/errors during the run are reported in note fields of the screenshots (see gui_run for manual control).
Inputs: project (required), wait, graphs, load_wait, +1 more. Returns: Everything in this bundle was produced by Proteus itself: its simulation, its g…
export_projectB
Copy a sandbox project to a NEW host path. Refuses to overwrite.
Inputs: name (required), dst_path (required). Returns: result
gui_runA
Open a Proteus project in the sandbox, perform actions, return the screenshots, then shut EVERYTHING down (Wine, Xvfb, Proteus)
before the call returns: nothing keeps running between requests. Startup costs 15-40 s per call (raise load_wait for big designs),
so put all steps of a task into one call. actions (in order), each a dict:
{"do":"wait","s":5} | {"do":"click","x":1200,"y":560} | {"do":"click_design","x":-1900,"y":-1000} (thou; toggles a LOGICSTATE/DIP switch)
{"do":"key","keys":"F12"} | {"do":"type","text":"..."} | {"do":"simulate","mode":"graph|animated","graph":2,"wait":15}
{"do":"view_graph","index":0,"name":"g"} (double-click the graph title bar: full-size Proteus graph; picture returned)
{"do":"export_graph_data","name":"x"} (Proteus writes the selected graph's data to exchange/x.dat) |
{"do":"close_graph"} | {"do":"windows"} | {"do":"dismiss","keys":"Return"} (close an error/recovery dialog) | {"do":"screenshot","name":"shot","trim":true,"crop":[x0,y0,x1,y1]}
Screen is 1920x1080. A screenshot is always appended at the end.
Inputs: actions (required), project (required), load_wait, max_seconds. Returns: result
import_projectB
Copy a host .pdsprj into the sandbox (read-only access to the original). Returns the name for other tools.
Inputs: src_path (required), name. Returns: result
import_sdfC
Copy a host .SDF netlist (ISIS SCHEMATIC DESCRIPTION FORMAT) into the sandbox.
Inputs: src_path (required), name. Returns: result
list_projectsC
Projects (.pdsprj) in the sandbox exchange folder.
Inputs: no named parameters. Returns: result
measureA
Measure on a finished simulate() run. what: stats (min/max/mean/rms) | at (value at x) | bandwidth (-3 dB of an AC probe;
ref=first|peak) | harmonics (THD of a transient probe at fundamental f0 over the last periods periods) | edge (10-90 % time, overshoot).
interp: "linear" (default, how Proteus draws traces) or "hold" (step between solver samples; use for pulse edges and digital-like signals).
Inputs: name (required), what (required), probe (required), x, +6 more. Returns: object
model_textC
SPICE text (.MODEL or .SUBCKT) of a Proteus library entry.
Inputs: name (required). Returns: result
monte_carloC
Monte Carlo over component tolerances: tolerances {"R1":"5%","C1":"10%"} (gauss: sigma = tol/3; uniform: +-tol). metric as in sweep(). Returns mean/std/min/max and every run.
Inputs: spec (required), metric (required), tolerances (required), name, +3 more. Returns: n, max, min, std, +3 more
plot_runA
Plot a finished simulate() run (AC: gain + phase; others: traces) as a PNG in sandbox/exchange.
Inputs: name (required), probes, file_name.
project_infoC
Parts (ref, device, pins, properties) read from ROOT.CDB of a project.
Inputs: name (required).
project_netlistA
NO GUI: read a Proteus project (.pdsprj in the sandbox) directly and return the circuit spec extracted from it: components (R, C, L, diodes,
transistors, sources, gates, pots, subcircuits ...), nets, ISIS generators as voltage sources, voltage probes as default probes, current probes as
0 V sources. unsupported lists components that cannot be simulated headless (VSM microcontroller models, behavioural parts ...). The analysis is not
read from the project's graphs: pass one (see simulate) or get an operating point.
Inputs: name (required), analysis. Returns: nets, spec, notes, ignored, +1 more
prospice_runB
Run PROSPICE.EXE headless on an SDF in the sandbox. Experimental: results are binary .PDF (not decoded yet).
Inputs: sdf_name (required), timeout.
reset_sandboxA
Discard the working Wine prefix; re-created from the pristine snapshot on next use.
Inputs: no named parameters. Returns: result
run_sdfB
Headless-run an ISIS SDF netlist already in the sandbox (e.g. a cap_/LISA*.SDF from simulate_project) and decode it.
Inputs: sdf_name (required), name. Returns: Answer of simulate / simulate_spice / run_sdf. Exactly one of op / stats / gain…
search_modelsB
Search Proteus's libraries by name/description words: 4000+ SPICE models/subcircuits (op-amps, MOSFETs, diodes...) and 37k
device-library parts (BC547, 2N2222, 1N4007... most map to a generic model usable as model in simulate).
Inputs: query (required), limit.
simulateA
Simulate a circuit headless with Proteus's own engine (ProSPICE) and return numbers. Fast (~2 s), no GUI. spec = {"parts":[{"ref":"R1","kind":"R","nodes":["in","out"],"value":"1k"}, ...], "analysis": {"type":"op"} | {"type":"transient","tstop":"5m","tmax":"5u"} | {"type":"ac","fstart":10,"fstop":"1M","points":20,"mode":"dec"} | {"type":"dc","source":"V1","start":0,"stop":5,"step":0.1}, "probes":["v(out)","i(R1)"], # default: all node voltages; i(ref) inserts a current probe (current INTO pin 1) "models":{"MYD":{"type":"D","params":{"IS":"1n"}}}, "temp":27} kinds: R C L (value: 1k 10u 2.2M... ISIS notation: m=milli, M=mega) | V I (value=DC; "wave":{"type":"sine","amp":1,"freq":1000} | pulse{low,high,delay,rise,fall,width,period} | exp | sffm | pwl{points:[[t,v]]}; "ac":true marks the AC source) | D Q QP J JP M MP (nodes D:[A,K] Q:[C,B,E] J:[D,G,S] M:[D,G,S,B]; "model": a Proteus library name like 2N3904, 1N4148 or one in spec.models) | E G (nodes [out+,out-,ctrl+,ctrl-], value=gain) | OPAMP (ideal, nodes [in+,in-,out], optional gain/rout) | X (SPICE subcircuit: "subckt":"TL072" from Proteus's libraries or text in spec["subckts"]; nodes in the subcircuit's port order, e.g. op-amps [in+, in-, V+, V-, out]). Node "0" is ground. SPICE sign conventions for I and G. Returns summary numbers (stats / gain / op), a downsampled table and a full CSV path; use measure() for more.
Inputs: spec (required), name, max_rows. Returns: Answer of simulate / simulate_spice / run_sdf. Exactly one of op / stats / gain…
simulate_projectA
Bridge GUI -> numbers: open a Proteus project, trigger its simulation (space = checked graph or graph #n, F12 = animated), capture the
netlist(s) ISIS hands to ProSPICE, close everything, then re-run them headless. Each captured partition becomes a run <name>_p0,
<name>_p1... usable with measure / derive / plot_run / sweep. A screenshot <name>_graph.png of Proteus's own graph is saved too.
The captured netlists are cached by project content: repeating the call for an unchanged project skips the GUI entirely (use_cache=False to force).
Inputs: name (required), key, wait, graph, +3 more. Returns: runs, captured, from_cache, screenshot
simulate_project_noguiA
NO GUI, about 2 s: simulate a Proteus project by extracting its netlist from the file (see project_netlist) and running ProSPICE. Prefer this over simulate_project (which starts Proteus) whenever the design contains only supported parts. Results work with measure / derive / plot_run / sweep.
Inputs: name (required), analysis (required), probes, run_name, +1 more. Returns: Answer of simulate / simulate_spice / run_sdf. Exactly one of op / stats / gain…
simulate_spiceA
Simulate a SPICE deck (R C L V I D Q J M E G X, .MODEL .SUBCKT .PARAM, .OP/.TRAN/.AC/.DC, .PRINT/.PROBE) with Proteus's engine. Library models/subcircuits (e.g. 2N3904, 1N4148, LM324, OP07 as X) are resolved from Proteus's libraries. SPICE number notation (m=milli, MEG=mega). Pick which analysis card to run with analysis_index. Not supported yet: F H K S W B, .INCLUDE.
Inputs: deck (required), name, max_rows, analysis_index. Returns: Answer of simulate / simulate_spice / run_sdf. Exactly one of op / stats / gain…
sweepA
Parameter sweep: re-simulate spec for each value of target ("R1" = part value, "temp", "V1.wave.freq", "C1.value") and
collect one number per run. metric: {"what":"stats","probe":"v(out)","field":"rms"} | {"what":"op","probe":"v(c)"} |
{"what":"bandwidth","probe":"v(out)","field":"f_high_3db"} | {"what":"harmonics","probe":"v(out)","f0":1000,"field":"thd_pct"}.
Inputs: spec (required), metric (required), target (required), values (required), +1 more. Returns: rows, metric, target
write_sdfC
Write an SDF netlist (sections *PROPERTIES *MODELDEFS *PARTLIST *NETLIST) into the sandbox.
Inputs: name (required), text (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
There are several overlapping simulation entry points (simulate, simulate_spice, simulate_project, simulate_project_nogui, run_sdf, prospice_run), plus related distinctions such as project_info vs project_netlist and import_project vs import_sdf. The descriptions do explain when to use each, but an agent still faces a crowded decision space with multiple plausible tools per task.
Names are mostly snake_case and readable, but conventions are mixed: verb_noun (export_project, search_models), noun_noun (project_info, project_netlist, gui_run, monte_carlo, prospice_run), and bare verbs/nouns (simulate, measure, derive, sweep, evidence). The inconsistency is tolerable but not a clean predictable pattern.
At 24 tools this is heavy for the domain, and the count is inflated by several alternative simulation entry points that overlap in purpose. The complexity of Proteus automation justifies a broad surface, but not every tool clearly earns a distinct place.
The surface covers project import/export/listing/info, design generation, multiple simulation paths, measurement, derivation, sweeps, Monte Carlo, plotting, model search, SDF handling, GUI automation, evidence capture, and sandbox reset. The main gaps are minor, such as editing existing designs directly and a few experimental/undecoded paths.
Maintenance
Related MCP Connectors
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
Turn datasheets into source-backed JSON contracts, pinout matrices, and KiCad CAD for AI agents.
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
AI electronics blueprint generator — BOM, wiring, firmware, renders for Arduino/ESP32/RPi.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to automatically generate Multisim circuits, run simulations, extract experimental data, and export circuit diagrams, CSV, waveforms, and lab reports.44MIT
- AlicenseAqualityBmaintenanceExposes Cadence EDA tools such as OrCAD Capture, Allegro PCB Designer, and PSpice to AI assistants, enabling them to browse PCB files, generate schematics and netlists, and run circuit simulations through a license-free, cross-platform interface.132MIT
- AlicenseBqualityBmaintenanceEnables MCP-capable AI clients to query local Proteus component libraries, edit schematics and constrained PCB routing, build 8051 firmware, run simulations, and read verified pin and network states.534MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and harnesses to directly operate Proteus 8 for circuit-spec validation, layout planning, simulation execution, and screenshot-guided step-by-step design and debugging workflows.MIT