SW_MCP
MCP server that drives a running SOLIDWORKS session over its COM API, with sketch tooling and build-pipeline fixes.
What it does and how it connects
SW_MCP is an MCP server that drives a running SOLIDWORKS session over its COM API. It continues solidworks-mcp by JIALE LIU (Apache License 2.0), forked at commit 6019ce0 of 2026-08-16 after upstream went quiet. On top of it: fallbacks to earlier COM method variants for older SOLIDWORKS releases (verified on 2016 SP3), sketch tooling (fully_define_sketch, entities without inferencing, origin selections, diameter dimensions, rectangles and slots from lines and arcs), list_open_documents, close_document, silent save and export, and fixes found while driving the server from an automated build pipeline. The Python package and the console script keep the names solidworks_mcp and solidworks-mcp, so existing configurations keep working.
It does not launch SOLIDWORKS, register an add-in, execute arbitrary code, or touch the network. It attaches to a session already open and calls the documented API, so if a tool cannot do something, neither could a macro. It ships 122 tools: sketching with real relations and driving dimensions, the solid features most often reached for, sheet metal with its flat pattern and DXF export, weldments from 3D sketches, reference geometry, assemblies and mates, and a feedback channel including screenshots returned as images so the model can see what it just built.
Requirements are Windows with SOLIDWORKS installed and already running, and Python 3.12. Units are explicit always: every length parameter ends in _mm and every angle in _deg, with conversion once at the boundary. A sibling server, autocad-mcp, does the same for AutoCAD.
What engineers report
create_new_document without a template never uses the default template set in SOLIDWORKS.
2026-11-05Read the original
Alternatives
Compare side by side- solidworks-mcp (alisamsam)
An MCP server to automate SolidWorks with Claude AI, with 22 tools for parts, sketches and features, rather than a 122-tool fork with older-release fallbacks and sketch tooling.
- solidworks-mcp (hjbaard)
Lets AI agents build, measure and verify parametric parts and assemblies in a running SolidWorks over COM, rather than continuing the Slacker-LLC server with build-pipeline fixes.
- solidworks-mcp (just1step)
A general MCP adapter that lets AI assistants operate, analyse and automate SolidWorks modeling, rather than the d-veloping fork's sketch tooling and older-release COM fallbacks.
Recurring errors it addresses
Error Index entries this tool is built to reduce or work around.
- Saving an assembly can trigger rebuilds that break mates and randomly alter mate dimensions.Error Index
- Large assemblies can lock up on open with the feature tree failing to populate.Error Index
- On SolidWorks 2016, the set_dimension tool reports success for a sketch dimension change the sketch cannot solve. The dimension stores the new value while the solver rejects it, the geometry does not move, the sketch is left no_solution, and check_errors reports nothing. Measured probes showed the mass and every segment unchanged against the ok:true answer.Error Index
- A SolidWorks MCP server's docs tool silently starts a hidden SolidWorks instance that holds a licence seat, and its error hint gives agents a confident wrong diagnosis for member-not-found errors.Error Index
- A merged drawing-package tool made every SolidWorks drawing call in one COM burst, crashing SolidWorks 2026 during its idle refresh; a live sign-off also found the DWG NO. field running across the A3 title block.Error Index
Sources
Not verified
- Pricing (none stated on the repo)
- Latest release (no GitHub release exists)
- Standalone website (repo only)
Last verified November 6, 2026. Listings are informational. The evidence score measures public, verifiable evidence and is not an endorsement or a compatibility claim.