# SolidWorks MCP server

> Enables AI agents to automate SolidWorks CAD tasks including creating parts, assemblies, drawings, and managing mates via the COM API.

- Repository: https://github.com/andrewbartels1/SolidworksMCP-python
- Page: https://hostedmcp.org/servers/andrewbartels1/solidworksmcp-python
- Transport: stdio
- Stars: 99
- License: MIT
- Latest version: 2.0.0

## Install

### Claude Code

```sh
claude mcp add solidworksmcp-python -- uvx solidworks-mcp-python
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "solidworksmcp-python": {
      "command": "uvx",
      "args": [
        "solidworks-mcp-python"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "solidworksmcp-python": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "solidworks-mcp-python"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "solidworksmcp-python": {
      "command": "uvx",
      "args": [
        "solidworks-mcp-python"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.solidworksmcp-python]
command = "uvx"
args = ["solidworks-mcp-python"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "solidworksmcp-python": {
      "command": "uvx",
      "args": [
        "solidworks-mcp-python"
      ]
    }
  }
}
```

## FAQ

### What can this server do with SolidWorks?

It allows AI agents to build parts, assemblies, and drawings from text descriptions, as well as perform extrusions and manage mates.

### Can I use this without an AI agent?

Yes, it provides a Python interface for scripting SolidWorks directly using async Python calls.

### How many tools are available?

The server provides 156 MCP tools for SolidWorks automation.
