Skip to main content
Glama

OpenSCAD MCP Server

by quellant

render_single

Generate a single 3D model view from OpenSCAD code or files with customizable camera angles, image dimensions, and output formats.

Instructions

Render a single view from OpenSCAD code or file.

Args: scad_content: OpenSCAD code to render (mutually exclusive with scad_file) scad_file: Path to OpenSCAD file (mutually exclusive with scad_content)
view: Predefined view name ("front", "back", "left", "right", "top", "bottom", "isometric", "dimetric") camera_position: Camera position - accepts [x,y,z] list, JSON string "[x,y,z]", or dict {"x":x,"y":y,"z":z} (default: [70, 70, 70]) camera_target: Camera look-at point - accepts [x,y,z] list, JSON string, or dict (default: [0, 0, 0]) camera_up: Camera up vector - accepts [x,y,z] list, JSON string, or dict (default: [0, 0, 1]) image_size: Image dimensions - accepts [width, height] list, JSON string "[width, height]", "widthxheight", or tuple (default: [800, 600]) color_scheme: OpenSCAD color scheme (default: "Cornfield") variables: Variables to pass to OpenSCAD auto_center: Auto-center the model output_format: Output format - "auto", "base64", "file_path", or "compressed" (default: "auto") ctx: MCP context for logging

Returns: Dict with base64-encoded PNG image or file path

Input Schema

NameRequiredDescriptionDefault
auto_centerNo
camera_positionNo
camera_targetNo
camera_upNo
color_schemeNoCornfield
image_sizeNo
output_formatNoauto
scad_contentNo
scad_fileNo
variablesNo
viewNo

Input Schema (JSON Schema)

{ "properties": { "auto_center": { "default": false, "title": "Auto Center", "type": "boolean" }, "camera_position": { "anyOf": [ { "type": "string" }, { "items": { "type": "number" }, "type": "array" }, { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Camera Position" }, "camera_target": { "anyOf": [ { "type": "string" }, { "items": { "type": "number" }, "type": "array" }, { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Camera Target" }, "camera_up": { "anyOf": [ { "type": "string" }, { "items": { "type": "number" }, "type": "array" }, { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Camera Up" }, "color_scheme": { "default": "Cornfield", "title": "Color Scheme", "type": "string" }, "image_size": { "anyOf": [ { "type": "string" }, { "items": { "type": "integer" }, "type": "array" }, { "items": {}, "type": "array" }, { "type": "null" } ], "default": null, "title": "Image Size" }, "output_format": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "auto", "title": "Output Format" }, "scad_content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Scad Content" }, "scad_file": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Scad File" }, "variables": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Variables" }, "view": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "View" } }, "type": "object" }

Other Tools from OpenSCAD MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/quellant/openscad-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server