shapecraft
Craft real CAD with Claude. Any shape. Any tool.
Status: v0.1.2-alpha — auth + reads working, writes under active repair. Live integration testing against Onshape revealed that the feature-write path silently produced solver errors in v0.1.0 / v0.1.1 (HTTP 200 but featureStatus=ERROR). v0.1.2a1 makes add_feature raise on solver rejection so failures surface immediately. Systematic feature-payload fixes land in v0.1.3. See CHANGELOG.md for the full list of known-broken tools.
shapecraft gives Claude first-class tools to drive professional parametric CAD. The MCP surface covers document/workspace management, sketch primitives + splines + constraints, every core feature (extrude/revolve/loft/fillet/chamfer/pattern/boolean/thicken), offset planes, variable tables, FeatureScript evaluation, exports to STL/STEP/GLTF, and assembly operations with 4 mate types — but most feature-write tools are currently producing solver-rejected payloads and will raise OnshapeError until v0.1.3 lands.
Install
uvx shapecraft # or: pip install shapecraft
Register with Claude Code
claude mcp add shapecraft \
-s user \
-e ONSHAPE_ACCESS_KEY=<your_key> \
-e ONSHAPE_SECRET_KEY=<your_secret> \
-- uvx shapecraft
Get your keys at dev-portal.onshape.com.
Tools (MCP surface covers ~48 operations, many currently failing at the solver — see CHANGELOG)
shapecraft_list_documentsshapecraft_create_documentshapecraft_create_part_studioshapecraft_sketch_rectangleshapecraft_sketch_spline(NEW vs hedless)shapecraft_offset_plane(NEW)shapecraft_extrudewith symmetric + reverse flags (upgraded)shapecraft_loft(NEW)
Plus build_coincident_constraint helper (sketch constraint builder — first of 7 coming in T1).
See the design spec for the full T1 → T3 roadmap.
Development
python3 -m venv venv
./venv/bin/pip install -e ".[dev]"
./venv/bin/pytest tests/unit -v
Integration tests (tests/integration/) hit live Onshape and require ONSHAPE_ACCESS_KEY/ONSHAPE_SECRET_KEY env vars.
Releasing
- Bump version in
pyproject.toml - Update
CHANGELOG.md git tag v0.1.0 && git push --tagsrelease.ymlpublishes to PyPI via trusted publishing (configure once at pypi.org)
License
MIT. See LICENSE.
Credits
Inspired by hedless/onshape-mcp (MIT per its README) — shapecraft is an independent reimplementation that covers a broader slice of the Onshape REST and FeatureScript API.
Metadata
Release files for shapecraft 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shapecraft-0.1.3.tar.gz | 103.0 kB | With provenance | Details for shapecraft-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shapecraft-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for shapecraft-0.1.3-py3-none-any.whl |
Total release size: 143.4 kB
Release files / shapecraft-0.1.3.tar.gz
| Download URL | shapecraft-0.1.3.tar.gz |
|---|---|
| Size | 103.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a167c2392ae4c9f926390eec265f8c25056913d0246a2d98fdba4f6a403f7d14
|
|
BLAKE2b-256 checksum How to use checksums |
a0bb0031b09e61b544d24c89a112a22fa04209960e70dab1427f61316957c83b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logRelease files / shapecraft-0.1.3-py3-none-any.whl
| Download URL | shapecraft-0.1.3-py3-none-any.whl |
|---|---|
| Size | 40.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58779a99bdd04f9b93fa862d5d141757c748a4e8681b6fbe2a41716bc4f2a4ef
|
|
BLAKE2b-256 checksum How to use checksums |
f79cb645e7343241207650f8053086f5dea5a823f52c8a045d47f3e12cfbfe7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logSecurity for shapecraft 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shapecraft-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.