About Cad MCP
Cad MCP is an MCP server published by daobataotie in the AI category: cAD MCP Server. Conduid read 35 tools from its source: add_dimension, array_linear_entity, array_polar_entity, close_drawing, copy_entity, create_block and 29 more. No package is published for it, so it installs from a source checkout.
The repository has 753 stars and 116 forks, is licensed MIT, and its last commit was on 27 Oct 2026. Conduid has no tagged release on record for it. It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Tests present, Dependencies pinned and Scoped permissions. Its topics include autocad, bim, civil3d, repl, revit and roslyn.
Install
git clone https://github.com/daobataotie/CAD-MCPTools (35)
add_dimension在CAD中添加线性标注(text_position 不指定时自动放在中点上方)| Parameter | Type | Description |
|---|---|---|
| color | any | |
| end_point * | any | |
| layer | string | |
| start_point * | any | |
| text_position | any | |
| textheight | any |
array_linear_entity矩形阵列:沿位移向量方向复制 count-1 份(含原实体共 count 个)| Parameter | Type | Description |
|---|---|---|
| count * | any | |
| displacement * | any | |
| handle * | string |
array_polar_entity环形阵列:绕中心点在 total_angle 角度范围内复制 count-1 份| Parameter | Type | Description |
|---|---|---|
| center * | any | |
| count * | any | |
| handle * | string | |
| total_angle_degrees | number |
close_drawing关闭当前文档(save=False 时不保存直接关闭)| Parameter | Type | Description |
|---|---|---|
| save | boolean |
copy_entity复制实体并平移指定位移,返回新实体句柄| Parameter | Type | Description |
|---|---|---|
| displacement * | any | |
| handle * | string |
create_block创建图块定义(若同名图块已存在则直接返回)| Parameter | Type | Description |
|---|---|---|
| base_point | any | |
| block_name * | string |
create_layer创建新图层并设为当前图层(若已存在则直接激活)| Parameter | Type | Description |
|---|---|---|
| layer_name * | string |
draw_arc在CAD中绘制弧(角度单位:度)| Parameter | Type | Description |
|---|---|---|
| center * | any | |
| color | any | |
| end_angle * | number | |
| layer | string | |
| lineweight | number | |
| radius * | any | |
| start_angle * | number |
draw_circle在CAD中绘制圆| Parameter | Type | Description |
|---|---|---|
| center * | any | |
| color | any | |
| layer | string | |
| lineweight | number | |
| radius * | any |
draw_ellipse在CAD中绘制椭圆(rotation 为旋转角度,单位:度)| Parameter | Type | Description |
|---|---|---|
| center * | any | |
| color | any | |
| layer | string | |
| lineweight | number | |
| major_axis * | any | |
| minor_axis * | any | |
| rotation | number |
draw_hatch在CAD中绘制填充(points 为闭合边界点集,至少3个点)| Parameter | Type | Description |
|---|---|---|
| color | any | |
| layer | string | |
| pattern_name | string | |
| points * | any | |
| scale | any |
draw_line在CAD中绘制直线| Parameter | Type | Description |
|---|---|---|
| color | any | |
| end_point * | any | |
| layer | string | |
| lineweight | number | |
| start_point * | any |
draw_polyline在CAD中绘制多段线(closed=True 时闭合)| Parameter | Type | Description |
|---|---|---|
| closed | boolean | |
| color | any | |
| layer | string | |
| lineweight | number | |
| points * | any |
draw_rectangle在CAD中绘制矩形(由两个对角点确定)| Parameter | Type | Description |
|---|---|---|
| color | any | |
| corner1 * | any | |
| corner2 * | any | |
| layer | string | |
| lineweight | number |
draw_text在CAD中添加单行文本| Parameter | Type | Description |
|---|---|---|
| color | any | |
| height | any | |
| layer | string | |
| position * | any | |
| rotation | number | |
| text * | string |
erase_entity删除指定句柄的实体| Parameter | Type | Description |
|---|---|---|
| handle * | string |
get_entity_properties按句柄查询实体详细属性(几何信息随实体类型而异:坐标/半径/文本内容等)| Parameter | Type | Description |
|---|---|---|
| handle * | string |
insert_block在模型空间插入图块引用(返回图块引用实体的句柄)| Parameter | Type | Description |
|---|---|---|
| block_name * | string | |
| position * | any | |
| rotation_degrees | number | |
| x_scale | number | |
| y_scale | number | |
| z_scale | number |
list_blocks列出当前图纸中的用户图块定义list_entities列出模型空间中的实体(实时查询,与CAD文档保持同步)| Parameter | Type | Description |
|---|---|---|
| entity_type | string | |
| limit | integer |
list_layers列出当前图纸的所有图层(名称、颜色、冻结/锁定/开关状态、是否当前层)mirror_entity沿两点确定的镜像轴镜像实体(保留原实体),返回新实体句柄| Parameter | Type | Description |
|---|---|---|
| handle * | string | |
| point1 * | any | |
| point2 * | any |
move_entity移动实体(displacement 为位移向量 [dx, dy, dz])| Parameter | Type | Description |
|---|---|---|
| displacement * | any | |
| handle * | string |
new_drawing新建图纸文档offset_entity偏移实体(正负值决定偏移方向),返回新实体句柄| Parameter | Type | Description |
|---|---|---|
| distance * | number | |
| handle * | string |
open_drawing打开已有图纸文件(DWG/DXF等)| Parameter | Type | Description |
|---|---|---|
| file_path * | string |
process_command处理自然语言命令并转换为CAD操作(遗留接口)| Parameter | Type | Description |
|---|---|---|
| command * | string |
redo重做被撤销的操作rotate_entity绕基点旋转实体(角度单位:度,逆时针为正)| Parameter | Type | Description |
|---|---|---|
| angle_degrees * | number | |
| base_point * | any | |
| handle * | string |
save_drawing保存当前图纸(按扩展名自动选择 DWG/DXF 格式;已存在的文件将被覆盖)| Parameter | Type | Description |
|---|---|---|
| file_path * | string |
scale_entity绕基点缩放实体(scale_factor>1 放大,<1 缩小)| Parameter | Type | Description |
|---|---|---|
| base_point * | any | |
| handle * | string | |
| scale_factor * | any |
screenshot截取CAD主窗口画面并返回PNG预览图(用于确认绘图效果)send_command直通CAD命令行执行任意命令(功能逃生舱)| Parameter | Type | Description |
|---|---|---|
| command * | string |
set_current_layer切换当前图层(图层必须已存在)| Parameter | Type | Description |
|---|---|---|
| layer_name * | string |
undo撤销上一步操作Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 6 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/server.py:1153, src/server.py:1169
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 2 callssrc/cad_controller.py:567, src/server.py:65
- Lockfile
- None in the repository
Pattern matches on the source text of 6 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.0K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README