solid-mcp-studio
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Bidirectional Live SolidWorks CAD Automation Server via Model Context Protocol (MCP).
solid-mcp-studio combines a Python MCP Server (server.py) with a persistent C# SolidWorks Interop Bridge (sw_bridge.exe) to give AI agents direct, real-time control over a live, visible SolidWorks session — from parametric 3D modeling and sheet metal fabrication to production-ready 2D technical drawings and 1:1 laser-ready DXF exports.
📖 Detailed Turkish User Guide: docs/SOLIDWORKS_MCP_KILAVUZU.md
Hobby & Non-Commercial Project: This project was created purely as a personal hobby and technical experiment, with no commercial purpose or affiliation. SolidWorks is a registered trademark of Dassault Systèmes.
Key Capabilities
Live & Visible SolidWorks Execution: Operates directly on the user's running SolidWorks window so every sketch, feature, and drawing view can be watched in real time. Never modifies system templates or user settings.
Parametric 3D Modeling (Phase 2): Full sketch geometry (
line,circle,arc,rect,polygon), parametric dimensions (sw_sketch_dimension), geometric relations (sw_sketch_relation),Extrude Boss/Cut,Revolve Boss/Cut,Fillet,Chamfer, material assignment, andsw_undo.Production-Ready Technical Drawings (Phase 3): Clean title-block-free Landscape A3 sheets, automatic standard orthographic views, longitudinal section views (
KESİT A-A), detail views, calm targeted dimensioning (inspecting each view viasw_drawing_inspect_viewand placing collision-free dimensions one by one withsw_drawing_add_dimensioninstead of cluttered auto-dimension dumps), in-place revision on the same.SLDDRWsheet, manufacturing notes, and 200 DPI PNG + PDF +.SLDDRWexport.Autonomous
jobs/Workflow & 7-Angle Visual Analysis: Drop a.SLDPRT/.STEP/.IGESpart intojobs/parcadan_teknik_resim/for automatic 7-view viewport inspection (Isometric,Front,Back,Top,Bottom,Right,Left) and a structured drawing plan, or drop a.PDF/.PNG/.JPGdrawing intojobs/teknik_resimden_parca/to generate a verified dimension table and build the parametric 3D model step by step.Sheet Metal & Laser DXF Workflow:
Base Flange,Edge Flange,Hem, bend inspection (K-factor, thickness, bend radius), flat-pattern drawing views with bend notes, and clean Layer-0 1:1 laser-ready DXF export.Visual Checkpoint Verification: High-resolution viewport screenshots (
sw_capture_viewport) and 200 DPI drawing previews enable multimodal AI agents to visually verify geometry and drawing readability at every step.
Related MCP server: solidworks-mcp
Visual Examples
Parametric 3D Model (Live Viewport) | Auto-Generated A3 Technical Drawing |
|
|
Architecture
flowchart LR
AI["AI Client (Antigravity / Claude / Cursor)"] <-->|MCP stdio JSON-RPC| PY["Python MCP Server\nserver.py + mcp_server/"]
PY <-->|Persistent STA NDJSON| CS["C# Interop Bridge\nbridge/bin/sw_bridge.exe"]
CS <-->|COM / SolidWorks API| SW["Live SolidWorks 2025"]Python layer (
server.py,mcp_server/): Exposes 40+ strongly typed MCP tools and renders PDF drawings to 200 DPI PNGs via PyMuPDF (fitz).C# STA bridge (
bridge/*.cs): Runs as a persistent single-threaded apartment (STA) subprocess communicating over newline-delimited JSON (NDJSON) for fast, reliable SolidWorks COM interop without per-call startup overhead.Engineering rules (
rules/): Structured modeling, drawing, and autonomous file-based workflow specifications (modeling_rules.md,drawing_rules.md,autonomous_workflow.md).
Tool Overview
Category | Tools |
Session & Inspection |
|
Parametric Sketching |
|
3D Solid Features |
|
Technical Drawings |
|
Sheet Metal |
|
Prerequisites
OS: Windows 10 / 11 (64-bit)
CAD: SolidWorks installed locally (tested on SolidWorks 2025)
Python: 3.11 or newer
.NET Framework: Built-in Windows 64-bit
csc.exe(C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe)
Installation
1. Clone the repository
git clone https://github.com/igokmen433/solid-mcp-studio.git
cd solid-mcp-studio2. Set up the Python virtual environment
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .3. Build the C# SolidWorks Interop Bridge
Note: SolidWorks Interop DLLs (
SolidWorks.Interop.sldworks.dll,SolidWorks.Interop.swconst.dll) are proprietary to Dassault Systèmes and are intentionally excluded from this repository. The build script automatically locates them from your local SolidWorks installation and compilesbridge\bin\sw_bridge.exe.
powershell -ExecutionPolicy Bypass -File .\bridge\build_bridge.ps1Connecting to an MCP Client
solid-mcp-studio uses standard MCP (stdio), so it works with Antigravity, Claude Code, OpenAI Codex CLI, Claude Desktop, Cursor, and any other MCP-compatible client on Windows.
Antigravity / Claude Desktop / Cursor (mcp.json)
Add the server to your MCP client configuration (see mcp_config.example.json):
{
"mcpServers": {
"solidworks-cad-mcp": {
"command": "C:/path/to/solid-mcp-studio/.venv/Scripts/python.exe",
"args": [
"C:/path/to/solid-mcp-studio/server.py"
]
}
}
}Claude Code
claude mcp add solidworks-cad-mcp -- C:/path/to/solid-mcp-studio/.venv/Scripts/python.exe C:/path/to/solid-mcp-studio/server.pyOpenAI Codex CLI (~/.codex/config.toml)
[mcp_servers.solidworks-cad-mcp]
command = "C:/path/to/solid-mcp-studio/.venv/Scripts/python.exe"
args = ["C:/path/to/solid-mcp-studio/server.py"]💡 Automatic Engineering Rules: Pre-configured instruction files are included for all major agents —
GEMINI.md(Antigravity / Gemini),CLAUDE.md(Claude Code), andAGENTS.md(OpenAI Codex / Cursor).
Verification Tests
With SolidWorks running (or closed — the bridge can launch it automatically):
.\.venv\Scripts\python.exe tests\test_phase1_bridge.py
.\.venv\Scripts\python.exe tests\test_phase2_modeling.py
.\.venv\Scripts\python.exe tests\test_phase3_drawing.pyFor sheet metal parts, pass one or more .SLDPRT files:
.\.venv\Scripts\python.exe tests\test_sheet_metal_live.py path\to\your_sheet_metal_part.SLDPRTProject Structure
solid-mcp-studio/
├── server.py # MCP server entrypoint
├── mcp_server/ # Python MCP tool registrations & NDJSON bridge client
├── bridge/ # C# SolidWorks COM interop bridge source & build script
├── rules/ # Modeling, drawing & autonomous workflow rules
├── AGENTS.md / CLAUDE.md / GEMINI.md # Agent instruction files (Codex, Claude Code, Antigravity)
├── docs/ # Detailed Turkish guide & visual showcase assets
├── jobs/ # Drop-in workspace for autonomous CAD <-> Drawing jobs
├── tests/ # Live verification scripts (Phases 1–3 & Sheet Metal)
├── pyproject.toml
├── mcp_config.example.json
└── LICENSELicense
This project is licensed under the MIT License — see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, check, and export parametric CAD models in your ForgeCAD Projects from your AI agent.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to control a running SOLIDWORKS session through its COM API, with tools for sketching, feature creation, assemblies, and visual feedback via screenshots.22Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to build, measure, verify, and correct parametric SolidWorks parts and assemblies locally via the COM API, supporting operations like sketching, extruding, modeling, dimensioning, material assignment, export, and assembly mating.MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to drive an already-running SOLIDWORKS session over its COM API, so it can build sketches, solid features, reference geometry, assemblies, mates, and engineering drawings, then inspect the result through topology listings, mass properties, measurements, and screenshots returned as images.2Apache 2.0
- FlicenseBqualityCmaintenanceEnables AI agents to drive SolidWorks for parametric modelling, aerospace part generation, sheet metal, weldments, assemblies, drawings, simulation, inspection, and file export. It provides approval-gated operations, verification tools, and journaling for safe, recoverable design automation.94-

