/3dp-mcp-server:design-mating-partsfrom 3dp-mcp-server
Designs 3D-printed parts with mating features: snap-fits, hinges, dovetails, gears, threaded holes, heat-set inserts, and press/sliding fits. Provides clearance tables and tool calls for the 3dp-mcp-server.
Ships in 3dp-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Printed parts come out slightly oversize on outside dimensions and undersize on holes. A joint modelled at exact size will not assemble. Decide the clearance first, then model.
| Fit | Clearance | Use for |
|---|---|---|
| Press fit | 0.0–0.1 mm | Bearings, pins that should stay put |
| Snug | 0.15–0.2 mm | Lids, alignment features, dovetails |
| Sliding | 0.3 mm | Drawers, rails, hinge pins |
| Loose / print-in-place | 0.4–0.5 mm | Parts printed already assembled |
PETG and ABS need about 0.05 mm more than PLA. When the fit matters, suggest printing a small test piece of just the joint before the full part.
create_threaded_hole(name, source_name, position, thread_spec, depth, insert, direction)
position is the centre of the hole's opening on the surface, e.g.
[10, 0, 20]. depth is measured from there along direction
(default "-Z", straight down; also "+Z", "±X", "±Y").insert=False drills the tap diameter: the screw cuts its own thread in the
plastic. Fine for a few assembly cycles.insert=True drills for a brass heat-set insert. Use this for anything opened
repeatedly. Make the hole 1–2 mm deeper than the insert and leave at least
1.6 mm of wall around it.Holes whose axis is horizontal when printed come out oval; orient the part so important holes are vertical, or add 0.1–0.2 mm.
create_hinge(name, "pin", params) creates <name>_leaf_a,
<name>_leaf_b and <name>_pin. Params (a dict): width, leaf_length,
leaf_thickness, pin_diameter, clearance, barrel_count. The leaves are
modelled assembled and flat, with clearance between every moving surface.
Print the leaves flat and separately; a length of 1.75 mm or 3 mm filament or a
nail can replace the printed pin (set pin_diameter to match).create_dovetail twice with the same dimensions, once
"male" and once "female". Clearance is applied to the female side only.
Union each onto its parent part with combine_models. Orient the joint so the
dovetail profile is in the XY plane when printed.create_snap_fit(name, "cantilever", params) with beam_length,
beam_width, beam_thickness, hook_depth, hook_length. Keep
beam_length at least 5–6 × beam_thickness or the beam will crack rather than
flex, and print it so the layers run along the beam, not across it.create_gear(name, module, teeth, pressure_angle, thickness, bore).
Two gears mesh only if they share module and pressure_angle. Centre distance
is module × (teeth_a + teeth_b) / 2; add 0.1–0.2 mm for backlash. The ratio is
driven teeth ÷ driver teeth (40 driven by 20 is 2:1). Use module
1.0 or larger for printed gears. The gear is centred on the origin with its axis
along Z, so it spans Z = ±thickness/2; use {"place_on_bed": true} before export.Position a generated joint with transform_model and attach it to the parent part
with combine_models(..., "union").
For real screw threads, nuts, bearings and other standard hardware models, see the mechanical-parts skill.
transform_model).combine_models("check", part_a, part_b, "intersect"). A volume of 0 means no
collision; any real volume is material that overlaps and will stop assembly.render_preview of the union to confirm the parts are actually adjacent and the
gap is visible.section_view through the joint if you need to see the clearance.For ABS, ASA and Nylon parts that must hit a dimension, apply
shrinkage_compensation(name, source_name, material) as the last step before
export. Do not apply it to PLA or PETG parts unless the user has measured a
problem; slicer and printer calibration usually matter more.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/design-enclosureDesign a 3D-printable enclosure, case, or project box with a lid for a circuit board or other hardware using the 3dp-mcp-server tools. Use when the user asks for a case, box, housing, or enclosure for electronics such as a Raspberry Pi, Arduino, ESP32, sensor, or PCB./design-modelDesign a new 3D-printable part from a description using the 3dp-mcp-server tools — write build123d code, look at the result, check printability, and iterate before exporting. Use when the user asks to model, design, or CAD a part, bracket, mount, holder, adapter, or any custom object for FDM printing./mechanical-partsCreate standard mechanical hardware with the 3dp-mcp-server tools — real screw threads, screws, nuts, washers, heat-set inserts, bearings, chain sprockets, pipe flanges, pipes, and OpenBuilds rails and lead screws. Use when the user needs a threaded part, a printable nut or bolt, a model of a fastener or bearing to design around, or a sprocket, flange or extrusion.npx claudepluginhub brs077/3dp-mcp-server --plugin 3dp-mcp-serverOther plugins' skills for the same job