MCP directory
OM

OpenSCAD MCP V2

by github.com/JohnnyTheTank · v1.2.1 · updated Dec 1, 2026

Describe a part to your AI client, get checked parametric OpenSCAD code and a 3MF/STL to print.

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • OPENSCAD_PATH

    OpenSCAD executable, a command name, or the .app bundle on macOS (default: auto-detect)

  • OPENSCAD_MCP_WORKSPACE

    Folder with one sub-folder per design (default ~/openscad-designs)

  • OPENSCAD_MCP_PRINTERS

    Comma-separated printer profiles for the fit check, e.g. a1,a1mini or voron:350x350x340; the first is the default

  • OPENSCAD_MCP_PREVIEW

    auto (default): create_design and update_design attach an image; never: only render_views renders

  • OPENSCAD_MCP_IMAGE_SIZE

    Size of rendered images in pixels (default 800x600)

  • OPENSCAD_MCP_COLORSCHEME

    OpenSCAD colour scheme for images (default Tomorrow)

  • OPENSCAD_MCP_PREVIEW_TIMEOUT_MS

    Limit for validation and the automatic image in ms (default 60000)

  • OPENSCAD_MCP_RENDER_TIMEOUT_MS

    Limit for render_views, analyze_design, measure_design and export_design in ms (default 300000)

  • OPENSCAD_MCP_MANAGE_GUI_PREFS

    false: never change OpenSCAD's "Automatic Reload and Preview" setting (default true)

More from github.com/JohnnyTheTank

More MCP servers