SolidworksMCP-python
MCP serverCommunity
A Python server with about 150 SOLIDWORKS tools for parts, assemblies, drawings with BOMs, and model checks. By andrewbartels1.
95 starsUpdated 1 day agoGitHub data from 5 Nov 2026
At a glance
- Type
- MCP server
- Works with
- SOLIDWORKS
- How it connects
- Drives a running copy of the tool
- Access
- Can modify models
- Tool versions
- Tested on SOLIDWORKS 2026; earlier releases untested
- Operating systems
- Windows
- Needs a SOLIDWORKS licence
- Yes
- Transport
- Local (stdio)
- AI clients documented
- Claude Desktop, Claude Code, VS Code, Cursor, LM Studio
- Licence
- MIT
- Language
- Python
What it can do
- Drives SOLIDWORKS through its COM API to sketch, extrude, mate components and set materials, then reads back volume, mass and interference so the agent can check its own result.
- Generates drawing packages from one call, including views, dimensions, GD&T frames, BOM tables and a PDF.
- Includes lookup tools that search the SOLIDWORKS API help for the release you name with --year.
- Can log every tool call to a local SQLite file and export the session as a runnable Python script.
- A guided setup command detects SOLIDWORKS and installed MCP clients and writes their configs.
Limitations
- Driving SOLIDWORKS needs Windows 10 or 11; Linux and WSL run only the mock mode, docs and tests.
- Only SOLIDWORKS 2026 has been tested by the author.
- Mock-mode output is simulated and not engineering data.
Install
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uvx solidworks-mcp-python setupSource: github.com/andrewbartels1/SolidworksMCP-python#install
claude mcp add --scope user solidworks -- uvx solidworks-mcp-python --year 2026Source: github.com/andrewbartels1/SolidworksMCP-python#connect-your-client
{
"mcpServers": {
"solidworks": {
"command": "uvx",
"args": ["solidworks-mcp-python", "--year", "2026"]
}
}
}Source: github.com/andrewbartels1/SolidworksMCP-python#connect-your-client
MCP servers and skills run code on your computer. Review the source before installing.
AI-generated models, drawings and results must be checked by a qualified engineer before use.