solidworks-mcp-server (aiforyouself)
Single-file MCP server that lets an AI model drive SolidWorks through its COM API with 27 tools for sketches, sheet-metal flanges, holes, flat-pattern DXF export, assemblies and mates, mass properties, plus a Python escape hatch.
What it does and how it connects
This single-file MCP server lets an AI model drive SolidWorks through its COM API: describe the part in chat and the model creates the sketch, the sheet-metal flange, the holes and the flat-pattern DXF, with no mouse clicks and no recorded macros. It exposes 27 tools, all lengths in millimetres and angles in degrees.
The tools cover connection and documents, reading the model through screenshots, feature tree, mass properties and sheet-metal info, editing dimensions and rebuilding, sketching, sheet-metal base flanges and cuts, assemblies and mates, and an execute_python escape hatch that runs Python with direct access to the SolidWorks COM API when no ready-made tool fits. save_document also exports STEP, DXF, PDF and STL by extension.
It was tested on SolidWorks 2024 SP5 with Python 3.14 and pywin32 312, and other versions are untested. The README is candid that execute_python runs arbitrary code with the user's rights, so it should only be used with a client and model the user trusts, and that API signatures differ between SolidWorks versions. The demo session built a sheet-metal bracket in 58 tool calls over about 9 minutes, with the model catching its own first-pass dimension error.
Alternatives
Compare side by side- dsh-solidworks
A DeepSeek Harness plugin with a 21-tool bridge verified on SOLIDWORKS 2016 and 2019, rather than a single-file MCP server tested on SolidWorks 2024 SP5.
- mcp-server-solidworks (eyfel)
An MCP server for SolidWorks, rather than a single-file server with a Python escape hatch.
- Solidworks-MCP (alisamsam)
An MCP server for SolidWorks, rather than a single-file server with sheet-metal and flat-pattern tools.
- solidworks-automation-skill (wzyn20051216)
A SolidWorks automation skill, rather than a single-file MCP server with 27 tools.
- solidworks-mcp (just1step)
An MCP server for SolidWorks, rather than a single-file server with a Python escape hatch.
Recurring errors it addresses
Error Index entries this tool is built to reduce or work around.
- A shipped SolidWorks agent skill called interference-check API methods that do not exist (InterferenceDetection, GetInterference(index), GetComponents) and called Done() before computing, so its core validation step could never complete on a real machine. The check silently never ran.Error Index
- A SolidWorks MCP bridge returned success JSON and even a normal-looking PDF export while the live document was wrong: a sketch asked for the Right plane silently landed on Front, and a macro call reported success=False with zero errors while never running. Only visual inspection inside SolidWorks itself revealed it.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.
- Real user voices: no real linked post read for this page; the repo has no public issues.
- No GitHub releases exist, so latest release fields are null.
Last verified November 6, 2026. Listings are informational. The evidence score measures public, verifiable evidence and is not an endorsement or a compatibility claim.