openscad-mcp
Allows AI assistants to design, preview, render, and export 3D models using OpenSCAD.
Click on "Install 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-mcpDesign a parametric box with width 30, height 20, depth 10."
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.
title: OpenSCAD MCP emoji: "\U0001F4D0" colorFrom: blue colorTo: green sdk: docker app_port: 7860 pinned: false
OpenSCAD MCP Server
An MCP (Model Context Protocol) server that lets AI assistants like Claude create, edit, render, and export 3D models using OpenSCAD.
Related MCP server: FreeCAD Robust MCP Server
What It Does
Connect this server to Claude Desktop and you can ask Claude to:
Design parametric 3D models in OpenSCAD
Preview renders as PNG images
Export to STL, 3MF, AMF, DXF, SVG, and more
Animate models using OpenSCAD's
$tvariableCheck syntax before rendering
Browse an OpenSCAD language cheatsheet
Available Tools
Tool | Description |
| Create a new |
| Read an existing |
| Update an existing |
| Export to STL, 3MF, OFF, AMF, DXF, SVG, PDF |
| Render a PNG preview with camera/color options |
| Render animation frames using |
| Get model render statistics |
| List |
| Dry-run syntax validation |
| OpenSCAD language quick reference |
| Get installed OpenSCAD version |
| List built-in example files |
Quick Start
Prerequisites
Install
git clone https://github.com/sergiudanstan/openscad-mcp.git
cd openscad-mcp
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .Configure Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"openscad": {
"command": "/full/path/to/openscad-mcp/.venv/bin/python",
"args": ["-m", "openscad_mcp"]
}
}
}On Windows, use
".venv\\Scripts\\python.exe"instead.
Restart Claude Desktop — the OpenSCAD tools will appear in the hammer icon.
Examples
The examples/ directory includes sample .scad files:
box.scad — Simple parametric box
gear.scad — Involute spur gear
vase.scad — Curved vase with twist
Project Structure
openscad-mcp/
├── src/openscad_mcp/
│ ├── server.py # FastMCP server setup
│ ├── client.py # OpenSCAD CLI wrapper
│ └── tools/
│ ├── design_tools.py # create / read / edit
│ ├── render_tools.py # preview / export / animate
│ └── library_tools.py # list files / cheatsheet / syntax check
├── examples/ # Sample .scad files
├── tests/ # Test suite
└── pyproject.tomlSecurity
No shell injection — uses
subprocess_exec(argument list, not shell string)Path traversal protection — all file operations are sandboxed to the workspace directory
No credentials or API keys — runs entirely locally
Workspace
All files are created in ~/openscad-mcp-workspace/ by default.
Running Tests
pip install -e ".[dev]"
pytest tests/Full Installation Guide
See openscad-mcp-install-guide.pdf for detailed step-by-step instructions for macOS and Windows.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sergiudanstan/openscad-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server