SolidWorks MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SolidWorks MCP Server š§
Automate SolidWorks using natural language through Claude AI and the Model Context Protocol (MCP)
šÆ What is This?
SolidWorks MCP Server is a production-ready Model Context Protocol server that lets Claude AI control SolidWorks through natural language. Instead of manually clicking through menus, you simply tell Claude what to design ā and it builds it for you.
Example prompts you can use:
"Create a new part, draw a circle with radius 30mm and extrude it 15mm"
"Add a fillet of 2mm to all edges"
"Draw a hexagon and cut extrude it 10mm"
"List all features in the current part"
Related MCP server: SolidWorks MCP Server
⨠Features
ā 22 Tools covering parts, sketches, features, and utilities
ā SolidWorks 2023ā2025 Compatible with version-aware API fallbacks
ā Auto-detects SolidWorks installation via Windows registry
ā Multi-unit support ā mm, cm, inch, meter, foot
ā Modular architecture ā clean, extensible Python package
ā Robust error handling ā cascading fallback chains for COM API
ā JSON configuration ā easy to customize without touching code
ā Comprehensive logging ā full debug output for troubleshooting
š ļø Available Tools
42 tools (v4.1.0). Method signatures verified against the official
SolidWorks 2025 API help. Notes: extrude uses FeatureExtrusion3
(current in 2025; FeatureExtrusion2 is obsolete); patterns use the
CreateDefinition feature-data route; sweep (InsertProtrusionSwept3)
is intentionally NOT included ā its exact 20-parameter signature did
not surface from the 2025 docs, verify it against the installed type
library before adding it.
Category | Tool | Description |
Connection |
| Connect to running SolidWorks instance |
Connection |
| Get version and installation info |
Documents |
| Create a new part document |
Documents |
| Create a new assembly document |
Documents |
| Open an existing SolidWorks file |
Documents |
| Close the active document |
Documents |
| Save the active document |
Documents |
| Get information about the active document |
Documents |
| List all open documents |
Sketches |
| Create a sketch on a plane (Front/Top/Right) |
Sketches |
| Create a sketch on an existing body face |
Sketches |
| Exit the active sketch |
Sketches |
| Sketch diagnostics (active state, names) |
Sketches |
| Draw a circle by center and radius |
Sketches |
| Draw a rectangle by two corners |
Sketches |
| Draw a line between two points |
Sketches |
| Draw an arc by center and angles |
Sketches |
| Draw an arc through 3 points |
Sketches |
| Draw a spline through points |
Sketches |
| Draw a slot (straight/centerline/arc/3-point arc) |
Sketches |
| Draw a construction centerline (revolve axis) |
Sketches |
| Draw a regular polygon (triangle, hex, etc.) |
Sketches |
| Trim selected sketch entities at a pick point |
Features |
| Boss-extrude the active sketch |
Features |
| Cut-extrude to remove material |
Features |
| Add fillets to selected edges |
Features |
| Add chamfers to selected edges |
Features |
| List all features in the model |
Features |
| Revolve the last sketch around its centerline |
Features |
| Loft a boss between the last two sketches |
Features |
| Loft a cut through the last two sketches |
Features |
| Hole Wizard hole at sketch points |
Features |
| Linear-pattern features along a direction |
Features |
| Circular-pattern features around an axis |
Features |
| Shell the solid, removing faces at given points |
Features |
| Mirror features (or body) about a plane |
Measure |
| Measure distance between entities |
Measure |
| Mass, volume, area, center of mass, inertia |
Export |
| Export STL / STEP / IGES / PDF / Parasolid |
Export |
| Reference plane offset from a plane |
Utilities |
| Change default unit (mm/inch/cm/m/ft) |
Utilities |
| Execute custom Python code in SW context |
š Requirements
OS: Windows 10 or Windows 11
SolidWorks: 2023, 2024, or 2025 (must be installed and licensed)
Python: 3.10 or higher
Claude: Claude Desktop app or Claude Code
ā” Quick Start
1. Clone the Repository
git clone https://github.com/alisamsam/solidworks-mcp.git
cd solidworks-mcp2. Install Dependencies
pip install -r requirements.txt3. Configure Claude Desktop
Add the following to your claude_desktop_config.json:
Location: C:\Users\YOUR_NAME\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"solidworks": {
"command": "python",
"args": ["C:\\path\\to\\solidworks-mcp\\solidworks_mcp_server.py"]
}
}
}4. Launch
Open SolidWorks first
Restart Claude Desktop
In Claude, type: "Connect to SolidWorks"
Start designing! š
š Project Structure
solidworks-mcp/
āāā solidworks_mcp_server.py # Entry point
āāā solidworks_mcp/ # Main package
ā āāā __init__.py # Package exports (v3.0.0)
ā āāā server.py # MCP server & tool definitions
ā āāā config.py # Configuration management
ā āāā config.json # Default settings
ā āāā constants.py # SolidWorks constants & enums
ā āāā automation/ # Core automation modules
ā ā āāā base.py # Connection management
ā ā āāā documents.py # Document operations
ā ā āāā sketches.py # Sketch operations
ā ā āāā features.py # Feature operations (SW 2025 fixed)
ā āāā utils/ # Utility modules
ā āāā units.py # Unit conversion system
ā āāā sw_finder.py # Auto-detect SolidWorks
āāā requirements.txt
āāā .gitignore
āāā DEVELOPMENT_ROADMAP.md # Future development planāļø Configuration
Edit solidworks_mcp/config.json to customize behavior:
{
"exe_path": "auto",
"default_unit": "mm",
"startup_timeout": 120,
"log_level": "INFO",
"default_extrude_depth": 10.0,
"default_fillet_radius": 2.0
}Setting | Default | Description |
|
| Path to SLDWORKS.exe or auto-detect |
|
| Default unit for all dimensions |
|
| Seconds to wait for SW startup |
|
| Logging verbosity |
š§ SolidWorks 2025 Compatibility
This server includes special handling for SolidWorks 2025 API changes:
Extrusion fallback chain:
FeatureExtrusion3āFeatureExtrusion2āFeatureBossSimpleSafe property access for
feat.Name,feat.GetTypeName2(),IsSuppressed2()stdout capture fix for
execute_pythontoolRegistry-based SolidWorks auto-detection
š¤ Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch:
git checkout -b feature/my-featureCommit your changes:
git commit -m "Add my feature"Push to the branch:
git push origin feature/my-featureOpen a Pull Request
š License
This project is licensed under the MIT License ā see the LICENSE file for details.
š¤ Author
Samsaam Ali Baig
GitHub: @alisamsam
š Acknowledgements
Anthropic for Claude AI and the MCP framework
SolidWorks COM API documentation
Inspired by ros2-claude-code-template by Harun KURT
ā If this project helps you, please give it a star!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Edit AutoCAD and Revit MEP drawings from Claude or ChatGPT in plain English.
Text-to-CAD: build exact STEP or 3MF/STL on the server, each stated requirement measured.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to create and manipulate SolidWorks CAD models through natural language commands, automating part creation, sketching, and extrusion.12-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents such as Claude to drive SolidWorks through its COM API using natural language, creating parts and assemblies, sketching geometry, and adding features without clicking menus. Also supports running arbitrary API scripts and verifying results through model reports, rendered views, interference checks, and exports.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to control SolidWorks through natural language, supporting part and assembly creation, sketches, advanced features, dimension editing, selection inspection, screenshots, and rebuilds.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to drive SolidWorks in natural language, creating parts and assemblies, sketching and modeling features, editing dimensions, setting materials, and exporting CAD files. It also exposes selection, mass-property, and viewport-capture tools so 3D designs can be built and verified conversationally.MIT