About SolidWorks
sw-mcp connects an AI agent to a running SolidWorks installation on Windows to create and inspect editable parts, assemblies, and drawings. It measures results after each step so designs can be checked and corrected against requested dimensions.
Key features
- 01Parametric part and sketch operations
- 02Sheet-metal and weldment modeling
- 03Assembly placement and interference checks
- 04Drawings with annotations and exports
- 05Model measurement and review
- 06STEP, STL, and 3MF export
Use cases
- 01Design and verify a dimensioned mechanical part
- 02Create a sheet-metal flat pattern for cutting
- 03Build a welded frame and generate its cut list
- 04Inspect or modify an existing part or STEP file
MCP support
Exposes SolidWorks modeling and inspection operations to MCP clients through a local server. It connects to SolidWorks that is already running on the Windows computer.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
101Saved tool list · updated 1w ago
This tool takes no parameters.
Details
From the project READMEsw-mcp
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.
What it can do
- Parts: sketches, extrudes, revolves, sweeps and lofts; holes, threads, slots and pockets on any face; fillets, chamfers, shells, ribs, patterns and mirrors. Every sketch is fully defined, so the part stays editable.
- Checking: each step reports volume, mass and size; dimensions and mates
are measured back. A step that can't be done fails with a clear reason
instead of producing wrong geometry.
read_modelreads a whole part for a review in one call: holes with their sizes, internal radii, sharp inside corners, setups, thin walls and draft. - Sheet metal: base flanges (flat tabs or bent L, U and Z sections) and edge flanges with your thickness, bend radius and K-factor; the flat blank's size, and the flat pattern with bend lines exported to DXF for laser cutting. Closed corners, ready to weld.
- Welds and weldments: weld beads between bodies, full or intermittent; frames of library tube, pipe, angle and channel profiles with mitred or butted corners, end caps and gussets; the cut list with each member's length and the total weld length.
- Assemblies: insert and place components, mate them, swap parts, check interference and step joints through their range of motion.
- Drawings: ISO sheets with a title block, views, sections and details, dimensions, hole callouts, surface finish and GD&T symbols, tables, and export to PDF, DXF or DWG. Sheet metal parts get their flat pattern with bend lines, bend notes and the blank's size; welded parts their weld symbols and cut list.
- Your own parts: open existing parts and STEP files, change dimensions and equations, set materials, and build on sketches you drew.
- 3D printing and export: STEP, STL and 3MF export, screenshots, printability checks, and comparing a part with a scanned mesh.
Get started
-
Install uv.
-
Start SolidWorks and leave it open.
-
Add the server to your MCP client. In Claude Code:
claude mcp add solidworks -- uvx sw-mcpClaude Desktop or another client
{ "mcpServers": { "solidworks": { "command": "uvx", "args": ["sw-mcp"] } } }With Jig there is nothing to add: the plugin starts sw-mcp itself.
-
Ask for a part:
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.
Or a sheet metal one:
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.
Or a welded frame:
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.
Requirements
-
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_scriptruns any Python it's given on your computer. Start the server with--no-scriptsto turn it off. - Multibody parts: face and edge tools only see the first body;
read_modelreads 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.
Credits and license
MIT, see LICENSE. The original server is by Henk Jan Baard (hjbaard/SolidWorks-MCP); this fork is maintained by Nejc Dvorsek.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.