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-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
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 installed
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
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/yimu0824/solidworks-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server