
autocad-mcp
io.github.erik-blasko/autocad-mcp
Let an AI assistant draw, edit and query drawings in your running AutoCAD (Windows)
Documentation
AutoCAD MCP
A local MCP server that lets an AI assistant work in your running AutoCAD: it reads the drawing, draws, edits, organizes layers and blocks, sets up layouts and plots PDFs - by calling tools, not by guessing commands.
It works with any MCP client that can start a local (stdio) server - Claude
Code, Claude Desktop, Cursor, VS Code and others. For Claude Code it installs
as a plugin with two commands, for Claude Desktop as an extension (.mcpb).
Free to use, closed source - see the license.
What it does
The assistant gets a set of tools that act on the drawing you have open:
| Area | Examples |
|---|---|
| Drawings | open, new, save, save as, switch, close, recover, audit |
| Create | line, polyline, circle, arc, ellipse, spline, rectangle, hatch, text, mtext, dimension, leader, table, region, 3D face |
| Modify | move, copy, rotate, scale, mirror, offset, stretch, align, arrays, trim, extend, break, join, fillet, chamfer, lengthen, explode |
| Query and measure | find entities by layer, type, area or property; pick or use your selection; distance, angle, length, area; crossings of lines |
| Layers and properties | create, rename, delete, state and properties of layers; entity properties, match properties, draw order |
| Blocks | definitions, references, insert, attributes, create a block |
| Layouts and output | layouts, viewports, views, UCS, zoom, PDF export |
| References | raster images, external references, PDF import, repair of broken paths |
| Cleanup | purge, remove duplicates, flatten to Z=0, clip to a boundary |
| Escape hatch | run an AutoLISP expression or a command when no tool fits |
Every tool with its parameters is listed in docs/TOOLS.md.
Changes made by a tool are undoable: one undo call (or Ctrl+Z in AutoCAD)
takes back one tool call. Many writing tools have a dry_run that reports
what would change without changing it.
How it works
AI assistant <-- MCP (stdio) --> AutoCAD MCP server <-- COM --> AutoCAD
(MCP client) (on your computer) (running)
- The server is a small local program started by your MCP client. It talks to the client over standard input/output and to AutoCAD through AutoCAD's own built-in COM (ActiveX Automation) interface - the same documented interface VBA macros and other automation tools use - and, where COM has no equivalent, through AutoLISP expressions and regular AutoCAD commands.
- Nothing is installed into AutoCAD: no plug-in, no patch. The server attaches to the AutoCAD that is already running (it never starts AutoCAD itself), and every change to a drawing is made by AutoCAD itself - the server never edits DWG files directly.
- The one setting it changes: it adds its own folder
%LOCALAPPDATA%\autocad-mcp\lispto AutoCAD's trusted locations (TRUSTEDPATHS). It writes the AutoLISP it runs into that folder, and without the entry AutoCAD (withSECURELOADon, the default) would ask for permission on every such call. The folder is in your user profile and holds only the server's own files. See Uninstall to remove it. - It runs entirely on your computer and makes no network connections of its own - see the EULA, section 7.
- The server is modular: this build is the core module, the general
AutoCAD toolset.
get_server_statuslists the modules that are loaded with their tool counts (here:core).
Requirements
-
Windows 10 or 11, 64-bit
-
AutoCAD (full version, not LT) - developed and tested on AutoCAD 2025
-
An MCP client: Claude Code or any other client that runs local stdio MCP servers
-
uv - it starts the server: it downloads the right Python and the packages the server needs, so you do not have to install Python yourself. Needed with every client.
winget install --id=astral-sh.uv -eWithout winget, the official installer:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" -
Git for Windows - only when the repository is cloned: the Claude Code plugin install clones it with Git, as does
git clone. Downloading the ZIP needs no Git.winget install --id=Git.Git -e
Check in a new terminal: uv --version (and git --version if you need Git).
Install
Claude Code (plugin)
claude plugin marketplace add erik-blasko/autocad-mcp
claude plugin install autocad-mcp@autocad-mcp
Claude Desktop (extension)
Download autocad-mcp-<version>.mcpb from the
latest release
and open it (double-click, or Settings > Extensions in Claude Desktop), then
confirm the install. The bundle is not signed yet, so Claude Desktop may say
so before installing. uv (see Requirements) has to be
installed.
Any other MCP client
-
Download this repository -
git clone https://github.com/erik-blasko/autocad-mcpor Code > Download ZIP - to a folder that stays, for exampleC:\Tools\autocad-mcp. The ZIP unpacks into a folder namedautocad-mcp-main; what matters below is the folder that containsplugins- check thatplugins\autocad-mcp\requirements.txtis in it. -
Add the server to the
mcpServerssection of your client's MCP configuration. In Claude Desktop that is the fileclaude_desktop_config.json(where the app keeps it, and the menu that opens it, differ between versions); other clients have an equivalent section. ReplaceC:/Tools/autocad-mcpwith your folder and keep the forward slashes:{ "mcpServers": { "autocad": { "command": "uv", "args": [ "run", "--quiet", "--no-project", "--python", "3.14", "--with-requirements", "C:/Tools/autocad-mcp/plugins/autocad-mcp/requirements.txt", "python", "-m", "autocad_mcp" ], "env": { "PYTHONPATH": "C:/Tools/autocad-mcp/plugins/autocad-mcp/server" } } } } -
Restart the client.
The server speaks standard MCP over stdio, so the same entry works wherever such servers are configured. It is developed and tested with Claude Code; if it misbehaves in another client, please open an issue.
First start
Start AutoCAD, open a drawing, start your client and ask, for example: "What is in the open AutoCAD drawing?"
The very first start downloads Python 3.14 and a few packages, which takes up
to a minute - longer than many clients wait for a server to start (Claude
Code: 30 s). If the client reports the autocad server as failed meanwhile,
reconnect it (in Claude Code: /mcp) or restart the client - the next start
takes a few seconds. To avoid that, download Python beforehand:
uv python install 3.14
The server is ready when the get_server_status tool answers; it also
tells whether AutoCAD is running and a drawing is open.
Update
Claude Code:
claude plugin marketplace update autocad-mcp
claude plugin update autocad-mcp@autocad-mcp
Then restart Claude Code (or run /reload-plugins). To get updates
automatically, enable auto-update for this marketplace in /plugin >
Marketplaces.
Claude Desktop extension: download the new .mcpb from the release and
open it - it replaces the installed version.
Other clients: git pull in the folder (or download the ZIP again into the
same folder) and restart the client.
What changed is in the changelog.
Good to know
- The server works in the AutoCAD session that is running on your computer, on the drawing that is active. It writes only into the drawing it started to work on; if you switch to another drawing by hand, it says so instead of changing the other one.
- AutoCAD must be idle: a command waiting at its prompt or an open dialog
blocks the server until you finish or close it. The
get_server_statustool tells what the state is. - Keep backups. The assistant decides which tools to call; check the result as you would check anybody else's work in your drawing.
- Logs: with the Claude Code plugin in the
logsfolder of the plugin's data folder under%USERPROFILE%\.claude\plugins\data\; with the Claude Desktop extension in thelogsfolder of the installed extension; otherwise inplugins\autocad-mcp\server\logsof your folder. The environment variableAUTOCAD_MCP_LOG_DIRmoves them elsewhere.
Uninstall
Claude Code:
claude plugin uninstall autocad-mcp@autocad-mcp
claude plugin marketplace remove autocad-mcp
Claude Desktop extension: Settings > Extensions, AutoCAD MCP, uninstall.
Other clients: remove the autocad entry from the configuration and delete
the folder.
What stays after uninstalling, with any client:
- The trusted location in AutoCAD: Options > Files > Trusted Locations,
remove
%LOCALAPPDATA%\autocad-mcp\lisp(as AutoCAD shows it, with your user name in the path). - The folder
%LOCALAPPDATA%\autocad-mcp- delete it. - The logs (see Good to know) - delete them if you do not need them.
License
AutoCAD MCP is freeware: free of charge for private and commercial use, but not open source. See the EULA.
Autodesk and AutoCAD are registered trademarks of Autodesk, Inc. This project is independent and is not affiliated with or endorsed by Autodesk.
Copyright (c) 2025-2026 Erik Blaško
https://github.com/erik-blasko/autocad-mcp/releases/download/v1.0.0/autocad-mcp-1.0.0.mcpb# mcpb: https://github.com/erik-blasko/autocad-mcp/releases/download/v1.0.0/autocad-mcp-1.0.0.mcpb