OpenSCAD MCP V2

v1.3.0
io.github.JohnnyTheTank/openscad-mcp-v2 Checked 2 days ago Published 15 hours ago

Write, validate, render, version and export parametric OpenSCAD designs for 3D printing.

Values you need

VariableWhat it is
OPENSCAD_PATHoptional OpenSCAD executable, a command name, or the .app bundle on macOS (default: auto-detect)
OPENSCAD_MCP_WORKSPACEoptional Folder with one sub-folder per design (default ~/openscad-designs)
OPENSCAD_MCP_PRINTERSoptional Comma-separated printer profiles for the fit check, e.g. a1,a1mini or voron:350x350x340; the first is the default
OPENSCAD_MCP_PREVIEWoptional auto (default): create_design and update_design attach an image; never: only render_views renders
OPENSCAD_MCP_IMAGE_SIZEoptional Size of rendered images in pixels (default 800x600)
OPENSCAD_MCP_COLORSCHEMEoptional OpenSCAD colour scheme for images (default Tomorrow)
OPENSCAD_MCP_PREVIEW_TIMEOUT_MSoptional Limit for validation and the automatic image in ms (default 60000)
OPENSCAD_MCP_RENDER_TIMEOUT_MSoptional Limit for render_views, analyze_design and export_design in ms (default 300000)
OPENSCAD_MCP_MANAGE_GUI_PREFSoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: check_setup, get_guidelines, list_designs, create_design, update_design, get_design, validate_design, render_views, ….
  4. 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