AutoCAD MCP Pro
Provides production-grade AutoCAD automation for AI agents, using live COM automation on Windows or a headless DXF engine. Enables drawing creation and editing, entity and layer management, dimensioning, QA/critique workflows, checkpoints, and P&ID/mechanical drawing operations through a typed tool contract.
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.
AutoCAD & CAD&PILLAR MCP: CadBridge
AI agents edit the drawing open in AutoCAD or CAD&PILLAR, live, as DWG. There is no DXF conversion, no copy of the file, and no COM.
Quick install: let your AI agent do it
Paste this complete prompt into Claude Code, Codex, Gemini CLI, Cursor, Antigravity, Copilot, or any AI agent that can run commands on your Windows PC:
Install the CadBridge MCP server on this Windows PC (per-user, no admin rights needed) by following these steps carefully:
1. Get the files:
- If you are not already inside a clone of this repo containing the `cadbridge\` folder, download and extract the latest release into a temporary folder (e.g. `$env:TEMP\cadbridge-install`):
powershell -NoProfile -Command "Invoke-WebRequest 'https://github.com/MuhammadAbbasi/cadbridge-mcp/releases/latest/download/cadbridge.zip' -OutFile \"$env:TEMP\cadbridge.zip\"; Expand-Archive \"$env:TEMP\cadbridge.zip\" -DestinationPath \"$env:TEMP\cadbridge-install\" -Force"
- Locate the `cadbridge\` folder and verify it contains: `installer.ps1`, `VERSION`, `bin\net8\CadBridge.dll`, `bin\net48\CadBridge.dll`, and `src\cadbridge_mcp.py`. Also read `cadbridge\AGENTS.md` if you need troubleshooting details.
2. Follow these strict rules:
- NEVER close, kill, or restart AutoCAD, CAD&PILLAR, or any of my AI apps yourself (do not run Stop-Process or taskkill).
- Do NOT edit AI app MCP config files by hand; `installer.ps1` updates them safely with backups.
- Do NOT modify CAD security settings (`TRUSTEDPATHS` or `SECURELOAD`).
3. Check that CAD is closed:
- Run `tasklist /FI "IMAGENAME eq acad.exe"` and `tasklist /FI "IMAGENAME eq cadp.exe"`.
- If either is running, stop and ask me to save my work and close the CAD, then continue after I confirm it is closed.
4. Run the non-interactive installer from inside the `cadbridge\` folder:
- Run:
powershell -NoProfile -ExecutionPolicy Bypass -File .\installer.ps1 -Cads all -Clients found -Yes
- (If I asked for specific AI apps only, use `-Clients <comma-list>` from: `claude-code`, `claude-desktop`, `codex`, `cursor`, `windsurf`, `vscode`, `antigravity`, `gemini-cli`. If `Install.cmd` in this folder passes `-LogDir`, pass the same `-LogDir`.)
- Note: the first run downloads `uv`, Python 3.12, `fastmcp`, `pywin32`, and `pillow` (requires internet, takes ~1-3 minutes).
5. Verify the output:
- Success ends with `Step 5/5 Done`.
- If it exits with code 1, read the last lines:
- `Close the CAD first` -> ask me to close the CAD and re-run step 4.
- `Start these once, close them, then run the installer again` -> ask me to open that CAD once and close it, then re-run step 4.
- `! <file> is not plain JSON` -> show me the JSON snippet printed by the installer so I can add it manually.
- Any other error -> report the exact message and stop.
6. Tell me when finished:
- Remind me to: (1) start AutoCAD or CAD&PILLAR and open a drawing, (2) restart the configured AI app(s) (including this session/terminal) so they load the new MCP config, and (3) test in a new chat with: "use cad_status, then list the layers of the open drawing" (verifying `cad_status` returns `connected` and `version` matches `VERSION`).The agent finds your CAD and your AI apps, installs everything for this Windows user (no admin rights), and asks you to close the CAD when it has to. Then restart the CAD and your AI app, and ask: "use cad_status, then list the layers of the open drawing".
Claude Code, Claude Desktop, Codex, Cursor, Windsurf, VS Code Copilot, Google Antigravity, Gemini CLI, or any other MCP client gets tools to read the open drawing, change it in transactions, show it as an image and save it.
AI app ──MCP (stdio)──▶ cadbridge_mcp.py ──named pipe──▶ CadBridge.dll inside the CAD ──▶ open DWG
(Python, local) (this user (runs every request on the
only) CAD's main thread, .NET API)Related MCP server: AutoCAD MCP Pro
Install by hand
Download cadbridge.zip (about 100 KB: installer, prebuilt plugin, MCP server) from the latest release and unzip it on the PC.
If this Windows user has never started the CAD, start it once and close it.
Double-click
cadbridge/Install.cmd. It works in five steps:Step
What happens
1. CAD programs
finds AutoCAD / AutoCAD-based verticals / CAD&PILLAR on the PC and asks which to set up
2. AI apps
asks which apps get the tools (the ones found on the PC are suggested)
3. Close programs
asks you to close the CAD and those apps, and waits until they are closed
4. Install
plugin + autoload at every CAD start; uv, Python and the libraries are downloaded automatically when missing; each app's MCP config is updated (with a backup)
5. Done
start the CAD, open a drawing, ask your AI app: "use cad_status, then list the layers of the open drawing"
No administrator rights are needed: everything is per Windows user. Uninstall.cmd
removes it all. For automation: installer.ps1 -Cads all -Clients found -Yes (or -Clients claude-code,cursor).
cadbridge/AGENTS.md is what the quick install has the agent read: what CadBridge is, how
to run the installer without questions, what each error means, how to verify the connection, and never to close
your CAD itself.
Supported
CAD | Plugin build | Status |
CAD&PILLAR 11 (AutoCAD 2025 OEM platform) |
| used and tested live |
AutoCAD 2025, 2026 and AutoCAD-based verticals (Civil 3D, Map 3D...) |
| built for them, not yet run live |
AutoCAD 2021, 2022, 2023, 2024 |
| built for them, not yet run live (the .NET Framework code path is tested) |
AutoCAD LT, AutoCAD 2020 and older | none | not supported (LT has no .NET API) |
AI app | Configured in |
Claude Code |
|
Claude Desktop |
|
OpenAI Codex |
|
Cursor |
|
Windsurf |
|
VS Code (Copilot agent) |
|
Google Antigravity (IDE / |
|
Gemini CLI |
|
anything else | stdio: |
Tools
Tool | Does |
| the CADs running with CadBridge, which one is targeted, its open drawings |
| target one CAD when several run ( |
| the active drawing: units, extents, entity count, layers, blocks |
| model-space entities with geometry (filter by layer / DXF type) |
| a batch of edits in one transaction: all or nothing (see below) |
| any command line of the CAD, including the OEM's own commands ( |
| evaluates AutoLISP and returns its value as JSON (lists, points, handles, selection sets), or the error; also the way to set variables in CAD&PILLAR |
| ESC ESC: cancels whatever command is active and waits until the CAD is idle |
| new drawing, open a DWG (or activate it if already open), save as DWG |
| picture of the CAD window, to show the user the result |
cad_ops operations (coordinates WCS in drawing units, angles in degrees CCW; every create takes layer (created
when missing) and color (ACI)):
Group | Ops |
geometry |
|
annotation |
|
fills |
|
3D (always WCS, whatever the UCS) |
|
blocks |
|
editing |
|
reading / settings |
|
Working principles
These are the rules the current design follows, each learnt the hard way:
No COM. Some OEMs switch off AutoCAD's ActiveX completely: in CAD&PILLAR every call returns
E_FAIL, even from inside the process. CadBridge uses the managed .NET API, which every AutoCAD-platform product keeps.No DXF. Edits go straight into the open drawing's database;
cad_savewrites the DWG. The user keeps working on the same file.Main thread only. Requests arrive on a pipe thread and run on the CAD's main thread through its WPF dispatcher. Idle-event polling looked equivalent and hung after the first drawing was opened.
One batch, one transaction.
cad_opseither applies every op or none; a failing op names its index and nothing is written.One pipe per CAD process, readable only by the same Windows user:
\\.\pipe\cadbridge-<exe>-<pid>. AutoCAD and CAD&PILLAR can run side by side.Compile against the oldest release of a platform generation. A plugin referencing AutoCAD.NET 25.0 loads in 2025, 2026 and OEMs on them; one referencing 25.1 (built from CAD&PILLAR's own DLLs) would not load in 2025.
Autoload through the CAD's own registry key (
...\Applications\CadBridge,LOADCTRLS=2). OEMs ignore theApplicationPluginsbundle folders, and the CAD's trusted-path security setting is never changed.The MCP server runs from local disk. Started from a network share, imports took 38 s, longer than the 30 s MCP connect timeout. Locally it starts in about 3 s.
Sketch, accept, enhance. Agents should draw a sketch, show it with
cad_screenshot, get the user's approval, then refine it with real blocks (fixtures, furniture, trees, lawn hatch).Wait on the pipe thread, never on the main thread.
cad_command/cad_lispqueue the text, then poll the CAD (through the dispatcher) until it is idle; a command still waiting for input at the timeout is cancelled.Short LISP lines, plain LISP. CAD&PILLAR's LISP reader crashes on one long line (a 1,021-character line took the CAD down), and it registers none of a plugin's .NET commands or LISP functions, nor accepts
setvarfrom one. So LISP is sent in lines of about 200 characters and returns its value as JSON written by the LISP itself.src/live_check.pychecks all of it on a running CAD.
Example: a 2-bedroom house on a plot
cadbridge/examples/ contains a test drawn live in CAD&PILLAR on a plot plan, in millimetres:
house_sketch.py: the sketch, with 15 cm walls, 60 cm doors, room areas and dimensions.house_enhance.py: the enhancement. It defines blocks (WC, basin, shower, kitchen sink, hob, fridge, beds, wardrobes, sofa, dining set, bench, shrub), uses CAD&PILLAR's own tree symbol, and adds a lawn hatch that follows the curved plot edge, plus a paved terrace and path.
Both run through the MCP layer (fastmcp.Client calling cad_ops).
Troubleshooting
Symptom | Fix |
| start the CAD; |
| a dialog is open in the CAD or a command waits for input: close it |
|
|
the AI app shows no tools | restart the app: apps read their MCP config only at start |
hatch looks solid | pass |
Something else? Open an issue
with the CAD and its version, the AI app, what you asked, and the end of %APPDATA%\CadBridge\cadbridge.log and
%LOCALAPPDATA%\CadBridge\server.log.
Development
cadbridge/
Install.cmd, Uninstall.cmd, installer.ps1 one-click installer (Windows PowerShell 5.1)
AGENTS.md what an AI agent needs to install, verify and use it
bin/net8/, bin/net48/ prebuilt plugin
src/CadBridge.cs the plugin: pipe server, dispatcher, ops, MiniJson
src/build.ps1 pwsh src/build.ps1 [-Target net8|net48|all]
src/cadbridge_mcp.py the MCP server (fastmcp)
src/live_check.py live acceptance check on a running CAD (works in a new drawing)
examples/ the house testbuild.ps1 uses the C# compiler bundled in PowerShell 7 and downloads Autodesk's AutoCAD.NET reference packages
from nuget.org, so no .NET SDK or CAD installation is needed to build. Close the CAD before installing a new build:
the DLL is locked while the CAD runs.
The original COM / ezdxf server
This repository started as a fork of U-C4N/Autocad-MCP (MIT), AutoCAD
MCP Pro: about 260 tools over COM (live, full AutoCAD only) or ezdxf (headless DXF), plus engineering packs
(mechanical, P&ID, architecture, solar). It is still here (server.py, backends/, engineering/) and documented in
docs/autocad-mcp-pro.md. It cannot attach to CAD&PILLAR, whose COM is disabled; use
CadBridge for that.
License: MIT.
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
Read, query, edit and render DWG drawings with AI. No AutoCAD required.
- AutoMEPDeprecatedapp.automep
Edit AutoCAD and Revit MEP drawings from Claude or ChatGPT in plain English.
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to create, read, validate, and critique production CAD drawings through one typed contract, running either live against AutoCAD over COM on Windows or headlessly with ezdxf anywhere. It covers mechanical parts and ISO sheets, architectural floor plans, P&ID drafting and reading, plus dimension, tolerance, and standards checks.-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to drive production-grade CAD automation either live through COM on Windows or headlessly via ezdxf on any platform, using one typed contract across both engines. It covers drawing creation, P&ID, mechanical and architectural drafting, ISO GD&T and dimension-tolerance validation, takeoffs, and drawing understanding.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to drive AutoCAD automation through one typed contract over two engines — live COM on Windows or headless ezdxf anywhere — to draft, edit and read drawings, including mechanical parts and sheets, architectural plans with measured room areas, and P&ID diagrams. It also critiques existing drawings, checks scales and topology, and produces takeoff workbooks.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to drive production-grade CAD automation against live AutoCAD on Windows or headlessly through ezdxf anywhere, using one typed contract across both engines. It covers drawing and dimensioning, ISO GD&T and tolerance validation, P&ID drafting and reading, mechanical part sheets, architectural plans, and quantity takeoffs into workbooks.-