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.

MCP serverOpen sourceMaintainedMCADManufacturing

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.

Recurring errors it addresses

Error Index entries this tool is built to reduce or work around.

Sources

  1. 1READMEgithub.com
  2. 2GitHub repo statsapi.github.com

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.