Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Model, measure and verify parametric parts and assemblies in a running SolidWorks (Windows).
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"solidworks": {
"command": "uvx",
"args": [
"solidworks-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add solidworks -- uvx solidworks-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"solidworks": {
"command": "uvx",
"args": [
"solidworks-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"solidworks": {
"type": "stdio",
"command": "uvx",
"args": [
"solidworks-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 hjbaard 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.19.0)于5天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Thth
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Call before you post: ships a draft to Threads/Bluesky/Mastodon only after a person approved it.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Let an AI agent (Claude, or any other MCP client) model real parametric parts and assemblies in your own SolidWorks — and check its own work. Every modelling call returns the measured volume, mass and bounding box, so the agent can compare the result with the spec and correct itself instead of guessing that it "looks about right".
Built by the tools themselves: a mounting bracket (every step checked against a hand calculation), an M10 bolt with a real thread, a revolved + shelled vase, a swept pipe, a lofted + shelled horn.
width@Sketch1), so the part stays editable, in SolidWorks or through the agent.{ok: false, error} with the cause, never silently wrong geometry.Claude Code:
claude mcp add solidworks -- uvx solidworks-mcp
Claude Desktop (claude_desktop_config.json) or any other client:
{
"mcpServers": { "solidworks": { "command": "uvx", "args": ["solidworks-mcp"] } } }
It is also listed in the official MCP Registry as io.github.hjbaard/solidworks-mcp.
Design a 100 × 80 × 8 mm mounting plate with a Ø16 mm centre bore, four
counterbored M5 holes 12 mm from the corners and R5 corners. Check the
volume against your own calculation, then export a fine STL.
The server hands every MCP client short modelling guidelines when it connects (conventions, verify each step, known pitfalls). The full guide is the resource solidworks://guide: recipes for holes, ribs, threads and assemblies, 3D-print advice, and how to reverse-engineer a part from a mesh (STL/3MF). The same text is in src/solidworks_mcp/guide.md.
.prtdot, and set that file as the part template under Tools > Options > System Options > Default Templates. uvx solidworks-mcp --selftest
It builds a few small parts, compares each with a hand calculation and closes them unsaved. Please paste its output in a compatibility report, whether it worked or not.
Status: early (0.x). It works end-to-end, but tool names and conventions may still change. See CHANGELOG.md.
uvx solidworks-mcp --selftest shows your SolidWorks release, language and templates, and which tool areas work. Add its output to a bug report.GetActiveObject and does not launch one.gen_py folder. Let it finish; if it gets into a bad state, delete the gen_py cache and retry. Early binding is mandatory on this build (see Architecture).scripts/introspect_api.py to inspect your installed typelib.Clone the repository, then install it editable into a venv:
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .[dev]
To run the MCP server from this checkout instead of via uvx, point your client at the venv's Python:
{
"mcpServers": { "solidworks": { "command": "C:\\path\\to\\SolidWorks-MCP\\.venv\\Scripts\\python.exe", "args": ["-m", "solidworks_mcp.server"] } } }
With SolidWorks open:
.\.venv\Scripts\python.exe scripts\probe_connection.py # M0
.\.venv\Scripts\python.exe scripts\m1_block.py # M1 .\.venv\Scripts\python.exe scripts\m2_parametric.py # M2 .\.venv\Scripts\python.exe scripts\test_mcp_server.py # M3 (full MCP loop over stdio) .\.venv\Scripts\python.exe scripts\m5_demo_bracket.py # M5 (3D-print bracket, every step verified)
scripts/introspect_api.py regenerates/inspects the installed typelib and prints verified enum values — run it if SolidWorks is upgraded and signatures change.
.\.venv\Scripts\python.exe -m pytest # all tests
.\.venv\Scripts\python.exe -m pytest -m "not solidworks" # fast unit layer, no SolidWorks
Two layers: pure unit tests (units, selector/direction parsing, polygon cleaning, the component-placement maths, and that every MCP tool forwards its arguments to the right session method) run anywhere; integration tests (solidworks marker) drive a running SolidWorks and verify each feature's volume — or each component's placement — against a hand calc. They auto-skip if SolidWorks isn't reachable.
The server speaks MCP over stdio.
| Tool | Purpose |
|---|---|
get_status | Is SolidWorks reachable? revision, server version, active/current part |
new_part | Create a new empty part (becomes current) |
add_box(width_mm, height_mm, depth_mm, name) | Sketch rectangle + extrude; returns mass properties |
add_cylinder(diameter_mm, height_mm, name) | Cylinder by revolving a profile 360° about an axis (Y axis) |
add_disc(diameter_mm, thickness_mm, name, x_mm, y_mm) | Disc/puck/flange: circle extruded along +Z, centred at (x, y) (holes/patterns compose) |
add_cone(bottom_diameter_mm, top_diameter_mm, height_mm, name) | Cone/frustum by revolve (top Ø = 0 → full cone) |
add_revolved_profile(profile_mm, angle_deg, name, corner_radii_mm, axis_mm) | Revolve any closed (radius, height) profile about the Y axis (shafts, vases, rings), or [x, y] points about any line axis_mm on the Front plane; corner_radii_mm rounds its edges |
add_swept_pipe(path_mm, diameter_mm, bend_radius_mm, name, smooth) | Sweep a round profile along a 2D path with rounded bends (pipes, tubes, rods), or along a spline through the points with smooth=True |
add_swept_profile(profile_mm, path_mm, bend_radius_mm, name, corner_radii_mm) | Sweep any closed cross-section along a 2D path (rails, gaskets, trim, channels); corner_radii_mm rounds the cross-section |
add_lofted_solid(profiles_mm, heights_mm, name) | Loft/blend 2+ polygon or round profiles on stacked parallel planes (transitions, adapters, a leg thick at the knee) |
loft_sketches(sketches, name) | Loft through 2+ closed sketches on any planes, in order, so a loft runs in any direction |
add_rib(start_mm, end_mm, toward_mm, thickness_mm, z_mm, name) | Straight rib / gusset in a plane parallel to Front at z_mm, grown toward toward_mm until it meets the part (L-bracket gussets) |
add_extruded_profile(points_mm, depth_mm, name, corner_radii_mm, rotate_deg, about_mm, draft_deg, merge) | Extrude any closed polygon [[x,y],…] (brackets, sections); corner_radii_mm rounds its corners with real sketch fillets, each radius a dimension; rotate_deg turns it about a pivot; draft_deg tapers its walls; merge=False keeps a separate body |
add_plane(base, offset_mm, angle_deg, about, name) | A reference plane offset from a plane, or turned about a model axis; its offset or angle a dimension; gives its origin and axes |
add_extruded_profile_on_plane(points_mm, plane, depth_mm, reverse, name, corner_radii_mm, draft_deg, merge) | Extrude a polygon drawn on any plane (3D points on it), merged with the part |
list_bodies() | The part's solid bodies: name, volume, bounding box |
| combine_bodies(operation, main, tools, name) | Add, su
只显示了开头部分;其余内容请在仓库中阅读