Autocad Site Mcp

io.github.blackmoon87由 GitHub 账号 blackmoon87 发布v0.2.1更新于 Oct 24, 2026

Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.

已验证Streamable HTTP可网页运行开发者工具媒体与设计

概览

AI 生成的概览

无头 CAD 引擎与 MCP 服务器,用于 2D/3D 制图、实体建模以及 DXF/SVG 导出。

可以做什么
它向助手提供无头 CAD 引擎能力,涵盖 2D 与 3D 制图、实体建模以及绘图任务的自动化。可将结果导出为 DXF 或 SVG 文件。注册表描述未列出具体工具,因此此处无法说明确切的命令集合。
适用场景
当助手需要生成或修改 CAD 几何图形、输出 DXF 或 SVG 图纸,或在不使用桌面 CAD 软件的情况下自动完成制图步骤时,适合添加。适用于处理 CAD 文件的工程、建筑或制造流程。
运行要求
可作为远程端点运行,也可通过 npm 包 autocad-site-mcp 以 stdio 方式作为本地进程安装运行。未声明任何身份验证、环境变量或请求头。本地安装需要 Node.js;使用远程方式需要网络访问。
安装前请注意
不要求提供凭据或密钥,也未声明任何支付或钱包信息。由于该服务器可以创建并导出图纸文件,请确认输出写入位置以及是否会覆盖现有文件。远程端点会将图纸数据发送到第三方主机。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Autocad Site Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.blackmoon87%2Fautocad-site-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "autocad-site": {
      "type": "http",
      "url": "https://acad-qlae.onrender.com/mcp"
    }
  }
}

README

该仓库没有 README。

工具

19

cad_new_drawing

Initializes a fresh CAD drawing space, clearing existing entities and resetting layers.

输入参数name

cad_add_layers

Creates or configures CAD layers with custom colors (hex), linetypes (Continuous, Hidden, Center, Phantom), and lineweights (0.18, 0.25, 0.35, 0.50, etc.).

输入参数layers必填

cad_batch_add_entities

Fast batch insertion of multiple CAD entities (LINE, LWPOLYLINE, CIRCLE, ARC, ELLIPSE, XLINE, RAY, DONUT, SOLID, TRACE, WIPEOUT, SPLINE, ARRAY (associative rect/polar/path), MLINE (multiline), TABLE (title, header and data cells), IMAGE (picture embedded in the drawing), TEXT, MTEXT, DIMENSION, TOLERANCE, LEADER, HATCH (pattern or gradient), POINT, INSERT, POLYLINE3D). LINE, POINT and POLYLINE3D points take z.

输入参数entities必填

cad_create_block

Defines a reusable Block containing geometric entities and optional attribute definitions (ATTDEF).

输入参数name必填entities必填basePointattributes

cad_insert_block

Places an instance (INSERT) of a block into the drawing with transform scale, rotation, and attribute values.

输入参数name必填scaleposition必填attributesrotationDeg

cad_generate_parametric

Generates complex parametric structures: "structural_grid", "truss", "mechanical_flange", "gear", or "architectural_floorplan".

输入参数type必填params

cad_run_commands

Runs AutoCAD command-line input in the current drawing, exactly as typed in the app. Statements are separated by ";" or newlines; inside a statement tokens are separated by spaces and the statement ends with Enter. Example: "LINE 0,0 100,0 100,50; CIRCLE 50,25 10; CHPROP ALL; C red; LAYMRG N DOORS; N WALLS Y; DRAWORDER ALL; F". Every statement ends with Enter, so keep the follow-up answers of one command step in the same statement ("CHPROP ALL; LA WALLS C red"; a question asked after Enter goes in the next statement: "LAYDEL N TEMP; Y"). Objects are selected with ALL or P (previous). Returns the command log and any problems. 3D: points x,y,z; 3DPOLY, ELEV, VIEW (Top, Front, SWiso ...), UCS. 3D solids: BOX, CYL, SPHERE, EXTRUDE, REVOLVE, UNION, SUBTRACT, INTERSECT, MASSPROP. Use cad_list_commands to see every command.

输入参数selectcommands必填

cad_list_commands

Lists every implemented AutoCAD command with its aliases and description. Optional filter matches the name, an alias or words in the description (for example "layer" or "dim").

输入参数filter

cad_execute_script

Executes JavaScript to generate large or procedural geometry (loops, patterns, algorithms) without spending context tokens. Runs in a separate Node process that cannot write files, start programs or read anything outside the CAD sources; 30 s limit. Variables: CAD, M (CADMath), G (CADGeometry), E (CADEntities), S (CADState), D (CADDXF), L (CADLayouts), parametric, solid(recipe) (adds a 3D solid), console. Changes to the drawing are kept.

输入参数script必填

cad_open_dxf

Opens an existing ASCII DXF file (AutoCAD R12 to 2018+) in place of the current drawing, so it can be edited with cad_run_commands and saved with cad_export_dxf. Returns counts, what was converted, and a warning listing objects that cannot be read (they would be missing from a saved file).

输入参数filePath必填

cad_export_dxf

Exports the current drawing to a standard AutoCAD 2000 (AC1015) ASCII DXF file compatible with AutoCAD, Civil 3D, SolidWorks, and LibreCAD.

输入参数filePath必填

cad_export_svg

Renders the drawing or paper space layout to an SVG vector file for instant preview and inspection.

输入参数filePath必填background

cad_export_stl

Exports the closed 3D solids to a binary or ASCII STL file for 3D printing.

输入参数idsscalebinaryfilePath必填

cad_solids

Inspects 3D solids: list (id, op, volume, bounds), measure (volume, area, centroid) or check (closed, curve error).

输入参数idsfromlimitaction

cad_get_stats

Returns comprehensive statistics of the current drawing: entity count, breakdown by type, layers, bounding box extents, blocks, and layouts.

无需输入参数。

cad_share_drawing

Shares the current drawing online via Cloudflare D1 storage (autocad.site). Returns view and edit URLs that can be shared with users or other agents.

输入参数nameapiUrlexpiresDays

cad_open_shared

Opens a shared drawing from Cloudflare D1 storage into the current CAD session by its share ID or URL.

输入参数id必填apiUrleditToken

cad_update_shared

Uploads and updates the current CAD session drawing to an existing shared drawing using its editToken.

输入参数id必填apiUrleditToken必填

cad_revoke_shared

Revokes and deletes a shared drawing from Cloudflare D1 storage using its ownerToken.

输入参数id必填apiUrlownerToken必填

版本历史

1
  1. v0.2.1最新Oct 15, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。