solidworks-mcp
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-mcpcreate a 50mm cube and report its mass if it's aluminum"
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
An MCP server that drives SolidWorks 2022 directly from AI assistants — sketching, features (extrude/cut/revolve/fillet/chamfer/shell/patterns), driving dimensions and equations, exporting, and inspecting mass properties.
Windows only. SolidWorks automation goes through Windows COM — this must run on the same machine where SolidWorks 2022 is installed and licensed.
Quick start (recommended)
Download the latest release and run setup.bat — it auto-detects your Python and SolidWorks installs, installs dependencies, and configures your client. Done in one click.
Or manually:
powershell -ExecutionPolicy Bypass -File setup.ps1Related MCP server: solidworks-mcp
Client support
This repo ships the same MCP server for two AI clients:
Client | Directory | Config format |
|
| |
|
|
Each directory has its own README with client-specific setup instructions and the same Python source code underneath.
solidworks-mcp/
├── README.md ← you are here
├── claude/ ← Claude Desktop
│ ├── README.md
│ ├── claude_desktop_config.example.json
│ ├── server.py
│ ├── connection.py
│ ├── requirements.txt
│ ├── diagnose.py
│ └── tools/
└── opencode/ ← opencode
├── README.md
├── opencode_config.example.jsonc
├── server.py
├── connection.py
├── requirements.txt
├── diagnose.py
└── tools/Quick start
Pick your client and follow its README:
Claude Desktop:
claude/README.mdopencode:
opencode/README.md
Both require the same prerequisites: Python 3.10+ and SolidWorks 2022 on
Windows. Install dependencies with pip install -r requirements.txt in the
appropriate directory.
How it works
SolidWorks exposes its entire API over COM natively — no addon required.
This server attaches to a running SolidWorks instance (or launches one)
via pywin32, and exposes ~30 tools covering the full modeling workflow.
API enum constants are pulled live from your installed SolidWorks type library, so they're guaranteed correct for your install.
See the client-specific READMEs for the full tool list, example workflows, and known rough edges.
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.
Bitbybit 3D parametric CAD API, version-exact, for coding agents: search, describe, examples, guide
AI-callable calculators and engineering models with real formulas. No hallucinated math.
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
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control a running SOLIDWORKS session through its COM API, with tools for sketching, feature creation, assemblies, and visual feedback via screenshots.11Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables control of a live SOLIDWORKS session through the Windows COM API, providing native sketch, feature, body, reference-geometry, view, probe, and export operations, along with transactional CAD plans, parametric sketches, multibody tools, and deterministic raster-to-sketch vectorization pipelines.-