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-mcpConnect to SolidWorks and open bracket.sldprt"
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 Model Context Protocol (MCP) bridge server for SolidWorks, enabling AI assistants (like Codex) to directly interact with SolidWorks through COM automation.
Features
Connect to SolidWorks and control it programmatically
Open, save, close SolidWorks documents (.sldprt / .sldasm / .slddrw)
Read document info: features, bodies, mass properties, custom properties
Export to STEP / IGES / STL formats
Read file metadata without launching SolidWorks GUI
Full MCP integration: tools + resources
Related MCP server: solidworks-mcp
Prerequisites
SolidWorks (2020+ recommended) installed on Windows
Python 3.10+
pywin32 (
pip install pywin32)mcp (
pip install mcp)
Installation
# Clone the repository
git clone https://github.com/YOUR_USERNAME/solidworks-mcp.git
cd solidworks-mcp
# Install dependencies
pip install -r requirements.txtUsage
1. Standalone Mode
Run the MCP server directly:
python server.py2. Codex Integration
Add the following to your Codex config.toml (usually at ~/.codex/config.toml):
[mcp_servers.solidworks]
command = "python"
args = ["C:/path/to/solidworks-mcp/server.py"]
startup_timeout_sec = 60
[mcp_servers.solidworks.env]
PYTHONIOENCODING = "utf-8"Restart Codex after updating the config.
3. Using the Tools
Once connected, you can ask your AI assistant to:
"Connect to SolidWorks and open
part.sldprt""List all features in the current document"
"Export the model as STEP"
"Get the mass properties"
"Show me all custom properties"
Available MCP Tools
Tool | Description |
| Connect to SolidWorks (launch if not running) |
| Open a SolidWorks document |
| Get full document information |
| List all modeling features |
| List all solid bodies |
| Get mass, volume, center of mass |
| Read custom properties |
| Export to STEP / IGES / STL |
| Save current document |
| Save document to a new path |
| Close a document |
| Force rebuild the model |
| Read file info without launching GUI |
| Exit SolidWorks |
MCP Resources
solidworks://status- Current connection status and active document infosolidworks://file/{path}- Read file metadata without opening SolidWorks
Architecture
solidworks-mcp/
├── server.py # MCP Server (tools + resources)
├── sw_bridge.py # SolidWorks COM bridge core
└── requirements.txt # Python dependenciesThe bridge communicates with SolidWorks via the Windows COM automation interface (SldWorks.Application). The MCP server wraps these operations into standard MCP tools and resources.
Limitations
Windows only (COM automation is Windows-specific)
SolidWorks must be installed locally
Some operations may require SolidWorks to be running with a valid license
STL export quality settings may vary by SolidWorks version
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI access to Swagger by SmartBear.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseCqualityAmaintenancePython MCP server for SolidWorks automation with 109 tools covering the full CAD lifecycle. Enables AI-assisted design workflows through COM automation on Windows.10072MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that drives SolidWorks 2023+ on Windows, exposing CAD operations like sketching, extrusions, assemblies, and exports through tools for AI assistants like Kimi and Claude.-
- AlicenseNot gradedqualityCmaintenanceMCP server for controlling a live SOLIDWORKS session through the Windows COM API, enabling native CAD operations like sketches, features, bodies, views, and exports, plus transactional plans and vectorization.1MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that controls SolidWorks via COM, enabling CAD automation with 138 tools for sketching, 3D features, assemblies, drawings, and more.MIT