SolidWorks MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SolidWorks MCP ServerCreate a new part, draw a circle with radius 30mm, and extrude it 15mm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SolidWorks MCP Server
Control SolidWorks from Claude in plain language: parts, assemblies, drawings, exports. 132 tools — parts, surfaces, sheet metal, assemblies, drawings · v4.4.0 · tested live on SOLIDWORKS 2026 · Windows · Python 3.10+
|
|
|
Hole Wizard, fillet, draft | Surface extrude + thicken | Base + edge flange |
|
|
|
Sweep along line + arc | Component pattern, exploded view | Slot / hinge / width / gear mates |
📘 Full manual (Vietnamese, Word): docs/SolidWorks_MCP_Huong_dan.docx · 📝 CHANGELOG
Quick start
Requires Windows, SolidWorks, Python 3.10+ (64-bit) and Claude Desktop.
git clone https://github.com/TanPhan97/solidworks-mcp.git D:\Solidworks-mcp
cd D:\Solidworks-mcp
py -3 -m venv .venv
.venv\Scripts\python.exe -m pip install -r requirements.txt
.venv\Scripts\python.exe scripts\register_claude_desktop.pyThen Quit Claude Desktop from the system tray, reopen it, and check that Settings → Developer shows solidworks as running.
Try: "Connect to SolidWorks and tell me the version."
If the server does not show up, pass the file from Settings → Developer → Edit Config explicitly:
register_claude_desktop.py --config "C:\path\to\claude_desktop_config.json" (also: --list, --dry-run, --remove).
Related MCP server: solidworks-mcp
What you can ask
"New part: 60×40 rectangle on Top, extrude 10 mm, three M3x0.5 tapped holes 8 deep, fillet the vertical edges R3, material 6061-T6, save to D:\Work\plate.SLDPRT and show me an isometric view."
"Change Boss-Extrude1 depth to 12 mm" · "Create global variable Wall = 2 and drive the shell thickness with it."
"New assembly with plate and cover, mate them, pattern the cover 3× at 100 mm, check interference, make an exploded view."
"Drawing of plate.SLDPRT: 3 views + iso, section A-A, detail at 3:1, model dimensions, center marks, then export PDF."
"Export every part in D:\Project to STEP and STL, drawings to PDF."
"Curved shell: extrude an R50 arc surface 40 mm and thicken it 2 mm; knit these surfaces into a solid."
"Sheet metal 80×50, t=1.5, R2; 20 mm edge flange on the front edge; export the flat pattern to DXF."
"Pin in the slot, second pin hinged in the hole, gears 1:2; export the BOM to CSV and Pack and Go to D:\Release."
"Drawing: hole table, revision A 'INITIAL RELEASE', auxiliary view of the chamfer."
Tools
Group | Tools |
Connection & documents (12) |
|
Sketch (22) |
|
Part features (19) |
|
Multi-body (4) |
|
Surface (9) |
|
Sheet metal (4) |
|
Selection & topology (8) |
|
Parametric edit (15) |
|
Properties & output (8) |
|
Assembly (14) |
|
Drawing (16) |
|
Advanced (1) |
|
All lengths take an optional unit (mm default; cm, m, inch, ft). Angles are in degrees.
Configuration (optional)
solidworks_mcp/config.json. Every key is optional, and auto means auto-detect:
{ "default_unit": "mm", "part_template": "auto", "assembly_template": "auto",
"drawing_template": "C:\\Templates\\A4.drwdot", "log_level": "INFO" }Logs go to solidworks_mcp/solidworks_mcp.log; stdout is reserved for MCP.
Testing
.venv\Scripts\python.exe -m pytest -q solidworks_mcp\tests :: offline, fake COM (51 tests)
.venv\Scripts\python.exe scripts\smoke_test.py D:\swmcp_test :: live, SolidWorks open (216 checks, 13 sections)Use a new output folder for each smoke run. SolidWorks cannot open two files with the same name.
Troubleshooting
Problem | Fix |
Server missing in Claude Desktop | Register with |
"No part template found" | Set |
A tool hangs or times out | A modal dialog is open in SolidWorks: close it. The known dialogs are suppressed in code |
"Critically low on memory" | Too many open documents: close some |
Advanced mate reports over-defined | The first inserted component is fixed: |
New tools do not appear | Quit and reopen Claude Desktop |
Safety
execute_python runs arbitrary Python with your user rights. Use it only in trusted setups, or remove it from TOOL_TABLE in solidworks_mcp/tools_ext.py.
The server never calls CloseAllDocuments, and batch export never closes documents that were already open or have unsaved changes.
Project layout
solidworks_mcp_server.py entry point (launched by Claude Desktop)
solidworks_mcp/server.py MCP server: list_tools / call_tool
solidworks_mcp/tools_ext.py tool registry: schema + dispatch for all 132 tools
solidworks_mcp/automation/ SolidWorks logic (sketch, features, surfaces, sheet metal, assembly, drawing…)
solidworks_mcp/tests/ offline unit tests
scripts/ smoke test, Claude Desktop registrationTo add a tool, write the method in an automation/ mixin and add one line to TOOL_TABLE and CATEGORIES.
Credits
Original project by Samsaam Ali Baig (alisamsam/solidworks-mcp), MIT License. v4.x extensions (part / assembly / drawing tools, registry, tests) by Phan Chu Tan.
This server cannot be deployed
Maintenance
Related MCP Connectors
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
- platform7nOAuthtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
One workspace of tools for Claude and ChatGPT: connect 600+ apps, generate media, build tools.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to create and manipulate SolidWorks CAD models through natural language commands, automating part creation, sketching, and extrusion.10-
- AlicenseNot gradedqualityDmaintenanceEnables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.1MIT
- AlicenseBqualityBmaintenanceEnables Claude or any MCP client to drive a live SOLIDWORKS session through its COM API, modeling parts, building assemblies with mates, checking interferences and machining feasibility, and exporting STEP or DXF files. It also exposes a local semantic index of the SOLIDWORKS API so the model can look up signatures, enums, and official examples before running arbitrary Python against the session.221MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to create and modify real Onshape CAD models — sketches, extrudes, fillets, patterns, mates, and parametric variables — with every mutation returning structured status, warnings, and geometric deltas. Includes multi-view PNG rendering, image-reference decomposition, and drawing OCR so the agent can visually verify and iterate on parts and assemblies.MIT





