The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP CAD Studio listing page.
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.
studio_ui tool.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.
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:
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.
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.
| Tool | Purpose |
|---|---|
studio_ui | Open the interactive MCP App and optionally select a model |
list_models | List saved models and revisions |
load_model | Load the parametric document and its render mesh |
create_model | Create a model from a declarative shape tree |
generate_model | Create a template model, or regenerate one in place by modelId |
update_model | Patch or replace a model's definition, name, or color in place |
validate_shape | Preflight a shape without saving it |
transform_model | Apply an incremental translation, rotation, or scale |
boolean_models | Union, subtract, or intersect saved models into a new model |
duplicate_model | Make an editable copy |
delete_model | Permanently delete a model |
import_model | Import STL/OBJ text or base64 data |
export_model | Export ASCII STL/OBJ data |
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.
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.
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:
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.
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.
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.
expectedRevision prevents accidental overwrites and stale deletion during
concurrent editing.MIT