solidworks-mcp
MCP server that lets AI agents drive SOLIDWORKS: parts, sketches, features, assemblies, drawings, export and simulation, with every change verified (C#, .NET 10, official COM API)
Install / Use
claude mcp add soheil-mp -- npx -y github:soheil-mp/solidworks-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of solidworks-mcp
solidworks-mcp scores 84/100 on our quality scale, 2811th of 4,659 Development & Engineering skills we index.
Its MCP Server is 15 KB long, well organised into 12 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 2 days ago, so solidworks-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
solidworks-mcp compared with similar skills
All 4 of these similar skills score higher than solidworks-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| solidworks-mcp (this skill)by soheil-mp | 84 | 10 | 2d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.4k | 5d ago | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 105.7k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 67.6k | 2d ago | CLAUDE.md |
Frequently asked questions
- How do I install solidworks-mcp?
- Run
claude mcp add soheil-mp -- npx -y github:soheil-mp/solidworks-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does solidworks-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is solidworks-mcp safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is solidworks-mcp still maintained?
- The repository was last updated 2 days ago, so solidworks-mcp is actively maintained.
Skill content
View source on GitHubsolidworks-mcp
An MCP server that lets AI agents (Claude Code, Claude Desktop and other MCP clients) drive a running SOLIDWORKS. With its 127 tools, agents can sketch and model parts (extrudes, revolves, sweeps, lofts, holes, patterns, shells, surfaces, sheet metal, weldment frames), edit imported bodies directly (delete, offset and move faces), build assemblies with mates (also limit, symmetric, width, hinge, gear and rack mates) and component patterns, make drawings with views, dimensions, GD&T, balloons and tables, import and export (STEP, IGES, STL, Parasolid, PDF, DXF …), run static stress studies, and inspect, measure and screenshot the result. It is written in C# against SolidWorks' official COM API.
Unofficial. This project is not affiliated with, endorsed by or supported by Dassault Systèmes. SOLIDWORKS is a trademark of Dassault Systèmes SolidWorks Corporation.
Status: 0.1.0 pre-release. Every tool passes the offline contract tests and the live tests against a real SOLIDWORKS 2025 (live status, known issues). Other SOLIDWORKS versions are untested; please report what you find.
Why another SolidWorks MCP server? It was built from the lessons of testing every tool of an earlier server, where about 115 of 187 tools were broken or silently wrong.
| Area | What this server does |
|---|---|
| Typed calls | Calls are typed against the SolidWorks interop. Late binding is forbidden at build time, so a wrong member or argument count is a compile error. |
| No fake success | Every change is verified: feature identity, rebuild errors, volume and geometry changes, and file headers. A failed feature is rolled back and the error says so. |
| Selection that works | Faces, edges and vertices are found by id, by point (a geometric search, not a screen pick) or by query ({"where":{"curve":"line","parallelTo":"y"},"expect":4}). |
| No hangs | All COM calls go through one STA thread with time limits. A modal dialog makes the call return DIALOG_BLOCKING within seconds, and dialog_list / dialog_respond work while SOLIDWORKS is blocked. |
| Safe by default | It never modifies or closes your documents unless you allow it, never overwrites files without consent (it backs them up first), and puts back any system option it changes, even after a crash. |
| Built for agents | mm and degrees everywhere, and results that carry the ids and names needed for the next step. Errors look like CODE: message Hint: what to do. |
Safety and data — read this first
- It drives your live SOLIDWORKS. Save your work before letting an agent use it, and don't work in SOLIDWORKS at the same time. If SOLIDWORKS crashes, unsaved work in every open document is lost.
- Your documents are read-only for the server unless you allow edits. Documents it creates are "owned". The agent
can edit a document you opened only after
doc_activate {doc, allowEdit:true}, which saves a backup copy first, and it never discards or closes your documents. - Data leaves your machine. Screenshots, geometry, names, properties and file paths go to the model provider, which matters for NDAs and export control (ITAR/EAR). The server itself makes no network calls and collects no telemetry.
- VBA is off by default.
vba_runexecutes arbitrary code with your rights. Enable it only if you need it (SWMCP_VBA=on), and never wildcard-allow it in your client. - Files:
- Relative paths go under
Documents\solidworks-mcp. - Overwriting needs
overwrite:true, and files the server didn't write are backed up to%LOCALAPPDATA%\solidworks-mcp\backups. - Writes outside your profile and
%TEMP%are refused (SWMCP_WRITE_ROOTSadds folders), and so are network paths.
- Relative paths go under
- System options are only changed temporarily, such as the STEP application protocol during an export. They are
journaled under
%LOCALAPPDATA%\solidworks-mcpand restored, even after a crash. - Run one agent at a time per SOLIDWORKS. Several server processes are serialized by a lock, but they still share one SOLIDWORKS.
Quickstart (build from source)
Requirements:
- Windows 10/11 x64;
- SOLIDWORKS (tested: 2025 SP1.2; other versions are untested, so please report results);
- the .NET 10 SDK;
- git.
git clone https://github.com/soheil-mp/solidworks-mcp.git
cd solidworks-mcp
powershell -ExecutionPolicy Bypass -File tools\install.ps1
install.ps1 builds the server, publishes it to %LOCALAPPDATA%\solidworks-mcp\bin\<version>, so a running copy
never blocks an update, and registers it with Claude Code at user scope.
To register it yourself instead:
dotnet publish src\SolidWorksMcp.Server -c Release -o "$env:LOCALAPPDATA\solidworks-mcp\bin\dev"
claude mcp add --scope user solidworks -- "$env:LOCALAPPDATA\solidworks-mcp\bin\dev\solidworks-mcp.exe"
Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"solidworks": {
"command": "C:\\Users\\<you>\\AppData\\Local\\solidworks-mcp\\bin\\dev\\solidworks-mcp.exe",
"env": { "SWMCP_VBA": "off" }
}
}
}
Start SOLIDWORKS, then ask the agent something like "Check the SOLIDWORKS status" or "Make a 100 × 60 × 6 mm plate with rounded corners and two 6 mm holes, then show me a screenshot."
Smart App Control / Application Control
Windows Smart App Control judges each unsigned binary by its hash, and it can block a freshly built
solidworks-mcp.exe or SolidWorksMcp.Core.dll with "An Application Control policy has blocked this file" (Code
Integrity event 3077). When the exe is blocked, tools\install.ps1 registers the DLL through the Microsoft-signed
dotnet host instead (-Dotnet goes that way from the start); by hand that is
claude mcp add --scope user solidworks -- dotnet "<folder>\solidworks-mcp.dll". When a DLL is blocked, run the script
again: it publishes a new binary, which gets a new verdict. Signed releases will avoid this.
Tools
127 tools in 15 toolsets. The full, current list with parameters is in docs/tools.md, generated from
the server.
| Toolset | Tools |
|---|---|
| session (5) | sw_status, sw_connect, sw_help, dialog_list, dialog_respond |
| documents (9) | doc_new (part, assembly, drawing), doc_open (also imports STEP/IGES/Parasolid/STL), doc_save, doc_close, doc_activate, doc_list, doc_rebuild, doc_undo, doc_units_set |
| inspect (10) | model_info, feature_list, face_list, edge_list, vertex_list, body_list, model_measure, model_mass, model_check, view_screenshot |
| sketch (17) | sketch_start, sketch_add (lines, arcs, circles, rectangles, slots, polygons, ellipses, splines, points), sketch_finish, sketch_edit, sketch_info, dimensions, relations, trim, extend, offset, fillet, chamfer, pattern, mirror, convert, construction, delete |
| features (22) | extrude, revolve, sweep, loft, fillet, chamfer, shell, Hole Wizard holes, draft, rib, helix, cosmetic thread, linear/circular patterns, mirror; feature info, delete, suppress, rename, rollback; dimension list/set |
| reference (4) | ref_plane, ref_axis, ref_point, ref_coordsys |
| bodies (11) | move/copy, delete, combine, split; direct face edits (face_edit: delete and heal, offset, move); surfaces: extrude, revolve, planar, offset, knit, thicken |
| sheetmetal (7) | base flange, edge flange, miter flange (around corners, closed trays), hem (closed, open, teardrop, rolled), sketched bend, flatten, flat-pattern DXF/DWG |
| weldments (1) | weldment_member: structural members (tube, pipe, channel, angle, beam profiles) along 2D or 3D sketch lines, mitered or butt corners |
| assembly (10) | insert, mates (standard, limit, symmetric, width, hinge, gear, rack and pinion), mate list, component list/set/move, interference, replace, linear/circular patterns and mirror of components (also as new opposite-hand parts), exploded views |
| drawing (13) | sheet setup, standard/projected/section/detail views, model dimensions, dimensions, notes, BOM, center marks, datums, surface finish, tolerance frames, balloons, hole and revision tables, info |
| export (1) | model_export: STEP (AP203/214/242), IGES, Parasolid, STL, 3MF, images, eDrawings; PDF/DWG/DXF from drawings |
| properties (13) | materials, custom properties, equations, configurations, appearance |
| simulation (3) | sim_static (fixtures, pressure/force, mesh, von Mises, displacement, safety factor), sim_list, sim_delete |
| automation (1) | vba_run (off by default) |
Live test status
Every area has live tests that drive a real SOLIDWORKS (2025 SP1.2) and check the result against an exact answer (volumes, positions, angles, file headers, restored system options). All 352 pass:
| Area | Live tests | |---|---| | Core: session, documents, inspection, sketch, extrude, fillet, screenshots, dialogs | 17 | | Sketch editing | 57 | | Part features (revolve, chamfer, shell, Hole Wizard, patterns, mirror) | 33 | | Feature management, dimensions, rebuild, undo | 23 | | Reference geometry and measurement | 39 | | Materials, properties, equations, configurations, appearance | 14 | | Export and import | 20 | | Sweep, loft, helix, draft, rib, cosmetic thread | 25 | | Bodies, surfaces, sheet metal (including hems, sketched bends and miter flanges) | 51 | | Direct face editing (also on an imported STEP) | 6 | | Weldments | 4 | | Assembly (including component patterns, mirror, opposite hands, mechanical mates and exploded views) | 25 | | Drawing (including GD&T, balloons, hole and revision tables) | 29 | | Simulation (static) | 9 |
The golden scenarios in tools/mcp_smoke.py (drawing, plate, enclosure, edit, assembly, sheet metal) run through the
real MCP protocol within their call budgets, each with an exact oracle (volumes, interference, inserted dimensions, a
PDF, a flat blank and its DXF).
Known issues
- Long sessions slow SOLIDWORKS down. After a few hundred documents in one SOLIDWORKS session (heavy agent use or the test suite), creating and closing documents can take 20 s to minutes. Restart SOLIDWORKS.
- Drawing annotations in a long session.
drw_center_marksanddrw_dimensions_autosometimes stop adding anything after other modeling in the same session, until SOLIDWORKS is restarted (cause unknown; their hints say so). - A hung call, once. In the final test run, one drawing test never returned (SOLIDWORKS stayed responsive and showed
no dialog) until its process was stopped; it passed when run again. If a call seems stuck, check
sw_status, then restart the MCP server, and SOLIDWORKS if needed. - STEP AP242 may come out as AP203 depending on the installation's license; the export then refuses with
NOT_SUPPORTEDinstead of passing the file off as AP242. - Tapped holes are made as their tap-drill holes, without thread geometry, unless
SWMCP_EXPERIMENTAL=1. - Not available: screw mates (SOLIDWORKS 2025 ignores their pitch set through the API, so
asm_mate_addrefuses them) and sheet-metal jogs. Gear mates read their ratio back reversed; the tool accepts and reports that.
A typical modelling loop:
doc_new → sketch_start {on:{name:"top"}} → sketch_add {entities:[{kind:"rectangle",center:[0,0],widthMm:100,heightMm:60}]}
→ feature_extrude {depthMm:6} → feature_fillet {radiusMm:5, edges:[{where:{curve:"line",parallelTo:"y"},expect:4}]}
→ view_screenshot → doc_save {mode:"as", path:"plate.sldprt"}
Conventions:
- Units are mm, degrees and kg.
- SOLIDWORKS is Y-up: the top plane is XZ.
- Geometry is referenced as
{id},{at:[x,y,z]},{name}or{where, expect}.
The server sends these rules to the client as
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
106.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
105.7kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
67.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
