CAD-MCP-Server

by shenlant314

106 downloads
Not rated
GitHub

About

AI-native CAD inspection, no CAD license required. CAD MCP Server bundles a WebAssembly Open CASCADE kernel so LLM tools can read, measure, and compare STEP files locally. The server returns measured facts; your AI assistant interprets engineering meaning.

Details

Author
shenlant314
Downloads
106
Categories
Other, AI

inspect_step

Use this FIRST when given a STEP file to inspect. Returns a compact summary: bounding box (AABB and OBB), watertight status, body/solid/face/edge/vertex counts, global properties (volume, surface area, center of mass, inertia, principal axes), per-subshape validity, tolerance statistics, and XDE metadata (assembly tree, PMI summary, color/layer/material presence). If the part is invalid, returns a structured list of which sub-shapes failed and why — the LLM gets actionable information, not a boolean. Don't use for entity-level searches; use query_step for that.

query_step

Declarative query over a STEP file's geometric, topological, and XDE entities. Specify which entity type to query (faces, edges, bodies, vertices, pmi, color, layer, material, assembly_node), filter by properties, optionally group by a shared dimension (axis, normal, surface type, etc.), measure derived values per entity or per group (ray tests, distances, curvature, section, continuity), and aggregate statistics (count, min, max, avg) over the result set. Use group_by to cluster entities that share a property — the operation find_coaxial_cylinders used to do is now {entities: "faces", filter: {surface_type: "cylinder"}, group_by: ["axis"]}. The result is one call instead of the 5+ round-trips that primitive-only tools require, and intermediate state stays on the server (set return_intermediate: true for debugging). For multi-step workflows that need iteration across result sets ("for each hole, ray-test, then filter"), use transact_step instead.

diff_step

Compare two STEP files and return metric deltas, topology changes, body-level changes, and XDE-level changes (PMI, colors, materials, assembly). Use this to compare two revisions of a part when you need factual differences in dimensions, volume, area, topology counts, or exchange metadata. Does NOT track feature identity across revisions — a hole that moved is "hole removed + hole added," not "hole moved." Deltas are comparison_file_path minus baseline_file_path.

transact_step

Run a multi-step workflow that needs iteration across result sets — for example, "for each hole, ray-test in +Z, then find ones where the ray didn't come out the other side." Each pipeline is a sequence of typed operations. The vocabulary is small: query (re-uses the query_step shape), for_each (apply a sub-pipeline to each item), filter_results (keep items where a condition holds), select (project to specific fields), and walk_assembly (XDE: traverse the assembly tree). Use this only when a single query_step call cannot express the workflow; for declarative queries, prefer query_step. Intermediate results are hidden by default; set return_intermediate: true to debug.

AI-native CAD inspection, no CAD license required. CAD MCP Server bundles a WebAssembly Open CASCADE kernel so LLM tools can read, measure, and compare STEP files locally. The server returns measured facts; your AI assistant interprets engineering meaning.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.