AutoCAD MCP Server
Provides tools for drawing into AutoCAD via COM automation, enabling creation of lines, circles, text, rectangles, layers, and saving drawings as DWG files.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AutoCAD MCP Serverdraw a line from 0,0 to 10,10 and save as drawing.dwg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AutoCAD MCP Server (DSH plugin)
Draw into AutoCAD via COM: lines, circles, text, rectangles, layers, DWG save. DSH plugin wrapping a stdio MCP server.
Windows only. These servers drive the real commercial applications through COM automation — the target software must be installed and licensed on the machine.
Verified on
AutoCAD 2026 (R25.1). lib/acad2026.py is the makepy wrapper for acax25 typelib; regenerate for other releases.
Related MCP server: AutoCAD MCP Server
Tools
cad_draw— entities list (line/circle/text/rect/layer), optional save_as.dwg; returns entity counts and DWG path
Outputs are written to {cwd}/lab-out/ (override with env LAB_OUT_DIR).
First call cold-starts the application and can take 30–120 s.
Requirements
Windows + Python 3.10+ with
pywin32(pip install pywin32)The target application installed and COM-registered
Install as a DSH plugin
dsh plugin --profile web add <path-or-git-url>The bundled cordis.patch.yml registers the server through
@deepseek-ai/dsh-mcp-client; tools appear as mcp__autocad__*.
Manual MCP client config (Claude Desktop etc.)
{
"mcpServers": {
"autocad": {
"command": "python",
"args": ["<abs-path>/server/server.py"]
}
}
}Point command at your real interpreter (on Windows avoid the Microsoft Store
python.exe stub).
Layout
server/server.py stdio MCP server (JSON-RPC 2.0)
lib/*.py helper module + makepy typelib wrappers (self-contained)
cordis.patch.yml DSH bundle patchRegenerating makepy wrappers
If your app version differs, rebuild the typed wrapper and drop it into lib/:
python -m win32com.client.makepy -o lib/<wrapper>.py "<path-to-tlb-or-dll>"(See each repo's README notes for the exact typelib location.)
Caveats learned the hard way (already handled in code)
COM points must be
VT_ARRAY|VT_R8VARIANTs; some methods need the typed wrapper.ChemDraw
Positionreturns a copy — writeback required (handled in cd_helper).AutoCAD modal dialogs freeze the COM pump; cad_helper ships
close_modal_dialogs().stdout is forced UTF-8 (GBK consoles corrupt JSON-RPC frames otherwise).
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, inspect, validate, and save editable 3D building scenes with Pascal's hosted MCP server.
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
HTML-to-PDF MCP server — render pixel-faithful PDFs from HTML.
Bar-first MCP server for Tabula chart authoring, PNG rendering, and editor handoff.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP 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.1220MIT
- AlicenseAqualityCmaintenanceAn MCP server that enables natural-language control of AutoCAD via file IPC or headless DXF generation, with tools for drawing, entities, layers, blocks, annotations, P&ID, views, and system operations.8MIT
- FlicenseBqualityBmaintenanceFastMCP server for automating AutoCAD via COM on Windows, enabling drawing creation, entity drawing, and drawing management through natural language commands.46-
- FlicenseDqualityBmaintenanceEnables MCP-based interaction with AutoCAD and DXF/DWG drawings, supporting document lifecycle, entities, layers, blocks, layouts, viewports, zoom, screenshot capture, and PDF export via ezdxf or live Windows AutoCAD COM backends.50-