Claude Skill
puran-water/autocad-mcp
autocad-mcp 是专为 AutoCAD LT v3.1 设计的 MCP 服务器,具备自由手绘 AutoLISP 执行、8 个整合工具、文件 IPC 与 ezdxf 后端、免聚焦调度、撤销/重做、P&ID 符号,以及带 ESC 前缀和 UTF-8 回退的稳健 IPC。
概览
仓库信息
安装这个 Skill
git clone https://github.com/puran-water/autocad-mcp.gitRegistry 信息
项目简介
autocad-mcp 是专为 AutoCAD LT v3.1 设计的 MCP 服务器,支持自由手绘 AutoLISP 执行、8 个整合工具、文件 IPC 与 ezdxf 后端、免聚焦调度、撤销/重做、P&ID 符号,以及具备 ESC 前缀和 UTF-8 回退的稳健 IPC。配套代理技能为 puran-water/autocad-drafting。
MCP server for AutoCAD LT v3.1: freehand AutoLISP execution, 8 consolidated tools, File IPC + ezdxf backends, focus-free dispatch, undo/redo, P&ID symbols, and robust IPC with ESC prefix and UTF-8 fallback. Companion agent skill: puran-water/autocad-drafting
要点
- 自由手绘 AutoLISP 执行
- 8 个整合工具
- 文件 IPC 与 ezdxf 后端
- 免聚焦调度
- 撤销/重做支持
- P&ID 符号及具备 ESC 前缀和 UTF-8 回退的稳健 IPC
使用场景
- 通过 MCP 自动化 AutoCAD LT 绘图任务
- 无需手动聚焦即可执行自定义 AutoLISP 脚本
- 将 P&ID 符号插入集成到工作流中
- 利用撤销/重做进行迭代设计修改
- 使用文件 IPC 或 ezdxf 实现灵活的数据交换
README 摘要
# 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
话题
暂无话题