/3dp-mcp-server:design-modelfrom 3dp-mcp-server
Designs 3D-printable parts from descriptions using build123d code, previews, checks printability, and iterates before exporting. Use when a user asks to model a custom object for FDM printing.
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.
The loop is: model → look → check → fix → export. Do not report a part as done
until you have looked at a preview and analyze_printability returns PRINTABLE
(or you have told the user which issues remain and why).
Ask only for what you cannot reasonably assume: overall size, what it mates with (screw sizes, the object it holds, with measured dimensions), load direction, and material. Everything is in millimetres.
Call create_model(name, code). The code runs with from build123d import *
already applied and must assign the final shape to result. Helper functions and
loops are fine. Model names may contain letters, digits, _, - and . only.
def boss(x, y):
return Pos(x, y, 5) * Cylinder(4, 10)
base = Pos(0, 0, 2.5) * Box(60, 40, 5)
result = base + boss(20, 10) + boss(-20, 10)
result = result - Pos(20, 10, 5) * Cylinder(1.7, 10) # M3 clearance
build123d habits that avoid most failed attempts:
Box, Cylinder and Sphere are centred on the origin. Move a part with
Pos(x, y, z) * shape (and Rot(rx, ry, rz) * shape) before combining it.a + b (union), a - b (cut), a & b (intersect).BuildPart / BuildSketch / extrude, then result = part.part.fillet_model / chamfer_model over filleting inside the code: if a
fillet fails there, the base model still exists and you can retry with a smaller
radius or a narrower edge selection ("vertical", "top", "bottom").If create_model returns success: false, the response gives the error together
with the line and code_line of your code that raised it. Fix that line and call
it again with the same name; reusing a name replaces the model.
To revise a model later, get_model_code(name) returns the code it was built
from, and list_models() shows everything in the session. Models exist only while
the server is running, so keep the final code if the user may want changes later.
For a simple text tag or QR-code label, generate_label(name, text, size, font_size, qr_data)
builds the whole thing in one call; no modelling is needed.
Call render_preview(name, ["iso", "iso_back", "top"]) and inspect the image.
Check that features are where you intended, holes go all the way through, and
nothing is floating or missing. Use measure_model to confirm overall dimensions,
and section_view when the inside matters (pockets, wall thickness, hole depth).
analyze_printability(name) — geometry validity, fit in the build volume, and
measured minimum wall thickness. issues must be fixed; warnings need a look
(for example "2 separate solids" means a feature is floating and not attached).
If the user's printer is not a Bambu X1C, call set_printer first.analyze_overhangs(name) — angles are measured from vertical; 90° is a flat
ceiling. Anything reported needs supports, a redesign, or a different orientation.suggest_orientation(name) — if a better orientation exists, apply it with
transform_model(new_name, name, [{"rotate": [rx, ry, rz]}, {"place_on_bed": true}]).Design rules for FDM (0.4 mm nozzle):
| Feature | Guideline |
|---|---|
| Walls | 1.2 mm or more; 0.8 mm absolute minimum |
| Overhangs | 45° or less from vertical without supports; chamfer instead of fillet on downward edges |
| Bridges | Under about 20 mm unsupported |
| Holes | 2 mm minimum; printed holes come out about 0.2 mm undersize |
| Clearance between mating parts | 0.2 mm snug, 0.3–0.4 mm sliding |
| Bottom edges | A 0.4–0.6 mm chamfer (chamfer_model(..., edges="bottom")) hides elephant's foot |
| Vertical inside corners | Fillet 1–2 mm to reduce stress cracking |
create_model already wrote STL and STEP to outputs/<name>/. Use
export_model(name, "3mf") if the user wants 3MF. If the final model came from a
modification tool (fillet, transform, combine…), call export_model on that final
name — only create_model, generate_label and the mechanical-part tools export
automatically.
Side names are the same everywhere (text faces, open faces, preview and drawing views): top/bottom = +Z/−Z, front/back = −Y/+Y, right/left = +X/−X.
Finish with estimate_print(name, material=...) and tell the user the file paths,
overall dimensions, the recommended orientation, whether supports are needed, and
the rough filament and time estimate.
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-mating-partsDesign 3D-printed parts that fit together or move — snap-fits, hinges, dovetails, gears, threaded holes, heat-set inserts, and press or sliding fits — with the right clearances, using the 3dp-mcp-server tools. Use when the user asks for parts that join, clip, slide, rotate, screw together, or mesh./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