Easy AutoCADSAFE
这个项目是一个基于Model Context Protocol (MCP)的AutoCAD集成服务器,它允许通过自然语言与AutoCAD进行交互。通过这个服务器,用户可以使用Claude等大型语言模型来创建、修改和分析AutoCAD图纸,同时还可以存储和查询CAD元素的相关数据。目前制作参考学习,仅实现端到端之间的通信,具体工具函数尚未晚上
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/zh19980811-easy-mcp-autocad)
⚠️ 本项目目前维护精力有限,欢迎有兴趣的开发者参与协作! ⚠️ Currently this project is not actively maintained due to time constraints. I would be very happy to collaborate with anyone interested in co-maintaining or extending it.
基于 Model Context Protocol (MCP) 的 AutoCAD 集成服务器,允许通过 Claude 等大型语言模型 (LLM) 与 AutoCAD 进行自然语言交互。 An AutoCAD integration server based on Model Context Protocol (MCP), enabling natural language interaction with AutoCAD via large language models like Claude.
🔗 项目在 MseeP.ai 展示 / Referenced on MseeP.ai:
🎬 演示视频 / Demo Video: [](https://www.youtube.com/watch?v=-I6CTc3Xaek)
✨ 功能特点 / Features
- 🗣️ 自然语言控制 AutoCAD 图纸 / Natural language control of AutoCAD drawings
- ✏️ 基础绘图功能(线条、圆)/ Basic drawing tools (line, circle)
- 📚 图层管理 / Layer management
- 🧠 自动生成 PMC 控制图 / Auto-generate PMC control diagrams
- 🔍 图纸元素分析 / Drawing element analysis
- 🔦 文本高亮匹配 / Highlight specific text patterns
- 💾 内嵌 SQLite 数据库存储 CAD 元素 / Integrated SQLite storage for CAD elements
🖥️ 系统要求 / System Requirements
- Python 3.10+
- AutoCAD 2018+ (需支持 COM 接口 / with COM interface support)
- Windows 操作系统 / Windows OS
⚙️ 安装步骤 / Installation
1. 克隆仓库 / Clone the repository
git clone https://github.com/yourusername/autocad-mcp-server.git cd autocad-mcp-server
2. 创建虚拟环境 / Create virtual environment
Windows:
python -m venv .venv .venv\Scripts\activate
macOS / Linux:
python -m venv .venv source .venv/bin/activate
3. 安装依赖 / Install dependencies
pip install -r requirements.txt
4. (可选)构建可执行文件 / (Optional) Build as executable
pyinstaller -
c632bb055d59OBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add autocad-mcp-server -- uvx autocad-mcp-server
{
"mcpServers": {
"autocad-mcp-server": {
"command": "uvx",
"args": [
"autocad-mcp-server"
]
}
}
}Exposed tools (19)
15 read · 4 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
copy_entity | read | 复制实体 |
count_text_patterns | read | 统计图纸中文本实体中特定模式的出现次数 |
create_layer | write | 创建或修改图层 |
create_new_drawing | write | 创建新的 AutoCAD 图纸 |
draw_circle | read | 在AutoCAD中绘制圆 |
draw_device_connection | read | 绘制设备之间的连接线 |
draw_line | read | 在AutoCAD中绘制直线 |
draw_polyline | read | 绘制多段线 (Polyline) |
draw_rectangle | read | 绘制矩形 |
draw_text | read | 绘制单行文字 |
execute_query | write | 执行自定义数据库查询 |
get_all_tables | read | 获取数据库中的所有表 |
get_table_schema | read | 获取指定表的结构信息 |
highlight_entity | read | 通过Handle在AutoCAD中高亮显示指定实体 |
highlight_text_matches | read | 高亮显示包含指定文本模式的所有文本实体 |
move_entity | write | 移动实体 |
query_and_highlight | read | 根据SQL查询结果高亮显示AutoCAD实体 |
rotate_entity | read | 旋转实体 |
scan_all_entities | read | 扫描当前图纸中的所有实体并保存到数据库 |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
mcp, pywin32, comtypes, pyautocad, sqlalchemy, pyinstaller
CAD-mpc简单实现.mp4
Gates applied: no_behavioural_pass, no_license.
c632bb055d59full audit observations/trust-audit/mcp-server/zh19980811__easy-autocad.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | c632bb055d59 | SAFE | B | 89 | first audit |
Questions
What is the Easy AutoCAD MCP server?
这个项目是一个基于Model Context Protocol (MCP)的AutoCAD集成服务器,它允许通过自然语言与AutoCAD进行交互。通过这个服务器,用户可以使用Claude等大型语言模型来创建、修改和分析AutoCAD图纸,同时还可以存储和查询CAD元素的相关数据。目前制作参考学习,仅实现端到端之间的通信,具体工具函数尚未晚上
What tools does Easy AutoCAD expose?
19 in total: 15 read-only, 4 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Easy AutoCAD safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Easy AutoCAD need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (c632bb055d59), read on 2026-10-06. The repository is watched and re-audited when it changes.