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
Related MCP server: SolidWorks MCP Server
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenancePython MCP server for SolidWorks automation with 109 tools covering the full CAD lifecycle. Enables AI-assisted design workflows through COM automation on Windows.Last updated10044MIT
- AlicenseCqualityCmaintenanceA Node.js MCP server that connects AI assistants to SolidWorks for CAD automation via COM interop, with a smart routing layer to handle parameter limits by using VBA macros when needed.Last updated8657208MIT
- Alicense-qualityDmaintenanceEnables natural language control of SolidWorks 2024 through MCP, providing 87 tools for sketch, drawing, and model operations with an intelligent COM bridge that handles parameter limits.Last updated5713MIT
- Alicense-qualityCmaintenanceEnables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.Last updated1MIT
Related MCP Connectors
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
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/yimu0824/solidworks-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server