SolidWorks-MCP is an MCP server whose goal is to let AI agents perform parametric modeling in a real SolidWorks environment and check their own work results. It does not generate standalone geometry files; instead, it attaches via Windows COM to the SolidWorks instance the user already has open, and the agent calls a set of fixed, typed tools to create and modify parts and assemblies.
Purpose and Positioning The server targets scenarios that require "verifiable CAD modeling": the agent not only generates features but also, after each modeling call, obtains the measured volume, mass, and bounding box to compare against hand calculations or specifications, and corrects deviations itself rather than judging by "looks about right." It emphasizes that failures must be reported explicitly: a call that cannot fulfill the request returns {ok: false, error} with the reason, and does not silently produce incorrect geometry. The tool surface is fixed, with no "execute arbitrary code" tool, so the agent can only perform operations the tools allow.
Main Capabilities Modeling supports extrude, revolve, sweep, loft, and splines; holes, counterbores, slots, and pockets on arbitrary faces; filleted polygon corners; ISO holes generated by Hole Wizard; real ISO metric threads; fillets, chamfers, shell, patterns, mirror, ribs, equations, and materials. Assemblies support mates and interference checks. It also supports STEP/STL/3MF export, screenshots, and engraved and embossed text. For existing parts, it can list, delete, suppress, and reorder features, read, extrude, and cut user sketches, and import STEP. It supports setting colors per part or component, concentric and angular mates with in-range checks, printability checks and dimensioned drawings, reference planes at arbitrary offsets or angles, multiple bodies in one part with merge/split, variable-radius fillets and full round fillets, and free sketches with tangent arcs and splines. The official count is 88 tools in total.
Sketches and Editability Every sketch is fully defined the way a designer would do it: dimensioned from the origin, with relations added only when the geometry is truly horizontal, vertical, or at the origin. Tools return dimensions by role (e.g., width@Sketch1), so parts remain editable in SolidWorks or through the agent.
Usage First start SolidWorks and keep it open; the server attaches to the running instance and does not start it itself. Then register the server with an MCP client. Claude Code can run: claude mcp add solidworks -- uvx solidworks-mcp. Claude Desktop(claude_desktop_config.json) or other clients can be configured with: {"mcpServers":{"solidworks":{"command":"uvx","args":["solidworks-mcp"]}}}. The project is also listed in the official MCP Registry under the identifier io.github.hjbaard/solidworks-mcp. Once registered, modeling requests can be made directly in natural language, for example designing a 100×80×8 mm mounting plate with a Ø16 mm center hole, four countersunk M5 holes 12 mm from the corners, and R5 fillets, with the requirement to check against a self-calculated volume and then export a fine STL. On connection, the server sends each MCP client a brief modeling guide (conventions, step-by-step verification, known pitfalls); the full guide is provided as the resource solidworks://guide, containing recipes for holes, ribs, threads, and assemblies, 3D printing recommendations, and instructions for reverse-engineering parts from meshes (STL/3MF).
Environment requirements and compatibility Requires Windows, an installed, licensed, and running SolidWorks; Python 3.11+ (uv can be obtained as needed). The part template must be Y-up (SolidWorks standard); starting with SOLIDWORKS 2025, new parts can also be Z-up, but the tools build in a Y-up frame and will explicitly refuse Z-up parts. Parts created via the API do not use the selection in the "New Document" dialog; you should create a Y-up part and save it as .prtdot, then set it as the part template under "Tools > Options > System Options > Default Templates". Requires SOLIDWORKS 2020 or newer; the user confirms that self-tests all pass on 2020 (SP5), 2025, and 2026, with languages including English, German, French, Italian, Russian, and Chinese; 2024 SP5 passes all except the material check (fixed). The full test suite runs on SOLIDWORKS 2026 (3DEXPERIENCE R2026x). You can run uvx solidworks-mcp --selftest while SolidWorks is open to check the installation; it builds a few small parts, compares them against hand calculations, and closes without saving.
Limitations and notes The project is in an early stage (0.x), and tool names and conventions may change. For assemblies, component patterns, in-context features, configurations, drawings, and Simulation (FEA) are out of scope. Known issues include: drawings becoming slow after multiple tool calls, missing dimensions, or SolidWorks freezing, in which case you can disable "Enhanced graphics performance" and restart; connection failures are usually because SolidWorks was not started first; slow first calls or EnsureModule errors are related to COM type library wrapper generation; if a corporate network's TLS inspection causes uvx download failures, you can use uvx --system-certs solidworks-mcp. The server uses MCP over stdio, all linear dimensions are in millimeters, and it converts to and from SolidWorks' internal meter/radian units at the boundaries.