Model Context Protocol (MCP) server wrapping the OpenSCAD CLI.
Export a 3D model from OpenSCAD source code in STL, 3MF, or OFF format. Args: scad_source: The OpenSCAD source code as a string. format: Output format ('stl', '3mf', or 'off'). params: Optional parameter map (becomes -D defines passed to OpenSCAD). options: Optional options object with settings like 'hardwarnings', 'check_parameters'. Returns model artifact (path, sha256, mime type) and metadata including OpenSCAD command line.
List export formats supported by this server.
List available OpenSCAD modules from the module registry.
List available OpenSCAD template modules.
Load and return the source of a specific OpenSCAD module.
Load and return the source of a specific OpenSCAD template.
Health check tool. Returns server version and OpenSCAD discovery info.
Render a PNG preview image from OpenSCAD source code. Args: scad_source: The OpenSCAD source code as a string. params: Optional parameter map (becomes -D defines). options: Optional object with 'imgsize' (WxH), 'projection' (o/p), 'mode' (preview/render), 'camera', 'viewall', 'autocenter'. Returns PNG artifact and render metadata.
Render both a 3D model and PNG preview from OpenSCAD source in a single call. Args: scad_source: The OpenSCAD source code as a string. params: Optional parameter map (becomes -D defines). options: Optional object with 'format' (stl/3mf/off), 'imgsize', 'projection', 'mode', 'camera', 'viewall', 'autocenter'. Returns both model and preview artifacts.
Validate OpenSCAD source by attempting to compile it. Args: scad_source: The OpenSCAD source code as a string. params: Optional parameter map (will become -D defines). options: Optional options object (reserved for future). Returns a structured validation result.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 11 | 2025-06-18+ | v2 |