CadMcp.Server
Drives desktop AutoCAD from an MCP host: query drawings, create and modify entities, run batch edits with precise per-handle rollback, and extract device lists from layouts.
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.
CAD-MCP for AutoCAD
中文文档: README.zh-CN.md
Drive desktop AutoCAD from any MCP host (WorkBuddy, Claude, Codex, VS Code, and other MCP clients) — query drawings, create and modify entities, run batch edits with precise per-handle rollback, and extract device lists from layouts.
Official sources: this GitHub repository is the upstream. The Gitee repository is the official mirror (code and release assets synced). Any same-named repository or installer found elsewhere is not published by the maintainer.
Status: v1.0.0 — first public release. Read path (C-family) and write path (B-family batch editing with precise per-handle rollback) are both complete and verified: 187 automated tests, real-machine acceptance on AutoCAD 2025/2026/2027, 151-op batch rollback with zero residue.
Architecture
Three stages, one direction of dependency:
┌──────────────────────────┐
│ MCP host (LLM) │ WorkBuddy / Claude / any MCP client
└────────────┬─────────────┘
│ MCP protocol (stdio)
┌────────────▼─────────────┐
│ CadMcp.Server │ 56-tool catalog + validation gates
│ (this repo, net8.0) │
└────────────┬─────────────┘
│ Named Pipes, JSON envelope per command
┌────────────▼─────────────┐
│ CadMcp.Bridge │ nine-step pipeline inside AutoCAD
│ (loaded by AutoCAD) │ parse → auth → gates → dispatch → execute → receipt
└────────────┬─────────────┘
│ AutoCAD .NET API (acdbmgd, main-thread only)
┌────────────▼─────────────┐
│ AutoCAD 2025/2026/2027 │ user's licensed installation
└──────────────────────────┘Details in docs/en/ARCHITECTURE.md.
Related MCP server: AutoCAD 2024 MCP
Supported AutoCAD versions
AutoCAD | Shell | Bundle component |
2025 |
|
|
2026 |
|
|
2027 |
|
|
One bundle ships all three shells; each AutoCAD year loads its own.
Installation
Just want to use it? No code needed. Follow docs/en/MANUAL-INSTALL.md — per-host guides with screenshots for WorkBuddy, Doubao Work, TraeWork, and QwenWork, ~2 min each.
Details for contributors below. In short:
Download the release zip (checksums provided) and unzip to a space-free path
Add a custom MCP connector in your host pointing at
server\CadMcp.Server.exeStart AutoCAD — the plug-in bundle deploys and auto-loads on first connector registration (trust paths are written automatically when AutoCAD is closed)
Building from source
dotnet build src/CadMcp.Server # server (net8.0, no AutoCAD references)
dotnet test tests/CadMcp.Tests # 187 tests, no AutoCAD needed
# shells need the local AutoCAD SDK:
dotnet build shells/acad26 -p:AcadCADDir="C:\Program Files\Autodesk\AutoCAD 2026"See docs/en/ARCHITECTURE.md for the module map and docs/en/TESTING.md for the test layout.
Repository layout
Path | Content |
| CadMcp.Server / CadMcp.Bridge / CadMcp.Shared (net8.0) |
| AutoCAD plug-in shells, one per year (acad25/26/27) |
| xUnit suite (187 tests) + D4Harness real-machine acceptance tool |
| Architecture, installation guide, testing, changelog, trademark notes |
| Wire-protocol schema (JSON envelope) |
| Packaging and VM verification scripts |
| (reserved) future installer |
Trademark notice
AutoCAD is a trademark of the Autodesk group of companies. CAD-MCP is not affiliated with, endorsed, or sponsored by Autodesk. See docs/en/TRADEMARK-NOTES.md.
License
Apache-2.0 — see LICENSE.
Feedback
GitHub Issues, or email woody0123@126.com.
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
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
- AutoMEPDeprecatedapp.automep
Edit AutoCAD and Revit MEP drawings from Claude or ChatGPT in plain English.
Global CAD/BIM, industrial engineering (FEM, CFD) and property tools via one MCP endpoint.
Read and edit the Revit 2024–2027 model on your PC. Needs the free Revit MCP add-in.
Related MCP Servers
- 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
- FlicenseBqualityBmaintenanceNatural-language MCP bridge for AutoCAD 2024. Enables users to inspect and edit DWG drawings, manage layers, entities, layouts, styles, and system variables; draw 2D geometry and 3D solids; perform measurements and transactional edits; and export to DWG, STL, PDF, DWF, SVG, or raster formats through a local named-pipe connection.211-
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to connect to and automate AutoCAD on Windows via COM, exposing tools to inspect drawings and layers, create geometry and text, manage system variables, run commands, and save or open drawings. Requires full AutoCAD running with a drawing open.4MIT
- AlicenseBqualityBmaintenanceEnables compatible MCP clients to inspect drawings, read units, layers, and entities, and create, edit, transform, or delete CAD objects through a local named-pipe bridge to AutoCAD 2025.231MIT