Skip to main content

Craft real CAD with Claude. MCP server for Onshape.

Project description

shapecraft

Craft real CAD with Claude. Any shape. Any tool.

shapecraft gives Claude (Claude Code, Claude Desktop, Anthropic API) a first-class set of tools to drive professional parametric CAD. v0.1.0-alpha targets Onshape and proves the full pipeline with 8 MCP tools — including the first killer upgrades over existing Onshape MCPs: offset planes, sketch splines, and loft — plus a coincident sketch-constraint builder helper (first of seven constraints landing in T1).

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.

v0.1.0-alpha tool list

  • shapecraft_list_documents
  • shapecraft_create_document
  • shapecraft_create_part_studio
  • shapecraft_sketch_rectangle
  • shapecraft_sketch_spline (NEW vs hedless)
  • shapecraft_offset_plane (NEW)
  • shapecraft_extrude with 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

  1. Bump version in pyproject.toml
  2. Update CHANGELOG.md
  3. git tag v0.1.0a1 && git push --tags
  4. release.yml publishes 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shapecraft-0.1.0a6.tar.gz (47.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shapecraft-0.1.0a6-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file shapecraft-0.1.0a6.tar.gz.

File metadata

  • Download URL: shapecraft-0.1.0a6.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shapecraft-0.1.0a6.tar.gz
Algorithm Hash digest
SHA256 82f6e9fb693c5054644e3a11143b03380b1ee0e23a14a734679f412f6748ab69
MD5 2962266c0e9fa664913ab776b19b547b
BLAKE2b-256 d59d5e1db9bbe60c8c1e5e48198ee719c7a7b652f2fbf3490217a2d9553ccc18

See more details on using hashes here.

Provenance

The following attestation bundles were made for shapecraft-0.1.0a6.tar.gz:

Publisher: release.yml on NewTurn2017/shapecraft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shapecraft-0.1.0a6-py3-none-any.whl.

File metadata

  • Download URL: shapecraft-0.1.0a6-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shapecraft-0.1.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 6e14cef9d8157353db1562f4056a628a580e3f2562831e3cf1fcd37274d38be8
MD5 72b7a8f62f0aaea3b7caab4463aa7066
BLAKE2b-256 0da3dac9ea5f0137caa6f4754c5679ffbedf9331d06d627aee61ff0c7899b5c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for shapecraft-0.1.0a6-py3-none-any.whl:

Publisher: release.yml on NewTurn2017/shapecraft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page