P
puran-water/autocad-mcp
Draw in AutoCAD LT through AutoLISP, with undo
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# AutoCAD MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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)
> 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 mcpdispatch.lsp using APPLOAD:
1. Type APPLOAD in the AutoCAD command line
2. Browse to /lisp-code/mcpdispatch.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. Configure your MCP client
Add to your MCP client configuration (e.g. Claude Desktop claudedesktopconfig.json):
json
"mcpServers": {
"autocad-mcp": {
"command": "C:\\path\\to\\autocad-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "autocadmcp"],
"env": { "AUTOCADMCPBACKEND": "fileipc" }
Key points:
The command must point to the Windows Python inside the project venv (not WSL python).
AUTOCADMCPBACKEND can be auto (default — tries File IPC, falls back to ezdxf), fileipc (requires AutoCAD), or ezdxf (headless only).
#### Running from WSL
If your MCP client runs in WSL (e.g. Claude Code), launch the server through cmd.exe so it runs as a native Windows process:
json
"mcpServers": {
"autocad-mcp": {
"type": "stdio",
"command": "cmd.exe",
"args": ["/d", "/s", "/c", "cd /d C:\\path\\to\\autocad-mcp && set AUTOCADMCPBACKEND=fileipc&& .venv\\Scripts\\python.exe -m autocadmcp"]
### 4. Verify
From your MCP client, call:
system(operation="status")
You should see backend: "fileipc" if AutoCAD is running, or backend: "ezdxf" for headless mode.
For native DWG work, require fileipc; the examples above disable headless fallback.
Verify DWGNAME, DWGPREFIX, CTAB and DBMOD with drawing.getvariables, then
inspect a screenshot before editing. status alone does not identify the active DWG.
Use a Windows-local working copy if Windows cannot access a WSL UNC path, and copy
saved deliverables back explicitly. Never use drawing.create to make a working copy:
it erases and purges the active drawing.
## Journaled native revisions
system(operation="revision", data={"action": "read", "drawing": "C:/work/copy.dwg",
"handles": ["ABCD"]}) reads native entities. The revision adapter supports bounded
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)
> 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 mcpdispatch.lsp using APPLOAD:
1. Type APPLOAD in the AutoCAD command line
2. Browse to /lisp-code/mcpdispatch.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. Configure your MCP client
Add to your MCP client configuration (e.g. Claude Desktop claudedesktopconfig.json):
json
"mcpServers": {
"autocad-mcp": {
"command": "C:\\path\\to\\autocad-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "autocadmcp"],
"env": { "AUTOCADMCPBACKEND": "fileipc" }
Key points:
The command must point to the Windows Python inside the project venv (not WSL python).
AUTOCADMCPBACKEND can be auto (default — tries File IPC, falls back to ezdxf), fileipc (requires AutoCAD), or ezdxf (headless only).
#### Running from WSL
If your MCP client runs in WSL (e.g. Claude Code), launch the server through cmd.exe so it runs as a native Windows process:
json
"mcpServers": {
"autocad-mcp": {
"type": "stdio",
"command": "cmd.exe",
"args": ["/d", "/s", "/c", "cd /d C:\\path\\to\\autocad-mcp && set AUTOCADMCPBACKEND=fileipc&& .venv\\Scripts\\python.exe -m autocadmcp"]
### 4. Verify
From your MCP client, call:
system(operation="status")
You should see backend: "fileipc" if AutoCAD is running, or backend: "ezdxf" for headless mode.
For native DWG work, require fileipc; the examples above disable headless fallback.
Verify DWGNAME, DWGPREFIX, CTAB and DBMOD with drawing.getvariables, then
inspect a screenshot before editing. status alone does not identify the active DWG.
Use a Windows-local working copy if Windows cannot access a WSL UNC path, and copy
saved deliverables back explicitly. Never use drawing.create to make a working copy:
it erases and purges the active drawing.
## Journaled native revisions
system(operation="revision", data={"action": "read", "drawing": "C:/work/copy.dwg",
"handles": ["ABCD"]}) reads native entities. The revision adapter supports bounded
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/puran-water-autocad-mcp/)
- 来源
- awesome · https://github.com/puran-water/autocad-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。