SolidWorks
Model, measure and verify parametric parts and assemblies in a running SolidWorks (Windows).
What can you do with SolidWorks?
- Parts: sketches, extrudes, revolves, sweeps and lofts; holes, threads,
- Checking: each step reports volume, mass and size; dimensions and mates
- Assemblies: insert and place components, mate them, swap parts, check
- Drawings: ISO sheets with a title block, views, sections and details,
- Your own parts: open existing parts and STEP files, change dimensions
- 3D printing and export: STEP, STL and 3MF export, screenshots,
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
sw-mcpclaude mcp add solidworks -- uvx sw-mcp==0.1.0
{
"mcpServers": {
"solidworks": {
"command": "uvx",
"args": [
"sw-mcp==0.1.0"
]
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
Contents
sw-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.
All built by an agent through sw-mcp: a mounting bracket, an M10 bolt with a real thread, a vase, a swept pipe and a lofted horn.
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.
- 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.
- 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-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.
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.
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 off by default:
run_scriptruns any Python it's given, so it only works when you start the server with--allow-scripts. - Multibody parts: face and edge tools only see the first body.
All tools, the architecture and how to run the tests are in Docs/DEVELOPMENT.md.
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.
Frequently asked questions
What is SolidWorks?
Model, measure and verify parametric parts and assemblies in a running SolidWorks (Windows).
How do I install SolidWorks?
It runs on your machine. In Claude Code: claude mcp add solidworks -- uvx sw-mcp==0.1.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does SolidWorks need an API key?
Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.
Is SolidWorks open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains SolidWorks?
It is published by NejcDvorsek. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.