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 Server
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
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
- FlowstepOAuthai.flowstep
Generate, inspect, and manage Flowstep UI designs directly from your AI assistant.
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
- FlicenseNot gradedqualityDmaintenanceEnables Claude to create and manipulate SolidWorks CAD models through natural language commands, automating part creation, sketching, and extrusion.10-
- AlicenseNot gradedqualityCmaintenanceEnables 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.8Apache 2.0