Skip to content
Cursor

OpenSCAD MCP V2 for Cursor

io.github.johnnythetank/openscad-mcp-v2

Describe a part to your AI client, get checked parametric OpenSCAD code and a 3MF/STL to print.

client:Cursor transport:stdio runtime:npm

Install OpenSCAD MCP V2 in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "openscad-mcp-v2": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "openscad-mcp-v2"
      ],
      "env": {
        "OPENSCAD_PATH": "<OPENSCAD_PATH>",
        "OPENSCAD_MCP_WORKSPACE": "<OPENSCAD_MCP_WORKSPACE>",
        "OPENSCAD_MCP_PRINTERS": "<OPENSCAD_MCP_PRINTERS>",
        "OPENSCAD_MCP_PREVIEW": "<OPENSCAD_MCP_PREVIEW>",
        "OPENSCAD_MCP_IMAGE_SIZE": "<OPENSCAD_MCP_IMAGE_SIZE>",
        "OPENSCAD_MCP_COLORSCHEME": "<OPENSCAD_MCP_COLORSCHEME>",
        "OPENSCAD_MCP_PREVIEW_TIMEOUT_MS": "<OPENSCAD_MCP_PREVIEW_TIMEOUT_MS>",
        "OPENSCAD_MCP_RENDER_TIMEOUT_MS": "<OPENSCAD_MCP_RENDER_TIMEOUT_MS>",
        "OPENSCAD_MCP_MANAGE_GUI_PREFS": "<OPENSCAD_MCP_MANAGE_GUI_PREFS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

OpenSCAD MCP V2 in other clients