Skip to main content
Glama

OpenSCAD MCP Server

by quellant

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENSCAD_PATHNoPath to OpenSCAD executable/usr/bin/openscad
MCP_SERVER_NAMENoMCP server nameopenscad-mcp
OPENSCAD_TIMEOUTNoTimeout for rendering operations (seconds)30
MCP_SERVER_VERSIONNoMCP server version1.0.0
MCP_SERVER_TRANSPORTNoTransport: stdio, sse, or httpstdio
MCP_RENDER_DEFAULT_WIDTHNoDefault image width800
MCP_RENDER_DEFAULT_HEIGHTNoDefault image height600
MCP_RENDER_MAX_CONCURRENTNoMax concurrent renders4

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_server_infoGet server configuration and capabilities.

Tools

Functions exposed to the LLM to take actions

NameDescription
render_single

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

check_openscad

Verify OpenSCAD installation and return version info.

Args: include_paths: Include searched paths in response ctx: MCP context for logging

Returns: Dict with OpenSCAD installation information

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