# SolidWorks

Automates parametric CAD modeling in an active SolidWorks session on Windows, verifying part mass, dimensions, and volume at each step.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: hjbaard
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hjbaard/SolidWorks-MCP
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/mcp/solidworks

## What it does

This server links an assistant to a desktop SolidWorks process via Windows COM. It exposes 86 typed tools covering extrusions, sweeps, lofts, ISO metric threads, Hole Wizard operations, and multi-part assemblies with mate evaluations. After each step, the tool reports actual mass, bounding limits, and measured volume. The agent verifies geometry against requirements instead of guessing.

Sketches remain fully constrained from the origin, keeping named dimensions intact for manual adjustments. There is no arbitrary code execution. The toolset also supports STEP, STL, and 3MF generation along with viewport screen captures.

You must have a licensed SolidWorks session running before connecting; the tool attaches to the process and cannot launch one on its own. It requires Windows, Python 3.11+, and default Y-up part templates. Parts configured with a Z-up orientation fail immediately. Run `uvx solidworks-mcp --selftest` to inspect compatibility across your local CAD setup.

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

## Install

### Claude Code (native platform)

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

### Codex

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

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

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

## When to use it
- build fully constrained parametric CAD parts from coordinate specs
- verify part volume, bounding box, and mass against manual calculations
- add standard ISO metric threads and counterbored mounting holes
- evaluate assembly mates and scan for body interferences
- export verified solid geometry into STEP, STL, or 3MF formats

## Example prompts
- Design an 8 mm mounting plate sized 100 by 80 mm with M5 counterbored corners, verify its mass, and save an STL file.
- Check the volume of the current active component and report discrepancies with my target specification.
- Apply an ISO metric thread along the selected cylinder and generate a capture of the model.

## Similar
- [Next AI Draw.io](https://affpapa.org/en/nevibecode/mcp/next-ai-drawio.md) — MCP server · ★ 36427
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51104
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16073
- [Agent-Native Assets](https://affpapa.org/en/nevibecode/mcp/agent-native-assets.md) — MCP server · ★ 7527
- [Remove AI Watermarks](https://affpapa.org/en/nevibecode/mcp/remove-ai-watermarks.md) — MCP server · ★ 6144
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3851

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