OpenSCAD MCP V2
v1.3.0Write, validate, render, version and export parametric OpenSCAD designs for 3D printing.
Values you need
| Variable | What it is | |
|---|---|---|
OPENSCAD_PATH | optional | OpenSCAD executable, a command name, or the .app bundle on macOS (default: auto-detect) |
OPENSCAD_MCP_WORKSPACE | optional | Folder with one sub-folder per design (default ~/openscad-designs) |
OPENSCAD_MCP_PRINTERS | optional | Comma-separated printer profiles for the fit check, e.g. a1,a1mini or voron:350x350x340; the first is the default |
OPENSCAD_MCP_PREVIEW | optional | auto (default): create_design and update_design attach an image; never: only render_views renders |
OPENSCAD_MCP_IMAGE_SIZE | optional | Size of rendered images in pixels (default 800x600) |
OPENSCAD_MCP_COLORSCHEME | optional | OpenSCAD colour scheme for images (default Tomorrow) |
OPENSCAD_MCP_PREVIEW_TIMEOUT_MS | optional | Limit for validation and the automatic image in ms (default 60000) |
OPENSCAD_MCP_RENDER_TIMEOUT_MS | optional | Limit for render_views, analyze_design and export_design in ms (default 300000) |
OPENSCAD_MCP_MANAGE_GUI_PREFS | optional | false: never change OpenSCAD's "Automatic Reload and Preview" setting (default true) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add openscad-mcp-v2 -- npx -y openscad-mcp-v2@1.0.0Add to
claude_desktop_config.json{
"mcpServers": {
"openscad-mcp-v2": {
"args": [
"-y",
"openscad-mcp-v2@1.0.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"openscad-mcp-v2": {
"args": [
"-y",
"openscad-mcp-v2@1.0.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"openscad-mcp-v2": {
"args": [
"-y",
"openscad-mcp-v2@1.0.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.openscad-mcp-v2]
command = "npx"
args = ["-y", "openscad-mcp-v2@1.0.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: check_setup, get_guidelines, list_designs, create_design, update_design, get_design, validate_design, render_views, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json