MCP CAD Studio
io.github.mario-andreschakPublished by GitHub account mario-andreschakv0.2.2Updated Oct 25, 2026
A self-contained parametric CAD studio MCP server with an interactive MCP App.
Overview
A local parametric CAD server that lets an assistant create, edit, validate and export 3D models, with an optional interactive 3D studio inside compatible hosts
- What you can do
- Create and edit parametric models from shape trees, including primitives, transforms and nested boolean trees, plus templates such as brackets, gears and enclosures. Manage saved models: list, load, duplicate, delete, and patch or regenerate in place with revision checks. Validate drafts and imported meshes with topology diagnostics before saving. Import STL/OBJ data and export ASCII STL/OBJ. Open an interactive 3D studio in hosts that support MCP Apps; data tools work without it.
- When to use it
- Useful when you want an assistant to build or tweak parametric 3D parts and export them as STL/OBJ, or when a person and an agent should work on the same models in a live editor. It suits design and prototyping work that does not need a native CAD installation.
- Requirements
- Node.js 20 or later; the CAD engine and dependencies ship with the npm package, so no OpenSCAD, Python, compiler, Docker or native CAD is needed. Runs over stdio by default, or Streamable HTTP/HTTPS. Models persist to a local JSON file by default, configurable with a data-file option or disabled for in-memory sessions. No authentication or environment variables are declared.
Installation
In SourceWeft
- Open MCP CAD Studio in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
MCP CAD Studio
A self-contained parametric CAD workspace delivered as an MCP server and an interactive MCP App. Agents can create and edit models through tools; people can work on the same models in a live 3D studio rendered inside any compatible host.
What it does
- Renders a full 3D editor through the
studio_uitool. - Creates boxes, spheres, cylinders, cones, polygon extrusions, imported meshes, transforms, and nested union/difference/intersection trees.
- Generates editable brackets, pipes, gears, enclosures, and bolts.
- Loads, patches, regenerates, and deletes persistent model documents with optimistic revision checks.
- Preflights extrusion outlines and raw meshes with actionable topology diagnostics before they reach the CAD kernel.
- Imports ASCII/binary STL and OBJ; exports ASCII STL and OBJ.
- Keeps an open app synchronized with model-initiated MCP tool calls.
- Runs over stdio or Streamable HTTP, with direct HTTPS support.
- Uses a bundled WebAssembly CAD kernel—no OpenSCAD, Python, compiler, Docker, or native CAD installation is needed.
The server's data tools are UI-independent. A client that cannot render MCP Apps can still perform every CAD operation and receive structured model/mesh data.
Install
Node.js 20 or later is the only runtime requirement. The CAD engine and all JavaScript dependencies install with the package.
Run the published npm package:
Or clone and build:
MCP client configuration (stdio)
Models persist by default to ~/.mcp-cad-studio/models.json. Use
--data-file <path> to choose another file or --no-persist for an in-memory
session.
HTTPS / Streamable HTTP
Run a local HTTPS endpoint with a generated self-signed certificate:
For a remotely reachable production server, use a trusted certificate:
The MCP endpoint is /mcp; a read-only health endpoint is available at
/health. TLS termination at a reverse proxy is also supported—run with
--transport http behind the proxy.
MCP tools
All mutating results include models, activeModel, and mesh in
structuredContent, so the UI and model see the same canonical state. Model
creation is reserved for genuinely separate models. For revisions, first call
load_model, then pass its modelId and revision back as
expectedRevision to update_model, generate_model, or delete_model.
Updating without creating copies
update_model preserves the model ID and supports either a complete replacement
shape or small RFC 6901 JSON-Pointer-style patches. This changes the X size of
a saved box without resending its whole definition:
Patches can target /shape, /name, or /color and are applied in order.
add, replace, and remove are supported. The completed definition is
schema-checked and geometry-checked before the saved model is changed.
For template-level edits, such as changing a gear's tooth count, call
generate_model with the existing modelId and expectedRevision. The
template is regenerated into the same document instead of creating another
model.
Parametric model format
create_model and update_model accept a recursive shape tree. For example, a
plate with a cylindrical hole:
Every node can include a transform:
Rotations use degrees. Dimensions are unit-agnostic in the kernel; the studio labels them as millimeters.
Shape objects are strict: misspelled or unsupported fields produce an error
instead of being silently ignored. validate_shape checks a draft without
saving and reports JSON paths, error codes, and suggested repairs. Checks
include:
- repeated, zero-length, zero-area, and self-intersecting extrusion outlines;
- incomplete or out-of-range mesh arrays and degenerate triangles;
- open boundaries, edges shared by too many faces, inconsistent winding, and disconnected surface fans at a vertex;
- shape-tree and twisted-extrusion complexity limits;
- final verification by the Manifold CAD kernel.
If the kernel still rejects a shape, its status is translated into guidance for non-finite vertices, non-manifold geometry, invalid construction, oversized results, and the other kernel status classes.
Architecture
The studio_ui tool links to ui://cad-studio/studio.html with
_meta.ui.resourceUri. The component uses the stable MCP Apps bridge
(ui/initialize, ui/notifications/*, and tools/call) rather than requiring
host-specific globals. Model polling is revision-aware, making external tool
edits visible in an already-open editor.
Development
npm run check performs strict TypeScript checking, 16 kernel/store/protocol/
transport tests, and a production build. The test suite uses the real
WebAssembly geometry engine and both in-memory and Streamable HTTP MCP clients.
Useful commands:
To publish the current version to npm:
The release command signs in through npm when necessary, runs the complete check suite, publishes the package publicly, and confirms that npm serves the version. It is safe to rerun: if that exact version is already published, it verifies the project and skips the duplicate publish.
Run npm run release:check to validate the release helper without publishing.
Security notes
- Tool schemas cap shape depth, node count, mesh size, and imported file size.
- Mutation tools accurately declare read-only/destructive/open-world hints.
expectedRevisionprevents accidental overwrites and stale deletion during concurrent editing.- Patch paths are restricted to editable model fields and reject prototype traversal.
- The app resource declares an empty external-resource/connect CSP.
- A generated self-signed certificate is intended for local development only.
- Authentication is deployment-specific. Put remote multi-user instances behind an authenticated gateway and enforce per-user authorization there.
License
MIT
Source: README.md at commit a99589d
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts