MCP server that drives a local SolidWorks instance over COM for parametric part modelling.
Let an AI agent (Claude, or any other MCP client) design parts, assemblies and drawings in your own SolidWorks, and check its own work as it goes. After every step it measures the result, so it can compare it with what you asked for and fix mistakes instead of guessing.
sw-mcp is a fork of SolidWorks-MCP by Henk Jan Baard and the SolidWorks connector of Jig. It works with any MCP client.
Add the server to your MCP client. In Claude Code:
claude mcp add solidworks -- uvx sw-mcp Claude Desktop or another client { "mcpServers": { "solidworks": { "command": "uvx", "args": ["sw-mcp"] } } } With Jig there is nothing to add: the plugin starts sw-mcp itself.
Design a 100 × 80 × 8 mm mounting plate with a Ø16 mm centre bore, four counterbored M5 holes 12 mm from the corners and R5 corners. Then export an STL.
Make a 2 mm steel tray, 80 × 50 mm, with 20 mm flanges on the long sides and an inner bend radius of 3 mm. Give me the flat pattern as a DXF and a drawing as a PDF.
Weld a 600 × 400 mm frame of 30 × 30 × 2.6 square tube with mitred corners, cap the open ends, and give me the cut list and a drawing.
Windows with SolidWorks installed and running. The server connects to the open SolidWorks; it doesn't start it.
Tested on SOLIDWORKS 2026. 2020 and newer should work but are untested.
To check your setup, run this with SolidWorks open. It builds a few small test parts and closes them without saving:
uvx sw-mcp --selftest Good to know Early version (0.x): it works end to end, but tool names may still change. See the changelog. Local: it talks only to the SolidWorks on your computer and makes no network calls. Scripts are on by default: run_script runs any Python it's given on your computer. Start the server with --no-scripts to turn it off. Multibody parts: face and edge tools only see the first body; read_model reads them all. Help and feedback Something not working? Open a bug report with the output of uvx sw-mcp --selftest. Running a SolidWorks version other than 2026? A compatibility report helps, whether it worked or not.
MIT, see LICENSE. The original server is by Henk Jan Baard (hjbaard/SolidWorks-MCP); this fork is maintained by Nejc Dvorsek.
All 2 files in this release have provenance metadata.
solidworks mcp cad com parametric 3d-printing
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 Oct 30, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




