cadcraft-electrical-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Industrial electrical drawings (IEC 81346/60617/61082/60204-1 or NFPA 79) generated as DXF and published through CADCraft (PDF, PNG, DWG).
Workflow:
project_create (or project_open). Pick profile iec | iec_legacy | nfpa.
library_search -> device_add (catalog_id or kind; tags auto-assigned per profile). Vendor 2D models: library_import_model (DXF/DWG front view -> clean 1:1 block).
potential_set for extra rails; sheet_add power/control sheets with current paths.
plc_io_assign + sheet_add(kind=plc_io, plc=...); terminals_assign_io for field wiring.
network_link + sheet_add(kind=network).
cabinet_configure (+ cabinet_rails / cabinet_place) -> cabinet_plan.
validate -> build(previews=[...]) -> sheet_preview(n) to visually check -> fix -> rebuild.
cadcraft_open to show the result in the CADCraft desktop app. All changes are saved immediately in .elec.yaml (source of truth). Reply to the user in Spanish.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| project_createB | Create a new electrical project and make it the active one. profile: 'iec' (IEC 81346-2:2019 two-letter codes, vertical paths, A3), 'iec_legacy'
(single-letter -K/-F/-Q codes) or 'nfpa' (NFPA 79 ladder, ANSI B). Standard potentials
L1 L2 L3 N PE 24V 0V are pre-declared. The project is saved as .elec.yaml in the workspace
(or in |
| project_openB | Open an existing project by code (from the workspace) or by the full path of its .elec.yaml. |
| project_listA | List the projects found in the workspace folder. |
| project_infoA | Summary of the active project: title-block data, counts, potentials, sheets, cabinet. |
| project_updateB | Update title-block fields and/or switch the standards profile (iec / iec_legacy / nfpa). |
| potential_setB | Declare a potential (rail): e.g. name='24V' kind='dc_plus', or 'L1_CTRL' kind='ac_control'. The kind decides the conductor colour on drawings and lists. |
| standards_infoB | Rules of a standards profile: letter codes per device kind, wire colours, sheet format, text heights, terminal marking, available profiles and validation rules. |
| symbols_listB | Symbols available for current-path elements (use the id in PathElement.symbol). |
| library_searchB | Search the device catalog (built-in typical devices + your imported vendor models). Example queries: 'S7-1200', 'balluff hub', 'mcb 2p', 'psu 24'. |
| library_import_modelA | Clean a vendor 2D model (DXF or DWG front view) into a 1:1 mm block and add it to your catalog. Removes CADENAS ATTDEFs, connection points and (by default) dimensions, converts DWG through
CADCraft, moves the lower-left corner to 0,0. Use |
| device_addA | Add one or more devices. Give Tags are auto-assigned from the profile letter code when omitted (-QA1, -KF2 ... or CR1, M1 in NFPA). Use mount='field' for devices outside the cabinet, 'door' for door-mounted ones. A terminal_strip device also creates its (empty) strip. |
| device_updateC | Change device data. Renaming ( |
| device_removeA | Remove a device. Fails if it is referenced unless force=true (then references are removed too). |
| device_listB | List project devices (optionally of one kind). |
| sheet_addA | Add a sheet definition. Kinds:
|
| sheet_add_pathsC | Append current paths to an existing power/control sheet. |
| sheet_updateC | Replace fields of a sheet (giving |
| sheet_removeC | Delete a sheet definition. |
| sheet_moveB | Move a sheet to a 1-based position in the set (cover stays first, terminal/cabinet sheets last). |
| sheet_getC | Full definition of one sheet. |
| plc_io_assignA | Assign PLC channels to field devices. Address (%I0.0, %Q0.0, %IW64) and module terminal (DIa.0, DQa.0 ... from the catalog) are auto-assigned when omitted; channel count is checked against the catalog. |
| plc_io_removeC | Remove one I/O channel assignment. |
| plc_io_listB | List I/O assignments (optionally of one PLC). |
| terminals_addA | Add terminals to a strip (created when missing; tag auto -XD1.. if omitted). Either |
| terminals_assign_ioB | Route every field-mounted I/O device through its own terminal on |
| terminals_listC | Terminal strips with their terminals. |
| terminals_removeB | Remove one terminal, e.g. '-XD2:5'. |
| network_linkB | Connect device ports: [{a_device, a_port, b_device, b_port, protocol: profinet|ethernet|iolink, cable?, length_m?}]. The network sheet draws them as a tree rooted at the PLC. |
| network_unlinkC | Remove the link(s) between two devices. |
| network_listC | List network links. |
| cabinet_configureB | Configure the enclosure and mounting plate (mm). Defaults: 400x500x250 enclosure, 350x450 plate, 40x60 wire ducts, 10 mm duct clearance, 20 % spare rail length. |
| cabinet_railsA | Fix which devices go on each DIN rail, top to bottom, left to right (e.g. [["-QB1","-FC1"], ["-KF1","-TB1"]]). An empty list returns to automatic filling. |
| cabinet_placeB | Place a device manually (lower-left corner, plate coordinates, mm). Omit x/y to return to auto. |
| cabinet_planA | Compute the back-plate layout without drawing: device positions, rails, fill %, warnings. |
| validateA | Check the project against the standards profile and consistency rules (designations, I/O, ports, terminals, cross references, cabinet fit/spare space ...). |
| buildA | Generate the drawing set: DXF (all sheets), multi-page PDF (via CADCraft), optional DWG, the 1:1
fabrication DXF of the back plate, XLSX/CSV lists and PNG previews of the sheet numbers in
|
| sheet_previewA | Render one sheet (1-based page number) to PNG with CADCraft and return the image to inspect. |
| reportsB | Export BOM, wire list, terminal list, PLC I/O list and network list to XLSX (+ CSV). |
| cadcraft_statusB | CADCraft installation, version and whether the desktop app control port is reachable. |
| cadcraft_openA | Open a file in the CADCraft desktop app (launches |
| cadcraft_executeB | Escape hatch: run any CADCraft engine command in the running app (e.g. 'zoom', 'layer.set'). Needs the desktop app started with --control. Prefer the domain tools for drawing content. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 41 tools
Most tools have clearly distinct resource/action boundaries across projects, devices, sheets, I/O, terminals, network, cabinet, and library domains. There is some overlap between reports and build (both can emit XLSX/CSV lists), between sheet_add_paths and sheet_update, and between project_open and cadcraft_open, but descriptions mostly clarify the intended use.
The dominant convention is a predictable resource_action pattern (device_add, project_create, sheet_remove, plc_io_assign, terminals_list, network_link, cabinet_plan). A few tools deviate with bare verbs or nouns (reports, build, validate) and the cadcraft_ namespace, but the overall scheme is readable and consistent.
At 41 tools the surface is heavy for an MCP server, even for a broad electrical CAD domain. Many operations are genuinely distinct, but the count exceeds the 25-tool threshold and increases selection burden.
The surface covers the full engineering lifecycle: project/device/sheet CRUD, PLC I/O, terminals, networking, cabinet layout, validation, previews, reports, and build outputs. Only minor gaps exist, such as no project delete/archive, no potential listing/removal, and no dedicated device_get beyond device_list.