ETCAD
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ETCAD
Let Claude read, edit and draw electrical CAD drawings, live, next to you.
An MCP server for DWG/DXF wiring diagrams and cable sheets: no CAD needed to read, edit and create native DWG files, PDF → DWG with real, editable text, and an AutoCAD-style live view where you watch Claude draw, chat with it and draw yourself.
You ask in the chat of the live view, Claude asks one question and draws the cable sheet step by step, then changes its length on request. Full video (MP4, 72 s)
What it does
🖥️ Live view | A local AutoCAD-style page: watch Claude draw step by step with its reasoning, chat with it without an API key (messages go to your Claude Code session), point at areas, and draw and edit yourself, then save back to DWG. |
📄 PDF → DWG | Vector PDFs whose text is just pen strokes (typical CAD plots with SHX fonts) become DWGs with real TEXT entities, a title-block block with attributes, and a review report. |
✏️ DWG without a CAD | Read, edit and create native DWG files with |
🔌 Wiring tools | Follow a wire, find a free spot for a label, compare two DWGs by content, a bill of materials from cable sheets to Excel, cable sizing and wire colours (EN 60204-1). |
🤖 Sub-agents | Claude can split the work among agents: each one gets its own chat in the page, with model, effort and its reasoning, and its own pane. |
🏭 SPAC Automazione CAD (optional) | If present, also headless |
Related MCP server: AutoCAD MCP Server
Highlights
The tools you will use most (66 in total, full list below):
Tool | What it does |
| Open the live view, show a DWG/DXF in it, send the current reasoning to the page |
| Read your messages and the areas you selected in the page, and answer there |
| Convert a vector PDF to DWG with real texts, one DWG per page plus all sheets side by side |
| Fix the few texts the recognizer got wrong; corrections are kept and re-applied |
| Batch edits on a DWG: texts, move, delete, properties, layers, lines, polylines, labels, dimensions, blocks |
| Find & replace in one DWG or a whole folder (TEXT, MTEXT, attributes, block definitions) |
| List or set title-block attributes on every sheet |
| Graphic check: overlapping texts, texts touched by lines, duplicates |
| Follow a wire from a point: connected entities, free ends and the labels near them |
| What really changed between two DWGs (or two folders), independent of handles |
| Bill of materials (sleeves, ferrules, connectors, cables, lengths) from cable sheets, to Excel |
The live view
Everything runs on 127.0.0.1: no external service, no upload.
Drawing commands (type them in the command line, AutoCAD aliases work): LINEA (L), POLILINEA (PL),
RETTANGOLO (REC), CERCHIO (C), ARCO (A), TESTO (T, DT), QUOTA (DIM), ETICHETTA (LE), SPOSTA (M),
COPIA (CO), CANCELLA (E), MODTESTO (ED), PROPRIETA (PR), ANNULLA (U), RIPETI, SALVA (Ctrl+S),
DISTANZA (DI), AREA, ID, FILO (follow a wire), TROVA (Ctrl+F), ZOOM, PAN, ORTO (F8), OSNAP (F3),
GRIGLIA (F7).
For Claude: CHIEDI (select an area and ask), NOTA (a note on a point), MATITA and NUVOLA (sketch and
revision cloud), CHAT.
PDF → DWG
Many CAD programs plot SHX fonts as line segments, so a PDF of a drawing has no text at all. pdf_a_dwg groups the
strokes into characters, learns the glyphs of the document (a dictionary built with offline OCR), rebuilds spaces,
case, rotation and insertion points, finds the frame repeated on every page and turns it into a block with attributes.
On the example set in this repository (6 A3 sheets, generated with ETCAD and plotted to PDF), with no manual
correction: 505 of the 601 texts (84%) come back identical and the pages overlay the PDF with a similarity of
0.96–0.98, in 30 seconds on an ordinary office PC. The rest is listed in the report for review and fixed with
pdf_correggi, which remembers the corrections for the next conversion.
Examples
All the drawings in this repository are invented and generated from code (examples/genera_esempi.py).
examples/set_cablaggi/: the 6 sheets in one DWG (frame as a block with attributes) and as a PDF, the input for trying PDF → DWG.examples/cavo_m12/: the single sheet of the demo.examples/README.md: prompts to try with these files.
Install
Requirements
Python 3.11+ (or uv).
ODA File Converter (free) to read and write DWG. ETCAD finds it in the usual folders, or set
ODA_FILE_CONVERTERto the executable. Without it, ETCAD works on DXF.Optional: the
ocrextra (RapidOCR, offline) for PDF → DWG.
Claude Code
claude mcp add etcad -- uvx --from git+https://github.com/Samuk734/ETCAD --with rapidocr_onnxruntime etcador with pip:
pip install "etcad[ocr] @ git+https://github.com/Samuk734/ETCAD"
claude mcp add etcad -- etcadClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"etcad": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Samuk734/ETCAD", "--with", "rapidocr_onnxruntime", "etcad"]
}
}
}Check the setup by asking Claude to run spac_status: it reports the DWG converter, OCR and, if present, SPAC.
Quick start
Ask Claude, for example:
"Open the live view and show me
examples/set_cablaggi/Set cablaggi di esempio.dwg.""Convert
Set cablaggi di esempio.pdfto DWG and tell me which texts you are not sure about.""On every sheet set the date in the title block to 01/03/2026 and the drafter to A.B."
"Check sheet 4 for overlapping texts and fix them."
"Follow the wire that starts at pin 3 of -XS1 and tell me where it ends."
"Make the bill of materials of all the cable sheets in this folder, in Excel."
"Open two agents: one checks sheets 2-3, the other sheets 4-6."
Working in the live view
Claude opens the page with
vista_apri(or runetcad-vistayourself; it serveshttp://127.0.0.1:8765).Every change Claude makes with the editing tools shows up animated on the sheet, with its reasoning.
To talk to Claude from the page, ask it to keep listening: it calls
vista_ascoltain a loop (in Claude Code it can also runetcad-vista ascolta --continuoin the background). Your messages, selected areas and notes reach the session that is working, with no API key.You can draw and edit on the sheet; Salva DWG writes your changes to a copy (
_modificato.dwg) or over the file, with a backup.
A tip for your CLAUDE.md:
When you work on DWG files with ETCAD, open the live view (vista_apri), send your reasoning with vista_pensa,
show every change with vista_mostra and keep vista_ascolta armed to read my messages from the page.All 66 tools
Tool names and descriptions are in Italian (the project was born in Italy); Claude understands them in any language.
Tool | |
| Open the live view (local server and page) |
| Show a DWG/DXF; if the sheet is already open, animate only the differences |
| Watch a file or folder and reload when it changes on disk |
| Write the current reasoning in the page |
| Write in the page chat, as Claude or as an agent |
| Wait for a message or a request from the page |
| What you pointed at: areas, points, objects, sketches, with texts, handles and an image |
| Answer a request (shown under it and in the chat) |
| Highlight an area for you, e.g. before asking a question |
| PNG of a sheet or zone, as the page draws it |
| Graphic check of an open sheet, results shown in the page |
| Find texts in the open sheets |
| Put a PDF page under a sheet |
Tool | |
| Layouts, entities by type, layers, blocks, styles |
| Entities with handle, position and text, filterable |
| Image of a DWG/DXF or of a zone in mm |
| 1:1 vector PDF of a DWG, readable anywhere |
| Texts and symbols of one sheet of a multi-sheet drawing, with handles |
| Image of one sheet |
| Excel data links and tables in a DWG |
Tool | |
| Batch operations (JSON), native DWG output with backup |
| Change texts and attributes by handle |
| Delete entities by handle |
| Freeze, thaw or recolour a layer |
| Find & replace in a DWG or a folder |
| Read or set title-block attributes; remove a zone from the frame |
| Copy a zone into another drawing, with scale or frame-to-frame alignment |
| DXF → native DWG |
Tool | |
| Real differences between two DWGs or two folders: added, removed, changed texts, per layer |
| Overlapping texts, texts touched by lines, duplicates |
| Follow a wire from a point |
| Where a new label fits without touching lines or texts |
| Width of a text in its font (SHX or TrueType) |
| Bill of materials from cable sheets, to Excel |
| Copy an output folder to its destination with MD5 checks, comparing DWGs by content |
Tool | |
| Pages, sizes, producer, vector or raster, exploded text |
| Image of a page or zone |
| Convert to DWG with real texts and a frame block |
| The recognized texts, with id, position, height and confidence |
| Apply corrections and convert again (seconds) |
| The glyph dictionary, to label uncertain characters |
| Overlay of a PDF page and the converted DWG, with a similarity score |
| Overlay of two PDFs |
Tool | |
| Cable sizing: cross-section, ampacity, protection, voltage drop |
| Wire colour by function (EN 60204-1) |
| Draw a sheet from a JSON specification |
| Excel bill of materials (components and cables) |
| Data consistency checks (EN 60204-1, IEC 81346, EN 61439) |
For projects made with SPAC Automazione CAD (an AutoCAD OEM). The database tools only read the project files; the others need SPAC installed.
Tool | |
| Installations, converters, OCR; timing of a headless run |
| Projects, their sheets and settings |
| The project database, read-only, and its checks |
| Multi-sheet drawings |
| Scripts and plots with |
| Automation of a running SPAC through COM |
Development
git clone https://github.com/Samuk734/ETCAD && cd ETCAD
pip install -e ".[ocr,dev]"
python -m pytest tests -q # tests that need SPAC are skipped
python examples/genera_esempi.py # regenerate the example drawings
python examples/video/registra_demo.py video # re-record the demo (needs playwright and imageio-ffmpeg)Developed and tested on Windows 10 with Python 3.12. The core (ezdxf, PyMuPDF, shapely) is cross-platform; the SPAC and COM tools are Windows only. The live view's interface is in Italian.
License
MIT. The Hershey Roman Simplex font in etcad/dati is used for previews under the original Hershey terms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The Canva MCP server connects AI assistants (like Claude, ChatGPT, and Cursor) to Canva's API, enabling them to create and manage designs directly within chat conversations. Key capabilities include generating new designs from prompts, autofilling templates, searching and resizing existing designs, importing files from URLs, exporting designs as PDFs or images, and managing folders and comments without switching between tools.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted MCP server for AI photo editing: nothing to install, no desktop photo editor needed.
MCP server for detecting and redacting PII (Personally Identifiable Information) in PDF documents.
Related MCP Servers
- AlicenseAqualityAmaintenanceThis MCP server enables AI agents to understand and analyze electrical schematics from Cadence and Altium for comprehensive design reviews through natural conversations.11491 npm69Apache 2.0
- FlicenseNot gradedqualityCmaintenanceAn MCP server that bridges Claude with AutoCAD, enabling to generate architectural floor plans, draw geometry, and export DXF files just by describing what you need in natural language.-
- AlicenseAqualityCmaintenanceMCP server for full AutoCAD automation, AutoCAD LT automation, and headless DXF generation. It provides 8 consolidated tools for drawing, entity, layer, block, annotation, P&ID, view, and system operations via MCP stdio transport.1247MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server for read-only inspection of AutoCAD DWG files, enabling AI agents to open drawings, query objects by handle or filter, and explore properties and references.22GPL 3.0