Claude Skill
puran-water/autocad-mcp
autocad-mcp is an MCP server for AutoCAD LT v3.1 featuring freehand AutoLISP execution, 8 consolidated tools, File IPC and ezdxf backends, focus-free dispatch, undo/redo, P&ID symbols, and robust I...
Overview
Repository
Install this Skill
git clone https://github.com/puran-water/autocad-mcp.gitRegistry
Summary
autocad-mcp is an MCP server for AutoCAD LT v3.1 that enables freehand AutoLISP execution, 8 consolidated tools, File IPC and ezdxf backends, focus-free dispatch, undo/redo, P&ID symbols, and robust IPC with ESC prefix and UTF-8 fallback. It pairs with the companion agent skill puran-water/autocad-drafting.
AutoCAD LT v3.1 的 MCP 服务器:支持自由手绘 AutoLISP 执行、8 个整合工具、文件 IPC 与 ezdxf 后端、免聚焦调度、撤销/重做、P&ID 符号,以及具备 ESC 前缀和 UTF-8 回退的稳健 IPC。配套代理技能:puran-water/autocad-drafting
Key features
- Freehand AutoLISP execution
- 8 consolidated tools
- File IPC and ezdxf backends
- Focus-free dispatch
- Undo/redo support
- P&ID symbols and robust IPC with ESC prefix and UTF-8 fallback
Use cases
- Automate AutoCAD LT drafting tasks via MCP
- Execute custom AutoLISP scripts without manual focus
- Integrate P&ID symbol insertion into workflows
- Leverage undo/redo for iterative design changes
- Use File IPC or ezdxf for flexible data exchange
README excerpt
# AutoCAD MCP Server MCP server for AutoCAD LT automation and headless DXF generation. Two backends, one API: | Backend | Runtime | Requires AutoCAD? | Screenshot | |---------|---------|-------------------|------------| | **File IPC** | Windows Python | Yes — AutoCAD LT 2024+ (Windows) | Win32 PrintWindow | | **ezdxf** | Any platform | No (headless) | matplotlib render | The server exposes **8 consolidated tools** (`drawing`, `entity`, `layer`, `block`, `annotation`, `pid`, `view`, `system`) over the MCP stdio transport. An MCP client (Claude Desktop, Claude Code, etc.) connects and drives AutoCAD through natural-language requests. ## Prerequisites (File IPC backend) - **Windows 10/11** (the File IPC backend uses Win32 APIs for focus-free window messaging) - **AutoCAD LT 2024 or newer** — AutoLISP support was added in LT 2024 for Windows. AutoCAD LT for Mac exists but does **not** support AutoLISP. - **Python 3.10+** (Windows native — not WSL Python) - **uv** package manager ([install guide](https://docs.astral.sh/uv/getting-started/installation/)) > The ezdxf headless backend works on any platform (Linux, macOS, WSL) for offline DXF generation without AutoCAD installed. ## Quick Start ### 1. Clone and install ```powershell git clone https://github.com/puran-water/autocad-mcp.git cd autocad-mcp uv sync ``` ### 2. Load the LISP dispatcher in AutoCAD LT Open AutoCAD LT and load `mcp_dispatch.lsp` using **APPLOAD**: 1. Type `APPLOAD` in the AutoCAD command line 2. Browse to `<repo>/lisp-code/mcp_dispatch.lsp` 3. Click **Load** 4. You should see: `=== MCP Dispatch v3.1 loaded ===` and `Ready for commands via (c:mcp-dispatch)` > **Tip:** Add the file to your AutoCAD Startup Suite (in the APPLOAD dialog) so it loads automatically with every drawing. ### 3. Conf
Topics
No topics yet.