Solidworks MCP

by haunchen

Not rated
GitHub

About

MCP server for SolidWorks 2021 - create engineering drawings from any MCP client (Claude Code, Codex, Gemini CLI, Cursor...) via COM

Details

Author
haunchen
Categories
Productivity, Other, AI

Setup

Install Solidworks MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/haunchen/solidworks-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

An MCP server that lets Claude — or any MCP client that speaks Streamable HTTP — driveSolidWorks 2021to create engineering drawings over your LAN, through the pywin32 COM API.

Open a part, generate first-angle standard views, add dimensions and balloons, insert a BOM table, then export to PDF — all from a Claude conversation.

Claude Code ◄── Streamable HTTP ──► src/server.py (FastMCP) │ async tool handlers │ sw.execute(func) ← asyncio + Future │ COM Worker Thread (STA, singleton) │ pywin32 COM → SolidWorks 2021

SolidWorks COM must be driven from a single STA thread. All tool handlers are async and dispatch their COM callables onto a dedicated worker thread, bridged back withconcurrent.futures.Future.

- Windows 10/11 host withSolidWorks 2021installed
- Python 3.10+
- An MCP client that supports Streamable HTTP (e.g. Claude Code, Codex CLI, Gemini CLI, Cursor — seeCompatible MCP clients) on the sametrusted LAN
- Optional: a drawing template (.drwdot) and an SMB shared folder for large screenshots / PDFs

Only SolidWorks 2021 has been tested. Other versions may work since the COM API is largely stable, but no guarantees.

git clone https://github.com/haunchen/solidworks-mcp.git cd solidworks-mcp python -m venv .venv .venv\Scripts\pip install -r requirements.txt
pip download -d ./wheels -r requirements.txt

Copy the repo (includingwheels/) to the SolidWorks host, then:

.venv\Scripts\pip install --no-index --find-links wheels -r requirements.txt
Copy-Item .env.example .env # edit .env — see Configuration below

4. Connect from Claude Code (client machine)

claude mcp add --transport http solidworks http://<sw-host>:8080/mcp

Then just ask Claude:"Open bracket.sldprt and create a first-angle 3-view drawing with dimensions, then export it as PDF."

Any MCP client that supportsStreamable HTTPand runs on your machine (or inside the LAN) can connect. Verified examples:

Agent frameworks work too: OpenAI Agents SDK (MCPServerStreamableHttp), LangChain (langchain-mcp-adapters).

Cloud-brokered connectors cannot reach a LAN-only server: Claude Desktop / claude.ai custom connectors and the Anthropic Messages API MCP connector all connect from the vendor's cloud, which is exactly what the trusted-LAN security model blocks.

All settings are loaded from.env(see.env.example):

This server has no authentication.Anyone who can reach the port can drive your SolidWorks instance and read/write files through it.

- Deploy on atrusted LAN only— never expose the port to the internet
- Prefer bindingSW_MCP_HOSTto a specific LAN interface instead of0.0.0.0
- Consider OS-level firewall rules restricting access to known client IPs

# run all tests (no SolidWorks needed — the COM layer is fully mocked) .venv\Scripts\pytest tests/ -v

Behavior contracts live indocs/specs/— specs withstatus: activedescribe the expected behavior of shipped features. Design history is indocs/plans/.

SeeCONTRIBUTING.mdfor development setup and PR guidelines.

One MCP server for Claude, ChatGPT & Gemini — wraps your ERPs, CRMs, APIs and knowledge base into a single governed endpoint.

Orbit is the operating system for your AI workforce — see, manage, and coordinate all your AI agents across Claude, ChatGPT, Cursor, Gemini, Manus and more via a 2-minute MCP setup.

Persistent memory for any AI assistant. Zero token cost until recall. Stores memories in local SQLite, ranks by 6-factor scoring, returns results 79% smaller than JSON. Works with Claude, ChatGPT, Grok, Cursor, Windsurf, and any MCP client.

After Effects MCP is a full-featured automation bridge that connects AI clients (like VS Code, Claude Desktop, and Claude Code) to Adobe After Effects through MCP, enabling scripted control of compositions, layers, effects, keyframes/graph easing, presets, markers, audio levels, waveform analysis, and effect discovery via a live bridge panel.

Project management your AI can actually run — connect Claude, ChatGPT, Cursor & Codex to one board over MCP.

AIOProductOS spine over MCP — customers, revenue, feedback, work, analytics on one typed record.

The memory layer for AI coding tools. Local-first, semantic, 9 MCP tools with consolidation and project scoping. Works with Claude Code, Cursor, Windsurf & any MCP client.

Run your field service business from Claude: answer calls, book and dispatch jobs, build estimates, chase invoices. Built for HVAC, plumbing, electrical, roofing and pest control.

Complete Swiss accounting integration for Bexio via MCP. Works with Claude Desktop, n8n, and any MCP client. 221 tools for invoices, contacts, projects & more.

Persistent memory MCP server for Claude Desktop — remembers context, time, and topics across sessions

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.