solidworks
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., "@solidworksCreate a box 80x60x40 mm and export STEP"
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 (DSH plugin)
Parametric part modeling in SolidWorks via COM: build a box feature tree, verify volume through mass properties, save SLDPRT and export STEP. DSH plugin wrapping a stdio MCP server.
Windows only. These servers drive the real commercial applications through COM automation — the target software must be installed and licensed on the machine.
Verified on
SolidWorks 2024 SP5. lib/swnsis.py is the makepy wrapper for THIS version; regenerate for others (see README).
Related MCP server: solidworks-mcp
Tools
solidworks_box— w/h/d in mm,export_step:trueoptional; returns verified volume_mm3 vs expected + file paths
Outputs are written to {cwd}/lab-out/ (override with env LAB_OUT_DIR).
First call cold-starts the application and can take 30–120 s.
Requirements
Windows + Python 3.10+ with
pywin32(pip install pywin32)The target application installed and COM-registered
Install as a DSH plugin
dsh plugin --profile web add <path-or-git-url>The bundled cordis.patch.yml registers the server through
@deepseek-ai/dsh-mcp-client; tools appear as mcp__solidworks__*.
Manual MCP client config (Claude Desktop etc.)
{
"mcpServers": {
"solidworks": {
"command": "python",
"args": ["<abs-path>/server/server.py"]
}
}
}Point command at your real interpreter (on Windows avoid the Microsoft Store
python.exe stub).
Layout
server/server.py stdio MCP server (JSON-RPC 2.0)
lib/*.py helper module + makepy typelib wrappers (self-contained)
cordis.patch.yml DSH bundle patchRegenerating makepy wrappers
If your app version differs, rebuild the typed wrapper and drop it into lib/:
python -m win32com.client.makepy -o lib/<wrapper>.py "<path-to-tlb-or-dll>"(See each repo's README notes for the exact typelib location.)
Caveats learned the hard way (already handled in code)
COM points must be
VT_ARRAY|VT_R8VARIANTs; some methods need the typed wrapper.ChemDraw
Positionreturns a copy — writeback required (handled in cd_helper).AutoCAD modal dialogs freeze the COM pump; cad_helper ships
close_modal_dialogs().stdout is forced UTF-8 (GBK consoles corrupt JSON-RPC frames otherwise).
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Geometry and CAD file metadata extraction for STL, OBJ, PLY, PCD, LAS/LAZ, glTF/GLB.
Real FEA on CAD parts: validated setups, stress, safety factor, natural frequencies
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to automate SolidWorks (open/save parts, modify dimensions, export STEP) via COM, and optionally generate geometry using build123d code-CAD with PNG previews.MIT
- 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
- FlicenseNot gradedqualityBmaintenanceDrives SolidWorks 2022 on Windows via COM to perform CAD operations like sketching, features, dimensioning, and mass property inspection from AI assistants.-
- AlicenseNot gradedqualityCmaintenanceEnables building and modifying parametric solid models in a local SOLIDWORKS installation via the COM API.MIT