cadesimu-mcp
You can parse, validate, inspect, and generate CADe_SIMU .cad schematic/simulation files through MCP tools.
Inspect CADe_SIMU text and return a non-destructive component/record/reference/terminal/coordinate summary.
Check whether a CADe_SIMU document can be reconstructed exactly via lossless round-trip.
List observed CADe_SIMU component type-code mappings.
Report the current manual validation state against CADe_SIMU.
Generate the validated three-phase power side of a direct starter, with configurable motor, protection, contactor, overload, title, and explanations.
Generate a combined power + STOP/START control + KM1 self-hold direct starter, with configurable button names and explanations.
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., "@cadesimu-mcp Generate a direct starter circuit with STOP/START and KM1 self-hold"
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.
cadesimu-mcp
For coding agents: read
AGENTS.mdbefore changing this project. It contains the current validation truth, the simulation/connectivity discovery, architecture rules and the exact next gate.
A small, testable CADe_SIMU .cad parser, circuit generator and MCP server.
The project reverse-engineers only the parts of the CADe_SIMU text format that have been observed and validated. Unknown fields are preserved instead of guessed.
Current status
Validated manually in the target CADe_SIMU installation:
Generated three-phase power circuit opens correctly
L1/L2/L3 -> QF1 -> KM1 -> FR1 -> M1renders correctlyFree-text teaching annotations render correctly
Combined power + control file opens and renders
STOP, START, KM1 auxiliary contact and KM1 coil render
START/STOP simulation behaviour validated end-to-end
PE/earth connection generated and validated
Non-electrical leader/callout line record identified
Broader component catalogue validated with controlled CADe_SIMU saves
The next manual gate is simulation: START must energize KM1, the KM1 NO auxiliary contact must self-hold the coil, STOP must de-energize it, and the motor power contacts must follow KM1.
Related MCP server: kicad-forge
MCP tools
inspect_cad_text— parse records, references, terminals and coordinatesroundtrip_cad_text— prove lossless reconstruction of a.cadtext documentknown_type_codes— list the observed CADe_SIMU record codesvalidation_status— report what has been manually validated in CADe_SIMUgenerate_three_phase_power_circuit— generate the power side of a direct startergenerate_direct_starter_with_control— generate power + STOP/START + KM1 self-hold
The MCP server is implemented and testable, but it does not need to be connected to Universal MCP yet. The generator can be developed and validated independently first.
Architecture
CADe_SIMU text
|
v
+-------------+ +----------------+
| codec.py | | components.py |
| parse/dump | | type catalogue |
+-------------+ +----------------+
Generation path
model.py -> layout.py -> records.py -> circuits/* -> writer.py -> *.cad
\ /
annotations.py
MCP boundary
server.py -> thin wrappers onlyThe prototype generator.py remains only as a compatibility facade. Circuit-building logic is split by responsibility under circuits/.
See docs/ARCHITECTURE.md for module boundaries and docs/CAD-FORMAT.md for format notes.
Development
python -m pip install -e ".[dev]"
pytest -q
ruff check .
python -m compileall src testsSafety / scope
This project generates and inspects schematics and simulation files. It is not a substitute for electrical design review, protection calculations, applicable standards, or safe work procedures on real energized installations.
Research sources
Format behaviour has been inferred from publicly available CADe_SIMU project files, including:
GermanAriza/cadesimu-projectsruajelectric-dotcom/CURSO-CADE-SIMUELECTROALL/CADE-SIMU
Third-party sample files are not copied into this repository unless their licence explicitly permits it.
Available Tools
6 toolsgenerate_direct_starter_with_controlC
Generate power + STOP/START control + KM1 self-hold.
Inputs: motor, title, overload, contactor, +4 more. Returns: object
generate_three_phase_power_circuitC
Generate the validated CADe_SIMU power side of a direct starter.
Inputs: motor, title, overload, contactor, +2 more. Returns: object
inspect_cad_textA
Parse CADe_SIMU text and return a non-destructive component summary.
Inputs: cad_text (required). Returns: object
known_type_codesA
Return observed CADe_SIMU component type-code mappings.
Inputs: no named parameters. Returns: object
roundtrip_cad_textB
Check whether the parser can reconstruct a CADe_SIMU document exactly.
Inputs: cad_text (required). Returns: object
validation_statusA
Return the current manual validation state against CADe_SIMU.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools are mostly distinct: generation, inspection, roundtrip testing, type-code lookup, and validation status each have clear purposes. However, generate_direct_starter_with_control and generate_three_phase_power_circuit both generate starter-related circuits, so an agent could initially confuse which one to use for a full vs. power-only circuit.
The naming is readable and mostly descriptive, but it mixes verb-first patterns (generate_*, inspect_*, roundtrip_*) with noun/adjective phrases (known_type_codes, validation_status). The verb-first tools are consistent, while the two noun-phrase tools break the pattern.
Six tools is a reasonable, focused count for a specialized CADe_SIMU server. The count is appropriate, though the set is slightly narrow because it centers on direct-starter generation plus parser utilities rather than a broader range of circuit generation.
The server covers generation, inspection, roundtrip validation, and type-code lookup, which supports a parser-focused workflow. However, there are notable gaps: no tool for creating/editing arbitrary circuits, no update/delete operations, and no direct way to generate other common motor-control circuits beyond the direct starter.
Maintenance
Related MCP Connectors
Cloud PLC simulator: validate and step-run LAD/SCL programs, run scenarios, return PASS/FAIL.
Generate TIA Portal importable SimaticML (V19) from LadDoc IR, with strict validation, over MCP.
Manage SysML2 projects; check, evaluate, verify, query, document and diagram models.
SysML v2 systems engineering: generate, verify, simulate and export system models from text.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to create, edit, and inspect KiCAD schematic files, including components, wires, labels, and sheets.MIT
- AlicenseBqualityCmaintenanceProvides schematic/PCB analysis, authoring, and SPICE simulation through MCP, enabling direct KiCad file manipulation and verification without requiring KiCad for reading.18MIT
- AlicenseAqualityBmaintenanceEnables lossless parsing, inspection, validation, simulation, and creation or editing of FATEK .ldr ladder-logic files through local stdio MCP tools, including a user-import-verified start/stop template. New files are written to an artifacts directory so existing files and original samples are never overwritten.233MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read and decode, generate from scratch, and reset Crocodile Physics 1.7 circuit files (.cyp) without opening the GUI, exposing components, wires, electrical nodes and saved voltages and currents as MCP tools. Generated circuits open and simulate directly in Crocodile, and the whole format is exposed byte by byte.MIT