AutoCAD MCP Server

A local Model Context Protocol (MCP) server that connects Claude (Claude Desktop, Claude Code, Antigravity, Cursor) directly to CAD drawings. Query geometry, automate drawing routines, check layer conventions, and generate architectural schedules through plain-language prompts.
Two Operating Modes
┌────────────────────────────────────────────────────────┐
│ Claude (MCP Host Client) │
└───────────────────────────┬────────────────────────────┘
│ stdio (JSON-RPC)
▼
┌────────────────────────────────────────────────────────┐
│ AutoCAD MCP Server │
└───────────────┬────────────────────────┬───────────────┘
│ │
[Windows COM Interface] │ │ [Headless ezdxf Engine]
▼ ▼
┌────────────────────────┐ ┌────────────────────────┐
│ Live CAD Execution │ │ Headless File Mode │
│ • AutoCAD (Full) │ │ • Windows, macOS, Lin │
│ • BricsCAD │ │ • Direct .dxf editing │
│ • ZWCAD / GstarCAD │ │ • .dwg via ODA Conv. │
│ • Interactive undo │ │ • In-memory sandbox │
└────────────────────────┘ └────────────────────────┘
- Live CAD Mode (Windows): Connects directly to the active drawing inside AutoCAD (not LT), BricsCAD, ZWCAD, or GstarCAD via Windows COM. Supports live viewport selections and instant visual updates with atomic undo (
U).
- Headless File Mode (Cross-Platform — Windows, macOS, Linux): Inspects and edits
.dxf files directly using pure Python (ezdxf), and .dwg files when the free ODA File Converter is installed. No CAD license or software required.
Quickstart & Installation
Option 1: Claude Desktop (Windows & macOS)
- Download the pre-built
autocad-mcp-<version>.mcpb bundle from the latest release.
- Double-click the file to install into Claude Desktop.
- Requires uv installed (handles Python runtime automatically).
Option 2: Claude Code
/plugin install autocad --marketplace gabrielbsandim/autocad-mcp
Option 3: Manual MCP Configuration
For Claude Desktop, Cursor, or Windsurf, configure the server in your MCP configuration file:
{
"mcpServers": {
"autocad": {
"command": "uv",
"args": ["run", "--directory", "C:\\path\\to\\autocad-mcp", "--no-dev", "autocad-mcp"],
"env": {
"AUTOCAD_MCP_LAYER_STANDARD": "asbea",
"AUTOCAD_MCP_LOCALE": "pt-BR"
}
}
}
}
Natural Language Prompts
Talk to CAD naturally:
- "Which drawing is currently open and what are its drawing units?"
- "Generate the area schedule for all rooms and place the table beside the floor plan."
- "Monte o quadro de esquadrias com largura, altura e peitoril das portas e janelas."
- "Confira as áreas do terreno contra os parâmetros da lei de zoneamento: TO 60%, CA 2.0 e TP 15%."
- "Export all layouts to PDF using their individual page setups."
- "Standardize all layers according to AsBEA conventions."
- "Draw a 4.00 x 3.50 m room with 15 cm thick walls starting at origin (0,0)."
Complete Tools Reference (23 Tools)