AutoCAD MCP Server
Enables programmatic control of AutoCAD to create and manage drawings, allowing for the creation of lines, circles, arcs, ellipses, rectangles, polylines, text, and dimensions through natural language commands.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AutoCAD MCP Server
Draw in AutoCAD by talking to Claude.
An MCP server that lets Claude Desktop drive AutoCAD (or GstarCAD / ZWCAD) through the Windows COM interface. Type "draw a red circle at (100, 100) with radius 50" and it appears in your drawing — no LISP, no macros.
Requirements
Windows (COM is Windows-only)
Python 3.10+
AutoCAD, GstarCAD or ZWCAD
Related MCP server: autocad-mcp-pro
Install
git clone https://github.com/Porta048/AutoCad-MCP.git
cd AutoCad-MCP
pip install -e .Add the server to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"autocad": { "command": "autocad-mcp" }
}
}Restart Claude Desktop. It starts the server for you; if AutoCAD isn't open, the server launches it.
Usage
Just ask, in any language:
Draw a red circle at (100, 100) with radius 50
Create a rectangle from (0, 0) to (200, 100)
Add text "Hello" at (50, 50)
List all circles on layer 0
Save the drawing to C:/drawings/test.dwgCoordinates are (x, y) or (x, y, z); angles are in degrees, counter-clockwise from X. Name a color and Claude maps it to the AutoCAD Color Index (1 red, 2 yellow, 3 green, 4 cyan, 5 blue, 6 magenta, 7 white).
Tools
Draw | Read & save |
|
|
|
|
|
|
Configuration
Edit src/autocad_mcp/config.json:
{
"cad": { "type": "AUTOCAD", "startup_wait_time": 20 }
}type can be AUTOCAD, GCAD or ZWCAD. Raise startup_wait_time if your CAD is slow to start.
Troubleshooting
Server not listed in Claude — check that
autocad-mcpruns from a terminal, then restart Claude Desktop."CAD not initialized" — open AutoCAD manually and retry.
Logs —
%APPDATA%\Claude\logs\mcp-server-autocad.log.
Contributing
Issues and pull requests are welcome. For development:
pip install -e ".[dev]"
ruff check src && mypy srcLicense
MIT © Alessandro di Martino
AutoCAD is a trademark of Autodesk, Inc. This project is not affiliated with or endorsed by Autodesk.
This server cannot be deployed
Maintenance
Related MCP Connectors
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants such as Claude for Desktop or Cursor to control CAD applications (AutoCAD, ZWCAD, GstarCAD, BricsCAD) on Windows through 7 unified tools exposing 56 commands. Supports drawing shapes, managing layers, blocks and entities, extracting data, exporting to Excel, and saving drawings via natural language or direct tool calls.-
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to control Autodesk AutoCAD on Windows via COM automation, drawing geometry, creating architectural structures like walls, doors, windows and rooms, managing layers and cleaning up drawings in real time. Also supports working across multiple open documents, batch operations and entity querying and deletion.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants like Claude for Desktop or Cursor to drive CAD applications such as AutoCAD, ZWCAD, GstarCAD, and BricsCAD through natural-language or direct tool calls. It covers drawing shapes, managing layers and blocks, manipulating entities and properties, and exporting data to JSON, Excel, or DWG/DXF/PDF files.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants like Claude for Desktop or Cursor to drive Windows CAD applications (AutoCAD, ZWCAD, GstarCAD, and BricsCAD) via COM, executing 56 drawing, layer, block, entity, file, and export commands through natural-language or direct tool calls. Supports batch operations, multi-drawing session management, and data extraction to JSON or Excel.-