vn-autocad-claude
Provides tools for drawing, editing, querying, managing layers, blocks, annotations, taking screenshots, and plotting to PDF in AutoCAD.
Click on "Install 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., "@vn-autocad-claudedraw a line from 10,10 to 100,100"
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.
vn-autocad-claude
🇻🇳 Tiếng Việt: đọc hướng dẫn đầy đủ tại README.vi.md.
An MCP server that lets Claude (Claude Code & Claude Desktop) control AutoCAD —
draw, edit, query, layers, blocks, annotations, screenshots, plot to PDF — using plain
language. Works with full AutoCAD and AutoCAD LT 2024+ on Windows, and runs
headless (no AutoCAD needed) on macOS/Linux via the ezdxf backend.
This is a Vietnamese-friendly fork of puran-water/autocad-mcp (MIT). See NOTICE for the list of changes. Maintained by @andyluu98.
What works where
Backend | Platform | Needs AutoCAD running? | What it does |
File IPC | Windows | Yes — full AutoCAD or LT 2024+ | Drives the live drawing you have open |
ezdxf (headless) | Windows / macOS / Linux | No | Reads & writes |
AUTOCAD_MCP_BACKEND=auto (default) picks File IPC when an AutoCAD window is found,
otherwise falls back to headless ezdxf.
On macOS AutoCAD does not expose AutoLISP/COM, so only the ezdxf backend is available there. That is enough to generate and edit
.dxfdrawings from Claude.
Related MCP server: allplan-mcp-bridge
Requirements
Python 3.10+
uv package manager
Git
For the live (File IPC) backend: Windows 10/11 + AutoCAD 2024+ or AutoCAD LT 2024+
Quick install
Windows (PowerShell)
git clone https://github.com/andyluu98/vn-autocad-claude.git
cd vn-autocad-claude
./scripts/install.ps1macOS / Linux
git clone https://github.com/andyluu98/vn-autocad-claude.git
cd vn-autocad-claude
./scripts/install.shThe install script runs uv sync and prints the exact MCP config line for your machine.
Connect to Claude
Claude Code (CLI)
claude mcp add autocad-mcp --scope user \
--env AUTOCAD_MCP_BACKEND=auto \
-- "<ABSOLUTE_PATH>/vn-autocad-claude/.venv/<bin-or-Scripts>/python<.exe>" -m autocad_mcpWindows venv python:
...\.venv\Scripts\python.exemacOS/Linux venv python:
.../.venv/bin/python
The install script prints the full line ready to copy.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"autocad-mcp": {
"command": "<ABSOLUTE_PATH>/vn-autocad-claude/.venv/Scripts/python.exe",
"args": ["-m", "autocad_mcp"],
"env": { "AUTOCAD_MCP_BACKEND": "auto" }
}
}
}Use .venv/bin/python (no .exe) on macOS/Linux.
Load the dispatcher in AutoCAD (Windows live backend only)
Open AutoCAD and open/create a drawing.
In the command line, type
APPLOAD→ loadlisp-code/mcp_dispatch.lsp. You should see=== MCP Dispatch v3.1 loaded ===.To auto-load every time:
OPTIONS→ Files → Trusted Locations → add thelisp-codefolder, then addmcp_dispatch.lspto the Startup Suite (APPLOAD → Contents).
Quick manual load alternative (paste in the AutoCAD command line):
(load "<ABSOLUTE_PATH>/vn-autocad-claude/lisp-code/mcp_dispatch.lsp")Verify
Restart Claude, then ask it to call system(operation="status"). You should get
{"ok": true, "backend": "file_ipc" | "ezdxf"}.
Then try: "draw a circle radius 50 at the origin".
Troubleshooting
Full playbook (also readable by Claude Code itself): CLAUDE.md.
Symptom | Fix |
| Re- |
| Open AutoCAD with a drawing, or it will use the ezdxf backend. |
Commands time out on full AutoCAD | The COM trigger should handle this; ensure the drawing window is active and the LISP is loaded. |
|
|
Privacy
This repository contains no drawings, no credentials, and no personal data.
The IPC working directory is C:\temp (Windows) — your .dwg/.dxf files stay on your
machine and are git-ignored. Never commit claude_desktop_config.json or .env.
License
MIT — see LICENSE. Original copyright retained per the upstream project.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andyluu98/vn-autocad-claude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server