SolidWorks MCP
MCP server to automate SolidWorks using Claude AI — 22 tools for parts, sketches & features
What is SolidWorks MCP?
SolidWorks MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server to automate solidworks using claude ai — 22 tools for parts, sketches & features
MCP server to automate SolidWorks using Claude AI — 22 tools for parts, sketches & features
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server to automate SolidWorks using Claude AI — 22 tools
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx solidworks-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use SolidWorks MCP
SolidWorks MCP Server is a Python-based Model Context Protocol server that lets Claude AI control SolidWorks through natural language via the SolidWorks COM API. It exposes 22 tools covering connection management, document operations (create, open, save, close), sketch operations (circles, rectangles, lines, arcs, polygons), and feature operations (boss extrude, cut extrude, fillets, chamfers). Instead of navigating menus manually, you describe what you want to design and Claude builds it, making CAD automation accessible without scripting expertise. It supports SolidWorks 2023 through 2025 with version-aware API fallback chains.
Prerequisites
- Windows 10 or Windows 11 (required for the SolidWorks COM API)
- SolidWorks 2023, 2024, or 2025 installed and licensed on the machine
- Python 3.10 or higher
- Claude Desktop or Claude Code as the MCP client
- Git to clone the repository
Clone the repository
Clone the SolidWorks MCP repository from GitHub. All source files and the entry point script are included.
git clone https://github.com/alisamsam/solidworks-mcp.git
cd solidworks-mcpInstall Python dependencies
Install the required Python packages using pip. The requirements file includes the MCP SDK and the pywin32 package for COM API access.
pip install -r requirements.txtOpen SolidWorks
Launch SolidWorks before starting the MCP server. The server connects to a running SolidWorks instance via the COM API — it cannot start SolidWorks itself on first use.
Configure Claude Desktop
Add the server to your claude_desktop_config.json file. Update the path to match where you cloned the repository. The config file is at 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"]
}
}
}Restart Claude Desktop and connect
Restart Claude Desktop after saving the config. In the Claude chat window, type 'Connect to SolidWorks' to use the connect_solidworks tool and establish the COM API connection.
Customize configuration (optional)
Edit solidworks_mcp/config.json to change the default unit system, startup timeout, extrude depth, fillet radius, or log verbosity. The exe_path defaults to auto-detection via the Windows registry.
{
"exe_path": "auto",
"default_unit": "mm",
"startup_timeout": 120,
"log_level": "INFO",
"default_extrude_depth": 10.0,
"default_fillet_radius": 2.0
}SolidWorks MCP Examples
Client configuration
Claude Desktop configuration pointing to the solidworks_mcp_server.py entry point. Update the path to your actual clone location.
{
"mcpServers": {
"solidworks": {
"command": "python",
"args": ["C:\\Users\\YourName\\solidworks-mcp\\solidworks_mcp_server.py"]
}
}
}Prompts to try
These prompts map to the 22 available MCP tools. Start by connecting, then describe what you want to design.
- "Connect to SolidWorks and tell me the version"
- "Create a new part, draw a circle with radius 30mm on the Front plane and extrude it 15mm"
- "Draw a hexagon with 6 sides on the Top plane and cut extrude it 10mm"
- "Add a fillet of 2mm to all edges of the current part"
- "List all features in the current part model"
- "Set the default unit to inches and draw a rectangle 2 x 4 inches"Troubleshooting SolidWorks MCP
connect_solidworks tool returns a COM error or cannot find SolidWorks
Ensure SolidWorks is already running before connecting. The server auto-detects the SolidWorks installation via the Windows registry. If detection fails, set the exe_path field in config.json to the full path of SLDWORKS.exe, e.g. C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\SLDWORKS.exe.
Extrude operations fail on SolidWorks 2025
The server includes a fallback chain for SolidWorks 2025 API changes: FeatureExtrusion3 → FeatureExtrusion2 → FeatureBossSimple. If extrusions still fail, check the log output (set log_level to DEBUG in config.json) to see which COM method is being called and what error is returned.
Claude does not see the SolidWorks MCP tools after restarting Claude Desktop
Verify the path in claude_desktop_config.json uses double backslashes (C:\\path\\to\\) and points to solidworks_mcp_server.py. Confirm Python 3.10+ is on your system PATH by running `python --version` in a command prompt. Check Claude Desktop logs for MCP server startup errors.
Frequently Asked Questions about SolidWorks MCP
What is SolidWorks MCP?
SolidWorks MCP is a Model Context Protocol (MCP) server that mcp server to automate solidworks using claude ai — 22 tools for parts, sketches & features It connects AI assistants to external tools and data sources through a standardized interface.
How do I install SolidWorks MCP?
Follow the installation instructions on the SolidWorks MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with SolidWorks MCP?
SolidWorks MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is SolidWorks MCP free to use?
Yes, SolidWorks MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
SolidWorks MCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to SolidWorks MCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up SolidWorks MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use SolidWorks MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.