Skip to main content
Glama

solidworks-mcp

一个让 AI 助手直接驱动 SolidWorks 2022 的 MCP 服务器——涵盖草图、特征(拉伸/切除/旋转/圆角/倒角/抽壳/阵列)、驱动尺寸和方程式、导出以及检查质量属性。

仅限 Windows。 SolidWorks 自动化通过 Windows COM 实现——这必须在安装并授权了 SolidWorks 2022 的同一台机器上运行。

快速开始(推荐)

下载最新版本并运行 setup.bat——它会自动检测你的 Python 和 SolidWorks 安装,安装依赖项,并配置你的客户端。一键完成。

或者手动操作:

powershell -ExecutionPolicy Bypass -File setup.ps1

Related MCP server: SolidWorks MCP Server

客户端支持

此仓库为两个 AI 客户端提供相同的 MCP 服务器:

客户端

目录

配置格式

Claude Desktop

claude/

claude_desktop_config.json

opencode

opencode/

opencode.jsonc

每个目录都有自己的 README,其中包含特定于客户端的设置说明以及底层相同的 Python 源代码。

solidworks-mcp/
├── README.md                    ← you are here
├── claude/                      ← Claude Desktop
│   ├── README.md
│   ├── claude_desktop_config.example.json
│   ├── server.py
│   ├── connection.py
│   ├── requirements.txt
│   ├── diagnose.py
│   └── tools/
└── opencode/                    ← opencode
    ├── README.md
    ├── opencode_config.example.jsonc
    ├── server.py
    ├── connection.py
    ├── requirements.txt
    ├── diagnose.py
    └── tools/

快速开始

选择你的客户端并按照其 README 操作:

两者都需要相同的前置条件:Python 3.10+ 和 Windows 上的 SolidWorks 2022。在相应的目录中使用 pip install -r requirements.txt 安装依赖项。

工作原理

SolidWorks 通过 COM 原生暴露其整个 API——无需加载项。此服务器通过 pywin32 附加到正在运行的 SolidWorks 实例(或启动一个),并暴露约 30 个涵盖完整建模工作流程的工具。

API 枚举常量会从你安装的 SolidWorks 类型库中实时获取,因此保证与你的安装匹配。

请参阅特定于客户端的 README 以获取完整工具列表、示例工作流程和已知问题。

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables LLMs to automate SolidWorks (open/save parts, modify dimensions, export STEP) via COM, and optionally generate geometry using build123d code-CAD with PNG previews.
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables Claude to create and manipulate SolidWorks CAD models through natural language commands, automating part creation, sketching, and extrusion.
    8
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.

  • AI-callable calculators and engineering models with real formulas. No hallucinated math.

  • DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.

View all MCP Connectors

Latest Blog Posts

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/blussyya/solidworks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server