OpenSCADSAFE
A Model Context Protocol (MCP) server for OpenSCAD 3D modeling and rendering
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://pypi.org/project/openscad-mcp/) [](https://github.com/robertcoop/openscad-mcp/actions/workflows/ci.yml) [](https://pypi.org/project/openscad-mcp/) [](https://modelcontextprotocol.io) [](./LICENSE)
A Model Context Protocol (MCP) server that lets AI assistants design 3D-printable parts and assemblies in OpenSCAD: render with a stated scale, measure exact geometry, check assemblies for interference and clearance, extract holes and features, judge printability, and export. Built with FastMCP for Python; OpenSCAD 2021.01 is the supported floor and dev snapshots are used when present.
Prerequisites
- [OpenSCAD](https://openscad.org/downloads.html) installed on your system
- [uv](https://docs.astral.sh/uv/getting-started/installation/) (recommended) or Python 3.10+
Installation
The server is published on PyPI as openscad-mcp, so uv runs it with no clone and no virtualenv: uvx openscad-mcp. uv keeps a cached copy; uv tool upgrade openscad-mcp (or uvx openscad-mcp@latest) pulls a new release, and uvx [email protected] pins one.
Claude Code
Add the server with a single command:
claude mcp add openscad --transport stdio -- uvx openscad-mcp
Or, if OpenSCAD is not on your PATH:
claude mcp add openscad --transport stdio \ --env OPENSCAD_PATH=/path/to/openscad -- uvx openscad-mcp
Use the --scope flag to control where the configuration is saved:
440621bdd30aOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add openscad-mcp -- uvx openscad-mcp
{
"mcpServers": {
"openscad-mcp": {
"command": "uvx",
"args": [
"openscad-mcp"
]
}
}
}Exposed tools (11)
10 read · 0 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
check | read | |
clear_cache | destructive | |
export_model | read | |
get_libraries | read | |
get_project_files | read | |
measure | read | |
model | read | |
reference | read | |
render | read | |
scad_eval | read | |
validate | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (9 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (10)
clear_cache
.coveragerc
assert shadow.rewritten_refs # ../../config/... made absolute
render_scad_to_png(scad_file="/home/user/scad/../../etc/passwd")
image_data = base64.b64decode(base64_data)
image_data = base64.b64decode(base64_data)
png = base64.b64decode(result.image_b64)
png = base64.b64decode(result.image_b64)
assert base64.b64decode(cached_b64) == image_bytes
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
440621bdd30afull audit observations/trust-audit/mcp-server/quellant__openscad-2.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 440621bdd30a | SAFE | B | 89 | first audit |
Questions
What is the OpenSCAD MCP server?
A Model Context Protocol (MCP) server for OpenSCAD 3D modeling and rendering
What tools does OpenSCAD expose?
11 in total: 10 read-only, 0 that write, and 1 that can delete or overwrite (clear_cache). Every one is listed on this page with its risk.
Is OpenSCAD safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does OpenSCAD need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (440621bdd30a), read on 2026-10-07. The repository is watched and re-audited when it changes.