
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.
概览
本地 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 软件或授权,未声明任何环境变量或凭据。
安装
在 SourceWeft 中
- 打开 控制台中的 CAD MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
Quick start
Add the server to your MCP client, then point your assistant at a STEP file:
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
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_pmireports 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
- Example prompts
- Architecture — tools, workflow, and limits
- Security — local processing and handling CAD files as sensitive input
- Changelog
License
MIT. Third-party licenses: THIRD_PARTY_NOTICES.md.
来源:README.md,提交 f9ac1b1
工具
0版本历史
4- v0.8.1最新Oct 19, 2026
- v0.7.1Oct 5, 2026
- v0.7.0Oct 5, 2026
- v0.6.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分