CAD MCP Server

io.github.mattmohandiss由 GitHub 帳號 mattmohandiss 發布v0.8.1更新於 Oct 26, 2026

Measure STEP CAD files with your AI assistant: walls, clearances, draft, and revision diffs.

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,可開啟 STEP CAD 檔案,讓助理量測真實幾何:尺寸、體積、壁厚、間隙、拔模、剖面與版本差異。

可以做什麼
  • 檢視 STEP 模型:包圍盒尺寸、體積、表面積、實體與組合件結構、B-rep 健康狀態
  • 依曲面類型、半徑、軸線或面積尋找面、邊、頂點與實體
  • 量測距離、壁厚、拔模、射線投射與射線網格、點分析、平面剖面與邊連續性
  • 讀取檔案中宣告的 PMI:尺寸、幾何公差與基準,並綁定到實體 ID
  • 比對兩個版本的尺寸、體積、面積與拓撲變化以及 STEP 中繼資料
適用情境
適合需要從 STEP 零件或組合件取得精確數值、而非憑截圖推測的情境,例如設計審查、面向製造的檢查、間隙與壁厚問題,或比較模型的兩個版本。
執行需求
透過 stdio 在本機執行,通常使用 npx cad-mcp-server。需要 Node.js 26+,系統為 Windows x64、macOS ARM64 或 Linux x64,並需要可讀取的 STEP 檔案。不需安裝 CAD 軟體或授權,未宣告任何環境變數或憑證。
安裝前請注意
此伺服器被描述為唯讀且在本機執行:依路徑讀取檔案,不上傳也不寫入 CAD 資料。但 CAD 檔案仍可能敏感,只應指向你願意在助理工作階段中曝露的檔案;結果與檔案版本綁定,過期的實體 ID 會被拒絕。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 CAD MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Ottogeo — CAD MCP Server

[npm version] [npm downloads] [license] [CI]

Give any AI assistant the ability to measure real CAD geometry. The server opens STEP files with the Open CASCADE kernel and answers the questions an engineer actually asks — overall size and volume, hole and boss diameters, wall thickness, clearance, draft, cross-sections, and what changed between two revisions — with numbers computed from the model's own B-rep, not estimated from a screenshot.

[The assistant measures a pocket floor to cross-bore distance of 0.8 mm, sections the model to confirm it, and verifies 3.0 mm in the revised STEP file.]

Quick start

Add the server to your MCP client, then point your assistant at a STEP file:

json
{  "mcpServers": {    "cad": {      "command": "npx",      "args": ["-y", "cad-mcp-server"]    }  }}

Works with any MCP client — Claude Desktop, Cursor, VS Code, and the rest.

Ask it anything about a part

  • "What are the overall dimensions and volume of this part?"
  • "Find the cylindrical faces and list their diameters and axes."
  • "Measure wall thickness on these faces."
  • "What is the minimum distance between this hole and the nearest wall?"
  • "Measure draft relative to the +Z direction and list faces with negative draft."
  • "Cut a section through this body at X = 40."
  • "What changed between revision A and revision B?"

More examples, including DFM-style review prompts, are in docs/EXAMPLE_PROMPTS.md.

Tools

ToolReturns
inspectBounding-box dimensions, volume, surface area, body and assembly structure, B-rep health, and a revision-bound reference.
find_entitiesFaces, edges, vertices, and bodies, with filters for surface type, radius, axis, and area.
measureDistance between faces, wall thickness, draft, ray casts, ray grids, point analysis, planar sections, and edge continuity.
describe_pmiDeclared dimensions (nominal with deviations or bounds), geometric tolerances (value, zone, material modifier, datums), and datums, each with the entity IDs it applies to.
diffDimension, volume, area, and topology deltas between two STEP revisions, declared PMI counts, and parsed STEP metadata.

Measurement kinds are distance, thickness, draft, ray, ray_grid, point_analysis, section, and continuity. Lengths come back in the file's declared unit, labelled on every result, so an inch model stays in inches and nothing has to be converted by hand. Angles are in degrees.

Why the numbers hold up

  • Computed by Open CASCADE, not guessed. The same file and the same query return the same numbers, every time.
  • Revision-bound and self-verifying. Every result carries the entity IDs and the SHA-256 revision it came from, and stale IDs are rejected when a file changes underneath a session — so an answer can never be attached to the wrong geometry.
  • Reads the model's own callouts. describe_pmi reports the dimensions, geometric tolerances, and datums a file declares, each bound to the entities it applies to, so declared requirements can be checked against the geometry.
  • Local and private. It runs over stdio and reads files by path. It is read-only and never uploads or writes your CAD data.

Requirements

  • Node.js 26+
  • Windows x64, macOS ARM64 (Apple Silicon), or Linux x64
  • STEP files, as exported by SolidWorks, Fusion 360, Onshape, FreeCAD, CATIA, or any other CAD system

FAQ

Does it need CAD software installed? No. It reads STEP files directly, so it works on a machine without a CAD application or license.

Do my files leave my machine? No. The server runs locally over stdio and reads files by path. It is read-only and never writes to your CAD data.

How is this different from asking an assistant to look at a screenshot? Measurements are computed from the model's B-rep geometry by Open CASCADE, so the same file and query return the same numbers. Each result also carries the entity IDs and revision it came from.

Development

Source setup, checks, packaging, and releases are in docs/DEVELOPMENT.md. The server targets Windows x64, macOS ARM64, and Linux x64, and builds its native sidecar from the pinned OCCT revision.

Packaging

npm pack builds first and includes the compiled server, the native sidecar, this README, and the third-party notices. Tests and source maps are excluded. Install the tarball to check the cad-mcp-server executable with a compatible MCP client.

Documentation

License

MIT. Third-party licenses: THIRD_PARTY_NOTICES.md.

來源:README.md,提交 f9ac1b1

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.8.1最新Oct 19, 2026
  2. v0.7.1Oct 5, 2026
  3. v0.7.0Oct 5, 2026
  4. v0.6.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分