SolidWorks MCP

v1.0.0Developer Toolsstable

MCP server to automate SolidWorks using Claude AI — 22 tools for parts, sketches & features

claude-mcpcom-apipythonsolidworkssolidworks-api
Share:
22
Stars
0
Downloads
0
Weekly
0/5

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

Automate CAD operations in SolidWorks including parts, sketches, and features.
Control design workflows through Claude AI with 22 specialized tools.
alisamsam

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx solidworks-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-mcp
2

Install 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.txt
3

Open 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.

4

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"]
    }
  }
}
5

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.

6

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.

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.

Quick Config Preview

{ "mcpServers": { "solidworks-mcp": { "command": "npx", "args": ["-y", "solidworks-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides