autocad-mcp
Drives a running AutoCAD instance via COM automation, exposing tools to query status, connect or launch AutoCAD, list layers and model-space entities, read the drawing extents, and create geometry (lines, polylines, circles, single-line text) plus layers with ACI colours. Also allows reading and writing system variables, sending raw command strings or AutoLISP, zooming to extents, saving, and creating or opening DWG/DXF drawings.
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-mcplist all layers in the current drawing and their colors"
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
Let WorkBuddy (or any MCP client) drive AutoCAD through COM automation.
https://github.com/dxlary/autocad-mcp
Zero third-party dependencies except pywin32 — the MCP protocol layer is
implemented with the standard library, so this installs offline and never
breaks because PyPI is down.
What you need
Requirement | Note |
Windows | COM/ActiveX is Windows-only |
Full AutoCAD, not LT | AutoCAD LT exposes no automation interface |
AutoCAD 2018 – 2026 | Located automatically by ProgID |
Python 3.10+ | Any interpreter with |
AutoCAD must be running with a drawing open. Tools return a clear message when it is not, rather than crashing.
Related MCP server: AutoCAD MCP Server - Codex Edition
Install
pip install pywin32Or install straight from GitHub, which also gives you an autocad-mcp
command so the config below becomes just "command": "autocad-mcp":
pip install git+https://github.com/dxlary/autocad-mcp.gitRegister with WorkBuddy
Add this to %USERPROFILE%\.workbuddy\mcp.json, replacing the two paths with
your own Python interpreter and the location you saved server.py to:
{
"mcpServers": {
"autocad-mcp": {
"command": "C:\\Path\\To\\python.exe",
"args": ["C:\\Path\\To\\autocad-mcp\\server.py"]
}
}
}Then open WorkBuddy's connector management page, find autocad-mcp under
custom connectors, and click Trust. Manually added MCP servers do not
activate on their own.
Verify without AutoCAD
python server.py --selftest % 12 checks, no AutoCAD needed
python server.py --probe % print the tools/list payloadTools (17)
Tool | Purpose |
| Version, active drawing, entity count |
| Attach, or start AutoCAD with |
| All layers with colour, linetype, state |
| Model-space entities, filter by layer/type |
| EXTMIN / EXTMAX bounding box |
| Line between two points |
| 2D polyline from a flat coordinate list |
| Circle by centre and radius |
| Single-line text |
| Create layer, set ACI colour, make current |
| Read a system variable |
| Write a system variable |
| Send a command string or AutoLISP |
| Zoom to extents |
| Save, or save-as to a path |
| New drawing, optionally from a .dwt |
| Open a DWG/DXF by path |
Notes
Colour is ACI only (1 red, 2 yellow, 3 green, 4 cyan, 5 blue, 6 magenta, 7 white/black). The ActiveX
Colorproperty has no true-colour channel.Solid fill:
AddHatchdoes not fill unless you append loops, and 3D faces never fill. For solid shapes use 2D SOLID entities, or import an R12 (AC1009) DXF viaautocad_run_commandwith._INSERT/-IMPORT.autocad_run_commandis asynchronous. Pollautocad_statusorautocad_get_extentsafterwards to confirm the result.Pin a version by setting
AUTOCAD_PROGID, e.g.AUTOCAD_PROGID=AutoCAD.Application.24.1for 2022.AutoCAD itself is commercial software. This project is not affiliated with Autodesk; you are responsible for your own AutoCAD licence.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Read and edit the Revit 2024–2027 model on your PC. Needs the free Revit MCP add-in.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Revit MCP: lets AI read and edit your open model. Windows, best supported on Revit 2021+, free beta.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables programmatic control of AutoCAD through COM automation, allowing natural language commands to create structures, manage layers, and manipulate entities via MCP clients like Claude.66Apache 2.0
- 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.1237MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI/natural-language-driven 2D drafting automation on a running Windows AutoCAD, exposing drawing, dimensioning, layer/block management, and mechanical drawing tools such as title blocks, BOM, and balloons to any MCP client.205 PyPI2MIT
- FlicenseDqualityAmaintenanceEnables 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-