Skip to main content
Glama
CadMcp.Server

CadMcp.Server

by woodystory

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

acad25.dll (acmgd 25.0)

CadMcpAcad25

2026

acad26.dll (acmgd 25.1)

CadMcpAcad26

2027

acad27.dll (acmgd 26.0)

CadMcpAcad27

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:

  1. Download the release zip (checksums provided) and unzip to a space-free path

  2. Add a custom MCP connector in your host pointing at server\CadMcp.Server.exe

  3. Start 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

src/

CadMcp.Server / CadMcp.Bridge / CadMcp.Shared (net8.0)

shells/

AutoCAD plug-in shells, one per year (acad25/26/27)

tests/

xUnit suite (187 tests) + D4Harness real-machine acceptance tool

docs/

Architecture, installation guide, testing, changelog, trademark notes

contract/

Wire-protocol schema (JSON envelope)

scripts/

Packaging and VM verification scripts

installer/

(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…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP 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.
      12
      47
      MIT
    • F
      license
      B
      quality
      B
      maintenance
      Natural-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.
      21
      1
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      4
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      23
      1
      MIT