SolidWorks MCP Bridge
SolidWorks MCP Bridge 🌉 ⚙️
Model Context Protocol (MCP) 기반 통합 서버 및 브리지로, 로컬 언어 모델(Ollama 경유)을 SolidWorks의 COM API와 연결합니다.
qwen3:8b 및 qwen3:30b-a3b와 같은 LLM이 설계 상태를 검사하고, 피처 트리를 분석하고, 치수를 읽고, 방정식을 조회하고, 질량 물성치를 추출하고, 기술 파일을 자동화되고 구조화된 방식으로 내보낼 수 있습니다.
🎯 프로젝트 범위
레벨 1 (현재 단계 - 읽기): 부품, 어셈블리, 치수, 방정식, 질량 및 FEA 연구에 대한 비파괴 검사.
레벨 2 (향후 단계 - 편집): 치수, 전역 변수의 파라메트릭 수정 및 제어된 재구성.
레벨 3 (향후 단계 - 생성): 2D/3D 스케치, 피처 및 자동화된 매크로 생성.
Related MCP server: solidworks-mcp
📂 프로젝트 구조
LOCAL LLM/
├── requirements.txt # Dependencias Python (mcp, pywin32, pydantic, ollama, etc.)
├── pyproject.toml # Configuración del paquete y testing
├── .env.example # Plantilla de variables de entorno
├── .env # Configuración activa local
├── src/
│ └── sw_bridge/
│ ├── config.py # Carga de configuración (pydantic-settings)
│ ├── logging_config.py # Logging estructurado JSON por sesión
│ ├── server.py # Servidor MCP (fastmcp / stdio / sse)
│ ├── sw_connection/ # Conexión COM a SolidWorks
│ │ ├── connector.py # Singleton y reconexión automática
│ │ ├── exceptions.py # Excepciones tipadas
│ │ └── models.py # Modelos de datos Pydantic
│ └── tools/ # Herramientas de Nivel 1
│ ├── document_tools.py
│ ├── feature_tree_tools.py
│ ├── dimension_tools.py
│ ├── mass_props_tools.py
│ ├── export_tools.py
│ └── fea_tools.py
├── tests/ # Pruebas automatizadas (pytest)
├── scripts/
│ ├── test_tool_calling.py # Validación de llamadas a funciones con Ollama
│ └── smoke_test.py # Smoke test contra SolidWorks
└── docs/ # Especificaciones y resolución de problemas
├── alcance.md
├── tool_schemas.md
└── troubleshooting.md🚀 설치 및 시작
1. 가상 환경 활성화
.\sw-mcp-env\Scripts\activate2. Ollama에서 모델 확인
도구 지원 모델이 준비되어 있는지 확인하세요:
ollama list
ollama show qwen3:8b3. 로컬 LLM으로 도구 호출(Tool Calling) 테스트
.\sw-mcp-env\Scripts\python scripts/test_tool_calling.py4. 테스트 스위트 실행
.\sw-mcp-env\Scripts\pytest tests/ -v5. MCP 서버 시작(stdio 모드)
.\sw-mcp-env\Scripts\python -m sw_bridge.server --transport stdio🛠️ 사용 가능한 도구 (레벨 1)
도구 | 설명 |
| SolidWorks가 COM을 통해 응답하는지 확인합니다. |
| 유형, 경로, 구성 및 저장 상태를 가져옵니다. |
| 세션에 로드된 모든 문서를 나열합니다. |
| 전체 피처 트리(FeatureManager)를 추출합니다. |
| 피처의 정의와 매개변수를 검사합니다. |
| 모델 또는 피처의 숫자 치수를 나열합니다. |
| 방정식 관리자의 방정식과 전역 변수를 읽습니다. |
| 질량(kg), 부피, 무게 중심 및 관성을 계산합니다. |
| 활성 모델을 중립 STEP 형식으로 내보냅니다. |
| 2D 도면 또는 활성 뷰를 PDF로 내보냅니다. |
| 고해상도 스크린샷을 PNG 형식으로 저장합니다. |
| 유한 요소 해석(FEA) 연구를 나열합니다. |
| von Mises 응력 및 안전계수를 조회합니다. |
⚙️ Antigravity / Claude Desktop에서 MCP 서버로 구성
다음 구성을 MCP 클라이언트에 추가하세요:
{
"mcpServers": {
"solidworks-bridge": {
"command": "C:\\Users\\said\\Desktop\\LOCAL LLM\\sw-mcp-env\\Scripts\\python.exe",
"args": ["-m", "sw_bridge.server", "--transport", "stdio"],
"cwd": "C:\\Users\\said\\Desktop\\LOCAL LLM"
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes CAD geometry reasoning over STEP files to LLMs, allowing natural language queries about parts, assemblies, dimensions, holes, and mass properties.
- AlicenseNot gradedqualityBmaintenanceMCP bridge server for SolidWorks that enables AI assistants to control SolidWorks programmatically via COM automation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.1MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that drives SolidWorks 2023+ on Windows, exposing CAD operations like sketching, extrusions, assemblies, and exports through tools for AI assistants like Kimi and Claude.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Said-AER/solidworks-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server