How u-c4n/autocad-mcp works
AutoCAD MCP Pro exposes drawing, analysis and engineering tools to AI agents through an MCP server. The main workflow is a tool call against a drawing, executed through a shared backend contract by live AutoCAD COM or headless ezdxf, then returned as drawing data or an engineering result. Major branches include drawing understanding and takeoff, discipline-specific design, and QA/verification; durable history, checkpoints, security and constrained access support operation. Several domain modules are unsampled, so their links are shown only where the README documents the capability or the source index supports the reference.
Main entry points: server.py MCP server · base.py Backend contract · understand Understand drawing · mech Mechanical tools
Components 20
MCP interface
- MCP server
server.py - Tool discovery
discovery/transform.py
Drawing engines
- Backend contract
backends/base.py - Live AutoCAD
backends/com_backend.py - Headless DXF
backends/ezdxf_backend.py
Drawing analysis
- Drawing snapshot
engineering/understand/snapshot.py - Understand drawing
engineering/understand - Pipe takeoff
engineering/understand/takeoff.py
Engineering design
- Architecture tools
engineering/arch - Mechanical tools
engineering/mech - Part features
engineering/mech/features.py - P&ID tools
engineering/pid - Line router
engineering/pid/router.py
Quality and state
- Change previews
engineering/changes/preview.py - Artifact verification
engineering/verification/artifact.py - Critique and QA
engineering/critique.py - Journal and checkpoints
backends/checkpoints.py - Policy and security
security.py - Session metrics
backends/session_metrics.py
Other components
- AI agent
Connections 19
- AI agent → MCP server: calls tools
- MCP server → Tool discovery: lists tools
- MCP server → Backend contract: dispatches drawing calls
- Backend contract → Live AutoCAD: implemented by
backends/com_backend.py - Backend contract → Headless DXF: implemented by
- MCP server → Understand drawing: offers analysis
- Drawing snapshot → Understand drawing: feeds analysis
engineering/understand/snapshot.py - Understand drawing → Pipe takeoff: supports takeoff
engineering/understand/takeoff.py - MCP server → Architecture tools: offers design tools
- MCP server → Mechanical tools: offers part tools
- Mechanical tools → Part features: uses features
engineering/mech/features.py - MCP server → P&ID tools: offers P&ID tools
- P&ID tools → Line router: routes lines
engineering/pid/router.py - MCP server → Change previews: previews edits
- MCP server → Artifact verification: verifies saved artifacts
- MCP server → Critique and QA: reports QA
- MCP server → Journal and checkpoints: exposes drawing history
- MCP server → Policy and security: enforces restrictions
- MCP server → Session metrics: records calls