Claude Skill

puran-water/autocad-mcp

autocad-mcp 是专为 AutoCAD LT v3.1 设计的 MCP 服务器,具备自由手绘 AutoLISP 执行、8 个整合工具、文件 IPC 与 ezdxf 后端、免聚焦调度、撤销/重做、P&ID 符号,以及带 ESC 前缀和 UTF-8 回退的稳健 IPC。

概览

Stars371
Forks54
语言Python
最后更新2026-02-20
最近同步2026-07-04
前往 GitHub

仓库信息

拥有者puran-water
仓库autocad-mcp
完整名称puran-water/autocad-mcp
Repo ID952,069,288

安装这个 Skill

git clone https://github.com/puran-water/autocad-mcp.git

Registry 信息

类型mcp_server
质量分75/100
验证状态readme_parsed
最近验证2026-06-15
平台
ClaudeMCP
能力
pdfmemoryimageterminalworkflow
识别文件
README.mdpyproject.tomltests

项目简介

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

话题

暂无话题

探索更多

数据来自 GitHub,同步时间:2026-07-04