Shapr3D Native MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Experimental native Shapr3D 26.180.0 build 11926 bridge. Operates on the project open in the isolated Native Lab app, once the user has allowed it (native_approve_project). Start with native_scene; use native_look to check shapes; prefer native_find_parts/native_fillet_edges over coordinates; To create more than a few solids, ALWAYS use native_build_parts with one list of boxes, prisms and cylinders (any direction, repeat, rotated frame): one call, no sketch-by-sketch work and no moving afterwards. Verify with native_check_geometry; remove or hide with native_delete_bodies and native_set_visibility instead of archiving into folders. native_run_script batches small edits; native_restore undoes to a restore point (it cannot reach far back in a long history). No UI input simulation. 2D profiles are imported as DXF curves; Shapr3D creates solids and native history. Other modeling commands are unsupported until individually tested. Edits answer with the new history steps and bodies only; native_history gives full step parameters. Never substitute external STEP solids or claim full tool coverage.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| native_statusA | Read live state and selection of the approved project. The history is shortened; use native_history for its steps. |
| native_import_profileA | Import 2D curves into the authorized project. Entities: line{x1,y1,x2,y2}, circle{x,y,radius}, arc{x,y,radius,start_deg,end_deg}, each with kind. Millimeters. Solid creation is a separate native extrusion. |
| native_extrude_profileA | Extrude a unique native sketch region. Result: new_body (default), union, subtract, or intersect. The result mode is explicitly applied through native history. Millimeters; Coordinates and nonzero distance up to ±200 m. No viewport clicks. |
| native_edit_test_plate_heightC | Edit the verified two-step test plate's native extrusion dimension. Rejects other history structures. |
| native_commandA | Run an allowlisted native action: undo, redo, fit_view, clear_selection, isometric_view. Only the authorized project. |
| native_historyA | Read the history. Without step_name: the last steps with their values. With step_name: that step in full, including every parameter label and choice (for native_set_history_expression/choice). |
| native_itemsA | List native body IDs, names, selection, individual body bounds, and sketch-plane origin/normal/axes in meters. Item refs are transient; list again after geometry changes. |
| native_select_bodiesB | Select exactly the native solid IDs returned by native_items. Resolves current items and checks selected IDs; no screen picking. |
| native_union_bodiesA | Unite 2-20 intersecting/touching native bodies, using exact current body IDs. Produces an editable Union feature and checks that they became one body. |
| native_subtract_bodiesA | Cut the tool bodies out of the target bodies with the native Subtract tool, using current body IDs. Whether the tool bodies are kept or consumed follows Shapr3D's current Subtract setting; check the returned bodies and remove leftovers with native_delete_bodies. |
| native_intersect_bodiesB | Keep only the volume shared by two groups of bodies, with the native Intersect tool. |
| native_cancel_toolA | Cancel the currently active tool started by this bridge. Refuses to cancel a tool it did not start. |
| native_transform_bodiesA | Move or rotate current body IDs along/about world x/y/z. Translation in mm, rotation in degrees about the reported native gizmo center. Requires a gizmo axis parallel to the requested world axis; otherwise refuses. No screen input. |
| native_rename_bodyB | Rename one native solid identified by native_items, and verify its new name. |
| native_variablesA | Read native named variables with their expressions and evaluated values (length values are meters). |
| native_create_length_variableC | Create a native Shapr3D length variable, such as rotor_thickness = 3 mm. Normal Shapr3D expression validation applies. |
| native_create_variableB | Create a native length, angle, or number variable. Include units, e.g. 3 mm or 12 deg. Evaluated lengths are meters and angles are radians. |
| native_select_part_atA | Select a unique native face, edge, profile, or axis near a world point, using a short ray along direction (default [0,0,1]). Optional body_id filters overlaps. No screen input. Try 0.2 mm radius for edges. Rejects ambiguity and verifies identity. |
| native_loft_sectionsA | Loft 2-10 face/profile sections. Each section supplies x_mm,y_mm,z_mm,kind (face or profile), optional radius_mm. Creates native Loft history; requires pre-existing sections. |
| native_fillet_edge_atC | Round one uniquely identified native edge with a positive radius in mm. Creates editable native Fillet history. |
| native_set_history_expressionA | Set one unambiguous numeric history parameter to a Shapr3D expression or variable. Use native_status labels. When a label repeats (linear pattern: Abstand/Anzahl for X, Y, Z), occurrence picks 0, 1 or 2. Verifies the result. |
| native_set_history_choiceC | Set an offered native history choice by its key from native_status. Verified for extrusion Result, including new body and union. Other choice parameters need their first scoped test. |
| native_capabilitiesC | Distinguish verified operations from recovered but untested command names. |
| native_pick_parts_atA | Inspect native topology at a world point without selecting it. Reports part/body IDs, hit points and normals where available. Direction defaults to [0,0,1]; radius 0.001-1 mm. |
| native_measure_selectionA | Measure the current selection through Shapr3D's native Measure tool, then restore modeling. Returns native units and labels. |
| native_offset_face_atB | Offset a uniquely selected native face. Signed distance in mm, bounded ±250; use direction for non-horizontal faces. |
| native_execute_stepsA | Run 1-50 supported MCP operations sequentially in one call. Each step: {id,tool,arguments,return_fields?}. Arguments may reference earlier output with {"$ref":"step_id.items.0.body_ids"}. Stops on first error; completed edits remain. Returns compact summaries by default. No unrestricted native command execution. |
| native_active_projectA | Which project is open in Native Lab, and whether the user has approved editing it. |
| native_approve_projectA | Ask the user, in a macOS dialog, to allow editing the project that is open now. Only the user can answer; waits up to 3 minutes. |
| native_revoke_projectC | Withdraw edit permission from a project (default: the open one). |
| native_sceneA | One compact summary of the open project: bodies, sketches, history, variables, saved references. Lengths in mm; history values are SI (meters, radians). |
| native_checkpointB | Save a named restore point of the open project (history, items, variables). |
| native_checkpointsA | List restore points, oldest first. Automatic ones are taken before each modeling tool. |
| native_restoreB | Undo back to a restore point. This also undoes manual edits made after it. If the point cannot be reached, the undos are redone. |
| native_lookC | Picture of the Native Lab window. view: current, iso, iso2, default, front, back, left, right, top, bottom. fit zooms to the model. |
| native_topology_ofA | List a body's faces and edges (found by ray sampling, so very small features can be missed). Positions in mm. |
| native_find_partsB | Find faces or edges by meaning. where keys: at (top/bottom/left/right/front/back or a list), facing (+x..-z, faces), parallel (x/y/z, edges), shape (planar/curved/straight), near [x,y,z], limit. |
| native_select_partsC | Select faces or edges by meaning (see native_find_parts) or by a saved reference name. |
| native_save_referenceB | Name a face/edge description so it can be reused after edits. It is re-resolved each time, so it follows dimension changes. Name the body first. |
| native_run_scriptA | Run a modeling script: a Python subset with variables, for/if, lists, arithmetic and f-strings. No imports, attributes or def. Functions are most native_* tools without the prefix (not restore, approve/revoke, look, cancel_tool or run_script itself), e.g. scene(), import_profile(name, entities, z_mm), extrude_profile(x_mm, y_mm, distance_mm), items(), rename_body(body_id, name), find_parts(body, kind, where), fillet_edges(radius_mm, body, where), create_variable(name, expression). Helpers: rectangle(x,y,width,height), circle(x,y,radius), polygon(points) return entity lists; range, len, min, max, abs, round, sqrt, sin/cos (degrees), print. A restore point named "script" is saved first. Stops at the first error. |
| native_tipsA | Hide (default) or show Shapr3D's green tip cards in Native Lab. Applies until the app is restarted; the next tool call after a restart hides them again. |
| native_fillet_edgesC | Round every edge matching a description or saved reference, as one native Fillet step. |
| native_chamfer_edgesC | Bevel every edge matching a description or saved reference, as one native Chamfer step. |
| native_shell_bodyC | Hollow a body with walls of this thickness, opening the described faces, e.g. where={"facing": "top"}. |
| native_constrain_sketchA | Add a Shapr3D sketch constraint to curves of a sketch at height z. points: [[x,y], ...], one on each curve; tap a line's END to constrain the endpoint (coincident). Sketches come from native_import_profile. constraint: coincident, concentric, equal, horizontal_vertical, lock, midpoint, parallel, perpendicular, tangent. |
| native_alignA | Move a body so one of its flat faces sits on a flat face of another body, centre to centre, e.g. ("Lid", {"facing": "-z"}, "Box", {"facing": "+z"}). If a face has no material at its centre (a ring), the call fails. |
| native_mirror_bodiesB | Mirror bodies across a flat face of a body, e.g. plane_body="Plate body", where={"facing": "+x"}. Originals follow Shapr3D's "keep originals" setting. World planes cannot be picked yet. |
| native_scale_bodiesB | Scale bodies uniformly about the centre of the selection. factor 2 doubles the size. |
| native_linear_patternA | Repeat bodies in a grid along world X, Y and Z. Counts include the original; spacing is between neighbours. Creates one native pattern step. |
| native_revolve_profileC | Revolve the sketch region at (x, y, z) around the world x, y or z axis. The axis should lie in the sketch plane beside the profile (x or y for sketches at z=0). |
| native_sweep_profileB | Sweep the sketch region at (x, y, z) along edges of a body, e.g. path_where={"parallel": "z", "near": [45, 7, 5]}. Several matched edges must connect. Sketch curves cannot be used as a path yet. |
| native_import_fileA | Import a CAD or mesh file from any folder into the open project: STEP, IGES, Parasolid, STL, DXF, DWG (untested). DXF and STL numbers are read as millimetres. |
| native_exportA | Export the open project to any folder with Shapr3D's own exporter. format: step, parasolid, iges, stl, 3mf, obj, glb, usdz, shapr, dxf_sketch, dwg_sketch, svg (saved as a .zip of SVG files), jt (needs a Studio plan). The app's current export settings and plan limits apply. |
| native_set_variableA | Change a variable, e.g. ("width", "60 mm") or ("hole_d", "width / 10"). The model recomputes; if a variable stops evaluating, a history step fails or bodies appear or vanish, the change is undone and an error is raised. |
| native_build_partsA | Build many solids in one call. Use this instead of repeating import_profile/extrude_profile/transform. Each part: {"name": "Rafter", "box": [x0,y0,z0,x1,y1,z1]} or {"name":..., "profile": [[x,y,z],...], "thickness": mm,
"direction": [dx,dy,dz] (optional, perpendicular to the profile)}. Profiles may be vertical or sloped.
Round parts: {"name": "Dowel", "cylinder": {"center": [x,y,z] (middle of the start face), "radius": mm,
"height": mm, "axis": [x,y,z] (default up)}}. Never approximate a circle with a polygon. For a round hole,
build the cylinder and cut it with native_subtract_bodies.
"repeat": {"count": n, "step": [dx,dy,dz]} or a list of such for grids.
frame: {"origin": [x,y,z], "rotate_z": degrees} places the whole list, e.g. on a 45 degree grid.
All lengths in mm. Bodies are named after their part and grouped into |
| native_delete_bodiesB | Delete bodies, chosen by IDs or by exact name (all with that name). Adds a Delete step; a restore point is saved. |
| native_set_visibilityC | Show or hide bodies, chosen by IDs or exact name. |
| native_check_geometryC | Extent of all visible bodies whose name starts with prefix, and what they overlap, measured on a fresh mesh export. rotate_z gives the angle of a building grid (e.g. 45), so boxes are tight there. Overlap is a box test: sloped or L-shaped parts can be reported although they do not touch. |
| native_section_drawingC | One section drawing with the cut surfaces filled 100 % black; see native_section_drawings for the details. |
| native_section_drawingsA | Cut the visible model along several planes and write drawings with the cut surfaces filled 100 % black. One mesh export is shared by all specs (or pass mesh_path of an earlier OBJ export). Spec keys: path (absolute, .pdf or .svg), at (mm, the cut position in the grid), along ("u" or "v": the axis drawn left to right; the plane is perpendicular to the other one), look (1 or -1: viewing direction), rotate_z (grid angle, default 45), include / exclude (name prefixes; spaces count as underscores), scale (default 100), window [x0, x1, z0, z1] in mm, depth (mm behind the plane to draw), context ("line" draws land and water as lines, "none" omits them), levels [[z_mm, "label"]...], title, overwrite, line_width (edges behind, paper mm, default .13), cut_line (outline around every cut surface in paper mm, default 0), cut_fill ("black" by default, "none" for a white cut surface with only an outline of 0.35 mm unless cut_line says otherwise, or a colour such as "#808080"), weights [{"name": prefix, "cut": mm, "edge": mm, "fill": "black" | "none" | "#rrggbb"}] to give single object types other thicknesses (first matching rule wins; thicker outlines make small, dense members read heavier). Beware: visible bodies only; hidden ones are not drawn. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 60 tools
Several tool pairs have boundaries that only careful reading resolves: native_section_drawing vs native_section_drawings, native_create_length_variable vs native_create_variable, native_select_part_at vs native_pick_parts_at vs native_find_parts vs native_select_parts, and native_fillet_edges vs native_fillet_edge_at. Descriptions do supply distinguishing cues (singular vs batch, inspect vs select, verified vs untested), so an agent can disambiguate, but it needs effort at 60 tools.
Most tools follow a snake_case verb_noun pattern (native_create_variable, native_extrude_profile, native_mirror_bodies), but a large cluster of read-only tools are bare nouns (native_scene, native_items, native_history, native_status, native_variables, native_tips). Near-synonym verbs are applied to similar operations (pick/select/find, set/create), which weakens predictability.
60 tools is heavy even for a full CAD surface; many are fine-grained variants of the same operation (three variable tools, four selection/inspection tools, singular/plural drawing pairs) that could be folded into parameters on a smaller set. The domain is genuinely broad, so it is not a trivial mismatch, but the count is well past comfortable scoping.
The surface covers the whole modeling lifecycle: project authorization, scene/status/history inspection, sketch import and constraints, extrude/revolve/loft/sweep, booleans, fillet/chamfer/shell, transforms/patterns/mirror/scale, variables and history expressions, checkpoints and restore, import/export, and sectional drawing output. Almost no dead ends remain for an agent working in this domain.