Skip to main content Switch to mobile version openswx 0.4.0 Open-source parametric CAD with a familiar layout and a built-in MCP server for AI agents
pip install openswx==0.4.0 Copy PIP instructions
Open-source parametric CAD with a familiar layout, and a built-in MCP server so AI agents can design parts in it while you watch.
30 s (4K original). Recorded in openswx: every feature is built by a real MCP tool call, the same calls Claude makes through Claude Code or any other MCP client. The chat panel illustrates the conversation and is replayed by a script (tools/demo/). Claude is made by Anthropic.
openswx is an alternate CAD program for engineers. Its screen is laid out the way many mechanical engineers already know from SOLIDWORKS: a command bar across the top, a design tree on the left, a property panel for the active command, the same mouse navigation and shortcuts. If you can model a part there, you can model one here without retraining. Underneath, it is a different program, built on different foundations; the section How it differs from SOLIDWORKS lists what that means in practice.
Not affiliated with Dassault Systèmes. openswx is an independent open-source project. It is not affiliated with, endorsed by, sponsored by or connected to Dassault Systèmes or SOLIDWORKS Corporation. SOLIDWORKS is a registered trademark of Dassault Systèmes SolidWorks Corporation; Parasolid is a trademark of Siemens Industry Software; Claude is a trademark of Anthropic, which is not affiliated with openswx either. The names are used only to describe compatibility and the familiar layout. openswx is a clean-room implementation: it contains no SOLIDWORKS code, icons or artwork, and it does not need SOLIDWORKS installed to run or to open SOLIDWORKS files. See NOTICE.
Agents: how they get access
How it differs from SOLIDWORKS
Parts: constrained 2D and 3D sketches; extrude / revolve / sweep / loft (boss and cut, with the familiar end conditions), fillets and chamfers of every kind, shell, draft, rib, dome, wrap, Hole Wizard, threads, patterns (linear, circular, curve, sketch, table, fill), mirror, multibody tools, reference geometry. Full parametric rebuild, rollback bar, suppress, reorder, folders, undo / redo.
Design intent: equations and global variables ("D1@Sketch1" = "width"/2), configurations, design tables, materials, custom properties.
Sheet metal, surfaces, weldments, mold tools: flanges, hems, jogs, forming tools and flat patterns; the surface toolbox (extrude to boundary, knit, trim, thicken); structural members with cut lists; parting lines and tooling split.
Assemblies: linked parts, standard / advanced / mechanical mates with DOF status, patterns, exploded views, motion studies, interference and clearance checks, a fastener library, pipe and cable routing.
Drawings: sheets with model, projected, section, detail, auxiliary, broken and cropped views; smart dimensions, GD&T, hole tables, BOM and balloons; PDF / DXF / SVG export (DWG through the ODA converter).
Analysis: static (on curvature-based tetrahedra), frequency, buckling, thermal, nonlinear, fatigue and drop studies; lattice-Boltzmann flow; plastics fill; 3-axis CAM with G-code; costing; inspection reports. Long solves run as background jobs.
Rendering: real-time PBR, or path traced for soft shadows and reflections.
Review: design review, requirements checked like tests, tolerance stack-up, design studies, document compare.
Agents: 463 commands, 443 of them MCP tools (full list), over stdio or streamable HTTP, shown live in the UI's Agent activity pane.
Files: native .oswprt / .oswasm / .oswdrw (versioned JSON). Reads SOLIDWORKS .sldprt / .sldasm / .slddrw (2015 and later) natively; clean-room Parasolid reader (.x_t, .x_b) and writer (.x_t); STEP and IGES in and out; STL, 3MF, glTF, BREP out; DXF in and out.
Safety: autosave with crash recovery, an application log, a per-user token and origin checks on the local server, and an optional folder that agents are confined to.
Geometry kernel: OpenCASCADE through build123d and OCP.
Desktop app (Windows, macOS)
Installers are attached to each release:
The builds are not code-signed yet. Windows SmartScreen asks for confirmation on first launch (More info → Run anyway). On macOS, right-click openswx.app → Open, or run xattr -dr com.apple.quarantine /Applications/openswx.app.
From source (any platform, browser UI)
git clone https://github.com/DukeOfCheese/openswx.git cd openswx python -m venv .venv .venv/bin/pip install -e .[dev] # Windows: .venv\Scripts\pip install -e .[dev] .venv/bin/python -m openswx serve --open # prints the UI link and opens it; MCP is at /mcp The server answers only this computer and asks for your token, a per-user secret kept in ~/.openswx/token. Open the UI through the link serve prints, which stores the token as a cookie.
To build the desktop app yourself: pip install -e .[desktop], then python packaging/build.py --zip (builds for the platform it runs on, into dist/).
Extruded Boss/Base → pick Top Plane → draw a rectangle (R) → Exit Sketch (top-right corner) → set Depth → OK. Click a face → mini toolbar → Sketch to sketch on it. Double-click a dimension while editing a sketch to change it.
Claude Code (HTTP, while openswx runs; the token stays the same between runs, so this is done once):
claude mcp add --transport http openswx http://127.0.0.1:8765/mcp \ --header "Authorization: Bearer $(python -m openswx token)" With the desktop app, Help > Agent (MCP) Setup shows the token and copies this command with it filled in; the Windows installer can also add openswx to PATH, after which openswx-cli token works in place of python -m openswx token.
Claude Desktop (and other chat apps that start local MCP servers): add openswx to its config (Claude Desktop: Settings → Desktop App → Extensions → Manage → Edit Config) and restart it. While openswx is open, openswx mcp relays to the open window, so you watch the agent's edits live; without it, it starts its own copy and UI.
{ "mcpServers": { "openswx": { "command": "openswx-cli", "args": ["mcp"] } } } openswx-cli is the desktop app's command-line program (on Windows give its full path: Help → Agent (MCP) Setup shows the exact entry for your installation); from source use "command": "python", "args": ["-m", "openswx", "mcp"].
Claude on the web (claude.ai) cannot connect: its connectors call MCP servers from Anthropic's servers, which cannot reach an app running on your computer. Use Claude Desktop or Claude Code.
from openswx.api import Part part = Part("Bracket") part.sketch("Top").rectangle([0, 0], [80, 40]).circle([20, 20], 5).extrude(10) part.fillet(2, part.edges(type="circle")) print(part.volume, part.mass) part.save("bracket.oswprt"); part.export("bracket.step") What an agent sees and can do:
Toolsets. A connection starts with the core tools (under 50: part-modelling essentials) plus batch, list_toolsets and enable_toolset. enable_toolset("assembly") adds an area (sketch, features, surfaces, sheet_metal, weldments, document, assembly, drawing, simulation, manufacturing, ecosystem, collab, plugins); --toolsets core,drawing, --toolsets all or OPENSWX_TOOLSETS sets the starting list.
Atomic batches. batch runs several commands in one call: if one fails, every open document goes back to how it was; if all succeed, the batch is a single Undo step.
Stable references. get_topology gives every face and edge an id and a persistent name that survives later edits, so an agent can select geometry reliably.
Seeing the model. get_view_image returns a picture; get_mass_properties and the openswx://model and openswx://feature/{name} resources return numbers and the feature tree.
Tool hints. Each tool carries MCP annotations (read-only, destructive) so clients can ask before saving over or deleting something.
Limits you can set. --workspace DIR (or OPENSWX_WORKSPACE) confines agents' file reads and writes to one folder. --share prints a separate view-only link for people watching. The rules are in openswx/security.py.
Your own tools. A Python package can add commands through the openswx.plugins entry point; they become MCP tools in the plugins toolset (openswx/plugins.py).
Try: "Make a 120×60×10 mm mounting plate with four Ø8 holes 12 mm from the edges and a Ø36 boss with a counterbored hole, fillet the corners R6, material 6061." tools/agent_demo.py is a scripted agent that does exactly that. Every command and its arguments: docs/commands.md.
openswx is alternate CAD software, not a copy. It borrows the layout because engineers already know it; everything else is its own. If you are coming from SOLIDWORKS, these are the differences that matter.
Compatibility with SOLIDWORKS files
.sldprt, .sldasm and .slddrw (2015 and later) open without SOLIDWORKS installed. openswx reads the stored body and, where it can decode it, the feature history, and rebuilds that history to check it against the stored body. In the survey of 2026-11-23, 584 of the 841 sample parts that ship with SOLIDWORKS 2025 rebuilt exactly (352 fully parametric). Parts whose features are not decoded yet (many sweeps, lofts, sheet-metal and surface features) open as an imported solid that you can still measure, mate, draw and add features to.
SOLIDWORKS files are read-only. Save as openswx files, or exchange through STEP, Parasolid .x_t or IGES.
Equations, end conditions (by name or by swEndConditions_e number) and dimension names (D1@Sketch1) use the same syntax, so existing design intent carries over.
Not the same yet (see Status)
Simulation: every structural and thermal study (static, frequency, buckling, thermal, nonlinear, drop, harmonic and step response; bonded assemblies, contact, springs and bolts) meshes with curvature-based quadratic tetrahedra when the optional mesher is installed (pip install openswx[mesh]; included in the Windows and macOS installers): peak stresses at holes and fillets within a few percent of closed-form results. Without it the finite-cell voxel mesh is used, whose stresses at curved boundaries are approximate. Flow is lattice-Boltzmann with a large-eddy turbulence model, without wall functions.
CAM is 3-axis: roughing, flat floors and drilling, and 3D finishing with ball, bull-nose or flat mills; no 4- or 5-axis.
DWG needs the free ODA File Converter installed. Models are shared as a self-contained HTML viewer (eDrawings-style, opens in any browser) rather than in a separate viewer application.
Toolbox and the Design Library are openswx's own, smaller sets (ISO metric and ANSI inch fasteners, pins and washers). The material library has about 100 common grades with typical handbook values; add your own as custom materials.
Icons are original, and some commands sit in slightly different places.
Live collaboration is not in openswx yet: it is being built in a separate repository, openswx-collab (Apache-2.0, no release yet): several people editing the same part at once with live cursors and feature locks, full edit history with named versions and restore, assemblies that reference parts pinned to a version, and a server you can host yourself (SQLite or PostgreSQL). The server never runs a geometry kernel: each person's openswx applies the edits locally and sends the change. The server and its protocol are built and tested; the part inside openswx (sharing a file, the sync client, cursors) has not started, and will be an optional module that is off by default.
openswx is alpha: usable for real parts, with rough edges. Save often (autosave keeps a recovery copy; OPENSWX_AUTOSAVE sets the interval in seconds, or off).
SOLIDWORKS feature history: see the numbers above; .sldprt is read-only.
Simulation and CAM: see the list above.
Builds are not code-signed yet.
CI runs the test suite on Linux, Windows and macOS, and UI smoke tests in a headless browser.
Where things stand on one screen: docs/STATUS.md. What is missing, with a spec for each item: docs/GAPS.md. Release notes: CHANGELOG.md.
Apache License 2.0: see LICENSE. Third-party components and their licences: NOTICE.
Author: The openswx authors
Both files in this release have provenance metadata.
Apache-2.0 View SPDX License List
dev mesh desktop difftest collab
cad parametric solidworks mcp opencascade step parasolid
Development Status 3 - Alpha
Intended Audience Manufacturing
Programming Language Python :: 3 :: Only
Topic Multimedia :: Graphics :: 3D Modeling
Release files for openswx 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 2.2 MB
Release files / openswx-0.4.0.tar.gz
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Release files / openswx-0.4.0-py3-none-any.whl
Security for openswx 0.4.0
Both files in this release have been uploaded with provenance metadata.
With provenance openswx-0.4.0.tar.gz Nov 24, 2026
With provenance openswx-0.4.0-py3-none-any.whl Nov 24, 2026
Attestation for openswx-0.4.0.tar.gz
Attestation for openswx-0.4.0-py3-none-any.whl
A 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.
Release history Release notifications | RSS feed
Nov 24, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




