daobataotie/CAD-MCP
CAD MCP Server
daf750295117cad-mcp2.0.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 35 tools, 1 resource, 1 prompt. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
11 of 37 tools declare annotations. readOnlyHint 5, destructiveHint 6.
Each declaration matches what the traced code does.
Tools, prompts and resources (37: 35 tools, 1 resource, 1 prompt)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
cad-assistantprompt 一个用于通过自然语言控制CAD的助手
一个用于通过自然语言控制CAD的助手
当前CAD图纸resource 当前CAD图纸的状态(会话绘图记录 + 来自CAD文档的实时统计)
当前CAD图纸的状态(会话绘图记录 + 来自CAD文档的实时统计)
add_dimensiontool 在CAD中添加线性标注(text_position 不指定时自动放在中点上方)
在CAD中添加线性标注(text_position 不指定时自动放在中点上方)
array_linear_entitytool 矩形阵列:沿位移向量方向复制 count-1 份(含原实体共 count 个)
矩形阵列:沿位移向量方向复制 count-1 份(含原实体共 count 个)
array_polar_entitytool 环形阵列:绕中心点在 total_angle 角度范围内复制 count-1 份
环形阵列:绕中心点在 total_angle 角度范围内复制 count-1 份
close_drawingtool 关闭当前文档(save=False 时不保存直接关闭)destructive (declared)
关闭当前文档(save=False 时不保存直接关闭)
copy_entitytool 复制实体并平移指定位移,返回新实体句柄
复制实体并平移指定位移,返回新实体句柄
create_blocktool 创建图块定义(若同名图块已存在则直接返回)
创建图块定义(若同名图块已存在则直接返回)
注意:图块内部实体可通过 send_command 执行 BEDIT 等命令编辑。create_layertool 创建新图层并设为当前图层(若已存在则直接激活)
创建新图层并设为当前图层(若已存在则直接激活)
draw_arctool 在CAD中绘制弧(角度单位:度)
在CAD中绘制弧(角度单位:度)
draw_circletool 在CAD中绘制圆
在CAD中绘制圆
color 支持CAD颜色索引(1-256)或中英文颜色名称,不指定则保持随层颜色。draw_ellipsetool 在CAD中绘制椭圆(rotation 为旋转角度,单位:度)
在CAD中绘制椭圆(rotation 为旋转角度,单位:度)
draw_hatchtool 在CAD中绘制填充(points 为闭合边界点集,至少3个点)
在CAD中绘制填充(points 为闭合边界点集,至少3个点)
pattern_name 为填充图案名称,默认 SOLID(实体填充)。draw_linetool 在CAD中绘制直线
在CAD中绘制直线
color 支持CAD颜色索引(1-256)或中英文颜色名称(如"红色"、"red"),不指定则保持随层颜色。draw_polylinetool 在CAD中绘制多段线(closed=True 时闭合)
在CAD中绘制多段线(closed=True 时闭合)
draw_rectangletool 在CAD中绘制矩形(由两个对角点确定)
在CAD中绘制矩形(由两个对角点确定)
draw_texttool 在CAD中添加单行文本
在CAD中添加单行文本
erase_entitytool 删除指定句柄的实体destructive (declared)
删除指定句柄的实体
get_entity_propertiestool 按句柄查询实体详细属性(几何信息随实体类型而异:坐标/半径/文本内容等)read-only (declared)
按句柄查询实体详细属性(几何信息随实体类型而异:坐标/半径/文本内容等)
insert_blocktool 在模型空间插入图块引用(返回图块引用实体的句柄)
在模型空间插入图块引用(返回图块引用实体的句柄)
list_blockstool 列出当前图纸中的用户图块定义read-only (declared)
列出当前图纸中的用户图块定义
list_entitiestool 列出模型空间中的实体(实时查询,与CAD文档保持同步)read-only (declared)
列出模型空间中的实体(实时查询,与CAD文档保持同步)
返回实体的句柄(handle),可用于编辑类工具与 get_entity_properties。
entity_type 可按类型过滤(如 line/circle/arc/text);limit 控制返回数量。list_layerstool 列出当前图纸的所有图层(名称、颜色、冻结/锁定/开关状态、是否当前层)read-only (declared)
列出当前图纸的所有图层(名称、颜色、冻结/锁定/开关状态、是否当前层)
mirror_entitytool 沿两点确定的镜像轴镜像实体(保留原实体),返回新实体句柄
沿两点确定的镜像轴镜像实体(保留原实体),返回新实体句柄
move_entitytool 移动实体(displacement 为位移向量 [dx, dy, dz])
移动实体(displacement 为位移向量 [dx, dy, dz])
new_drawingtool 新建图纸文档destructive (declared)
新建图纸文档
offset_entitytool 偏移实体(正负值决定偏移方向),返回新实体句柄
偏移实体(正负值决定偏移方向),返回新实体句柄
open_drawingtool 打开已有图纸文件(DWG/DXF等)destructive (declared)
打开已有图纸文件(DWG/DXF等)
process_commandtool 处理自然语言命令并转换为CAD操作(遗留接口)
处理自然语言命令并转换为CAD操作(遗留接口)
推荐优先直接调用结构化绘图工具(draw_line/draw_circle等),
仅在用户明确要求自然语言入口时使用本工具。redotool 重做被撤销的操作
重做被撤销的操作
rotate_entitytool 绕基点旋转实体(角度单位:度,逆时针为正)
绕基点旋转实体(角度单位:度,逆时针为正)
save_drawingtool 保存当前图纸(按扩展名自动选择 DWG/DXF 格式;已存在的文件将被覆盖)destructive (declared)
保存当前图纸(按扩展名自动选择 DWG/DXF 格式;已存在的文件将被覆盖)
scale_entitytool 绕基点缩放实体(scale_factor>1 放大,<1 缩小)
绕基点缩放实体(scale_factor>1 放大,<1 缩小)
screenshottool 截取CAD主窗口画面并返回PNG预览图(用于确认绘图效果)read-only (declared)
截取CAD主窗口画面并返回PNG预览图(用于确认绘图效果)
send_commandtool 直通CAD命令行执行任意命令(功能逃生舱)destructive (declared)
直通CAD命令行执行任意命令(功能逃生舱)
示例:"_.ZOOM E"(缩放全图)、"_.ERASE" 配合选择集等。
建议命令以 "_." 前缀强制英文命令名以兼容中文版CAD。set_current_layertool 切换当前图层(图层必须已存在)
切换当前图层(图层必须已存在)
undotool 撤销上一步操作
撤销上一步操作
Text the model reads (37)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
draw_line tool
在CAD中绘制直线
color 支持CAD颜色索引(1-256)或中英文颜色名称(如"红色"、"red"),不指定则保持随层颜色。draw_circle tool
在CAD中绘制圆
color 支持CAD颜色索引(1-256)或中英文颜色名称,不指定则保持随层颜色。draw_arc tool
在CAD中绘制弧(角度单位:度)
draw_ellipse tool
在CAD中绘制椭圆(rotation 为旋转角度,单位:度)
draw_polyline tool
在CAD中绘制多段线(closed=True 时闭合)
draw_rectangle tool
在CAD中绘制矩形(由两个对角点确定)
draw_text tool
在CAD中添加单行文本
draw_hatch tool
在CAD中绘制填充(points 为闭合边界点集,至少3个点)
pattern_name 为填充图案名称,默认 SOLID(实体填充)。add_dimension tool
在CAD中添加线性标注(text_position 不指定时自动放在中点上方)
list_layers tool
列出当前图纸的所有图层(名称、颜色、冻结/锁定/开关状态、是否当前层)
list_entities tool
列出模型空间中的实体(实时查询,与CAD文档保持同步)
返回实体的句柄(handle),可用于编辑类工具与 get_entity_properties。
entity_type 可按类型过滤(如 line/circle/arc/text);limit 控制返回数量。get_entity_properties tool
按句柄查询实体详细属性(几何信息随实体类型而异:坐标/半径/文本内容等)
screenshot tool
截取CAD主窗口画面并返回PNG预览图(用于确认绘图效果)
erase_entity tool
删除指定句柄的实体
move_entity tool
移动实体(displacement 为位移向量 [dx, dy, dz])
rotate_entity tool
绕基点旋转实体(角度单位:度,逆时针为正)
scale_entity tool
绕基点缩放实体(scale_factor>1 放大,<1 缩小)
copy_entity tool
复制实体并平移指定位移,返回新实体句柄
mirror_entity tool
沿两点确定的镜像轴镜像实体(保留原实体),返回新实体句柄
offset_entity tool
偏移实体(正负值决定偏移方向),返回新实体句柄
array_linear_entity tool
矩形阵列:沿位移向量方向复制 count-1 份(含原实体共 count 个)
array_polar_entity tool
环形阵列:绕中心点在 total_angle 角度范围内复制 count-1 份
undo tool
撤销上一步操作
redo tool
重做被撤销的操作
create_layer tool
创建新图层并设为当前图层(若已存在则直接激活)
set_current_layer tool
切换当前图层(图层必须已存在)
new_drawing tool
新建图纸文档
open_drawing tool
打开已有图纸文件(DWG/DXF等)
close_drawing tool
关闭当前文档(save=False 时不保存直接关闭)
save_drawing tool
保存当前图纸(按扩展名自动选择 DWG/DXF 格式;已存在的文件将被覆盖)
send_command tool
直通CAD命令行执行任意命令(功能逃生舱)
示例:"_.ZOOM E"(缩放全图)、"_.ERASE" 配合选择集等。
建议命令以 "_." 前缀强制英文命令名以兼容中文版CAD。create_block tool
创建图块定义(若同名图块已存在则直接返回)
注意:图块内部实体可通过 send_command 执行 BEDIT 等命令编辑。insert_block tool
在模型空间插入图块引用(返回图块引用实体的句柄)
list_blocks tool
列出当前图纸中的用户图块定义
process_command tool
处理自然语言命令并转换为CAD操作(遗留接口)
推荐优先直接调用结构化绘图工具(draw_line/draw_circle等),
仅在用户明确要求自然语言入口时使用本工具。cad-assistant prompt
一个用于通过自然语言控制CAD的助手
当前CAD图纸 resource
当前CAD图纸的状态(会话绘图记录 + 来自CAD文档的实时统计)
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 37 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 37 tool handlers traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 37 tool handlers traced
- Requests any addressNo tool sends a request to an address the caller supplies — 37 tool handlers traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 37 tool handlers traced
- Tools that start processesNot seen in the traced code of 37 capabilities; 37 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 37 capabilities; 37 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 37 capabilities; 37 more call code the scanner could not follow, where it may happen
Where the code is: 37 handlers in 1 file at commit daf750295117
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: pyproject.toml, requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 4 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=1.12,<2
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 37 capabilities; 37 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=1.12,<2 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-27 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 5 catalogs (awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org) |
|---|---|
| License | MIT |
| Created | 2025-03-24 |
| Topics | ai cad cadmcp mcp model-context-protocol |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.