# SolidWorks MCP

MCP server for Claude Code that automates SolidWorks through its Windows COM interface. Generates 3D parts, assemblies, and drawings from plain-text prompts.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 112 repo stars
- Author: andrewbartels1
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/andrewbartels1/SolidworksMCP-python
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — warning: a PowerShell command downloads a script from astral.sh and runs it right away. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/mcp/solidworks-mcp

## What it does

The server exposes 123 tools mapped to the SolidWorks COM API. Claude Code calls these functions to sketch on planes, extrude geometry, bore holes, and mate components. Each tool tags its status as stable, beta, experimental, or deprecated.

Execution requires Windows 10 or 11, an active SolidWorks installation, and Python 3.13+. Calls run locally through `PyWin32Adapter` without third-party cloud bridges.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add solidworks-mcp-python -- uvx solidworks-mcp-python
```
uvx runs the command named after the package; if the README names another one, use uvx --from solidworks-mcp-python <command>

### Codex

**Platform CLI**
```bash
codex mcp add solidworks-mcp -- uvx solidworks-mcp-python
```
uvx runs the command named after the package; if the README names another one, use uvx --from solidworks-mcp-python <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "solidworks-mcp": {
            "command": "uvx",
            "args": [
                "solidworks-mcp-python"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from solidworks-mcp-python <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "solidworks-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "solidworks-mcp-python"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from solidworks-mcp-python <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add solidworks-mcp uvx solidworks-mcp-python
```
uvx runs the command named after the package; if the README names another one, use uvx --from solidworks-mcp-python <command>

## When to use it
- model parts and sketches from textual requirements
- assemble multi-component mechanisms with mates
- apply extrusions, cuts, and fillets automatically
- inspect and generate CAD drawings in SolidWorks

## Example prompts
- Build a bracket part on the Top plane and extrude it by 10 mm
- Drill a 12.7 mm hole through the center of the upper arm
- Assemble a universal joint from parts with concentric mates

## Similar
- [SolidWorks](https://affpapa.org/en/nevibecode/mcp/solidworks.md) — MCP server · ★ 43 repo stars
- [solidworks-gpt-plugin](https://affpapa.org/en/nevibecode/plugins/solidworks-gpt-plugin.md) — plugin · ★ 1596 repo stars
- [DezignWorks](https://affpapa.org/en/nevibecode/mcp/dezignworks.md) — MCP server · 201 installs
- [cad](https://affpapa.org/en/nevibecode/skills/cad.md) — skill · 15600 installs
- [Protogen CAD](https://affpapa.org/en/nevibecode/mcp/protogen-cad.md) — MCP server · 252 installs
- [cli-anything-freecad](https://affpapa.org/en/nevibecode/skills/cli-anything-freecad.md) — skill · 745 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
