solidworks-mcp
Click on "Install 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 100mm x 60mm x 20mm box."
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
A self-contained Model Context Protocol (MCP) server that exposes SolidWorks 2023+ to Kimi, Claude, Codex, and other MCP clients on Windows. It drives SolidWorks through the COM API, marshalling all calls onto a single STA thread so the application stays alive and responsive.
This package includes the original MCP server, the local solidworks_automation COM helper modules, and setup scripts to register the server with Kimi and Claude clients.
Prerequisites
Windows 10/11 (SolidWorks COM automation requires a Windows desktop session).
SolidWorks 2023 or later (license and installation required).
Python 3.8+.
mcppackage (>=1.0.0).pywin32package (>=305) for COM interop.
Related MCP server: solidworks-mcp
Quick Install
Open PowerShell in the package directory.
Run the install script:
.\setup.ps1
The script will install Python dependencies and register the server in:
C:\Users\<you>\.kimi\mcp.jsonC:\Users\<you>\.claude\settings.json
Existing settings in those files are preserved (merged, not overwritten).
Manual Install / MCP Config Snippet
If you prefer to register the server manually, add this block under the mcpServers key of your client config:
{
"mcpServers": {
"solidworks": {
"command": "python",
"args": [
"<repo>\\solidworks-mcp\\server.py"
],
"cwd": "<repo>\\solidworks-mcp",
"env": {
"PYTHONIOENCODING": "utf-8",
"SW_HIDE_WINDOW": "1"
}
}
}
}Then install dependencies from the package root:
pip install -r requirements.txt
# or install in editable mode
pip install -e .Tool Overview
Category | Tools | What they do |
Connection / Docs |
| Connect to SolidWorks, create/open/close documents, save. |
Sketch |
| Start/exit sketches and draw 2D geometry on a selected plane. |
Features |
| Build 3D features from sketches and list the feature tree. |
Assembly |
| Add components, apply mates, and create exploded views. |
Drawing |
| Generate drawing views, annotations, BOMs, and PDF export. |
Export |
| Export to STEP, STL, IGES, DXF/DWG, Parasolid, PDF, and native formats. |
Analysis / Properties |
| Mass properties, interference checks, model metadata, and material assignment. |
Custom Properties / Configurations |
| Read/write custom file properties and switch between model configurations. |
Example Usage Prompts
“Connect to SolidWorks and create a new 100 mm × 60 mm × 20 mm box.”
“Draw a 30 mm radius circle on the Front Plane and extrude it to 10 mm.”
“Add the part
C:\\Models\\bracket.sldprtto the active assembly at the origin.”“Create a coincident mate between the
topface ofbracket-1and thebottomface ofplate-1.”“Export the current drawing to
C:\\Output\\drawing.pdf.”“Set the custom property
PartNumbertoA-1001and activate theDefaultconfiguration.”
Boundaries and Limitations
Not truly headless. The server still requires a Windows desktop session with SolidWorks installed.
SW_HIDE_WINDOW=1only hides a newly launched SolidWorks instance; it does not remove the need for SolidWorks or for a Windows session.Single-threaded COM. All SolidWorks COM calls are serialized on one STA thread. Very long-running operations can block subsequent tool calls until they complete.
No Simulation/FEA. The server does not drive SolidWorks Simulation (COSMOS) or run finite-element analysis. It is limited to geometry, assemblies, drawings, and basic mass/interference checks.
Entity selection is name-based. Tools that select faces, edges, or planes rely on the English feature names (
FACE,EDGE,PLANE) and named features in the SolidWorks feature tree. On non-English SolidWorks installations or models with renamed/special characters, selection may be brittle or fail.Attaches to existing windows. If a SolidWorks window is already running when the server connects, it may attach to that instance instead of creating a new hidden one. That can produce surprising results if the active document is not what you expect.
Model/drawing must be saved for some exports. Some export routines behave best when the source document has already been saved to disk.
Error handling. COM errors are caught and returned as JSON error messages, but they do not always map to an obvious root cause. When SolidWorks shows a modal dialog, the call may hang until the dialog is dismissed.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yezg9920-kely/solidworks-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server