openscad-wasm-mcp
Allows validation, export, and preview of 3D models using OpenSCAD, including support for STL, 3MF, OFF, CSG, DXF, SVG formats, and model analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openscad-wasm-mcpexport model.scad to STL format"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openscad-wasm-mcp
An OpenSCAD Model Context Protocol (MCP) server that runs OpenSCAD in Node.js/TypeScript using WebAssembly (openscad-wasm). No native OpenSCAD installation on the host is required.
Quick Start
1. Run with Docker Compose
By default, the server runs in Docker with restricted privileges:
docker compose up --buildThe MCP server listens on http://127.0.0.1:3333/mcp.
2. Configure MCP Client
Add the server to your MCP client configuration (e.g., claude_desktop_config.json):
Using HTTP Transport (default):
{
"mcpServers": {
"openscad-wasm": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/client-cli", "http://127.0.0.1:3333/mcp"]
}
}
}Related MCP server: mcp-openscad-render-loop
Available Tools
OpenSCAD Tools
openscad_validate: Validates SCAD code and returns syntax/logical diagnostics.openscad_export_model: Exports model tostl,3mf,off,csg,dxf, orsvg.openscad_render_preview: Generates a server-side WebP render or an interactive 3D preview link.openscad_create_preview_link: Generates a URL to open a browser-based interactive 3D viewer.openscad_analyze_model: Computes the model's bounding box and triangle count.
Workspace Tools
workspace_list_files: Lists files in the container workspace.workspace_read_file: Reads a file from the workspace.workspace_write_file: Writes a file to the workspace.workspace_delete_file: Deletes a file from the workspace.
Artifacts
Renders and model exports are saved under ./workspace/artifacts on the host. The MCP tool responses return metadata: path, filename, format, mimeType, sizeBytes, and sha256.
Configuration
Customize runtime limits (memory, timeouts, directories) by copying .env.example to .env and editing the environment variables.
Known Limitations
Performance: Complex models can be slow or memory-intensive inside WebAssembly.
Visuals: WebP previews do not preserve OpenSCAD colors, GUI helpers, or 2D camera perspectives.
Assets & Libraries: Fonts and external libraries are not bundled; you must upload necessary files to the workspace first.
Format Support: Build-specific limits may affect exports (e.g.,
3mfis currently unsupported).
License
MIT License. See LICENSE for details. Dependencies (openscad-wasm, sharp) carry their own respective licenses.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, inspect, validate, and save editable 3D building scenes with Pascal's hosted MCP server.
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server for managing and publishing 3D files using S3-compatible storage providers like Cloudflare R2 and AWS S3. It enables users to upload models, generate interactive 3D viewers, and manage temporary access via presigned URLs.-
- AlicenseNot gradedqualityDmaintenanceOpenSCAD wrapped as an MCP server. Render .scad with parameter overrides, run parametric sweeps, validate syntax, compute STL metrics. Curated by Archimedes Market with a verified Trust Report.1MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that lets AI assistants create, edit, render, and export 3D models using OpenSCAD.4-
- AlicenseNot gradedqualityAmaintenanceEnables parametric CAD modeling using OpenSCAD via MCP, supporting syntax checking, rendering, measuring, and previewing within a sandboxed workspace.1MIT