原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Onshape

作者:gpambrozio版本 0.3.0i★ –i在你的电脑上运行
注册名称io.github.gpambrozio/onshape

安装

概览

作者提供的说明(英文原文)

Drive Onshape CAD from an assistant: documents, sketches, solid features, assemblies and exports.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公
  • 你需要填写:ONSHAPE_ACCESS_KEY, ONSHAPE_SECRET_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: ONSHAPE_ACCESS_KEY, ONSHAPE_SECRET_KEY, ONSHAPE_MCP_OUTPUT_DIR

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "onshape": {
      "command": "npx",
      "args": [
        "-y",
        "@gpambrozio/onshape-mcp"
      ],
      "env": {
        "ONSHAPE_ACCESS_KEY": "your-value",
        "ONSHAPE_SECRET_KEY": "your-value",
        "ONSHAPE_MCP_OUTPUT_DIR": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add onshape --env ONSHAPE_ACCESS_KEY=your-value --env ONSHAPE_SECRET_KEY=your-value --env ONSHAPE_MCP_OUTPUT_DIR=your-value -- npx -y @gpambrozio/onshape-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "onshape": {
      "command": "npx",
      "args": [
        "-y",
        "@gpambrozio/onshape-mcp"
      ],
      "env": {
        "ONSHAPE_ACCESS_KEY": "your-value",
        "ONSHAPE_SECRET_KEY": "your-value",
        "ONSHAPE_MCP_OUTPUT_DIR": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "onshape": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gpambrozio/onshape-mcp"
      ],
      "env": {
        "ONSHAPE_ACCESS_KEY": "your-value",
        "ONSHAPE_SECRET_KEY": "your-value",
        "ONSHAPE_MCP_OUTPUT_DIR": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • ONSHAPE_ACCESS_KEY 机密 env
    Onshape API access key. Optional: the server signs in through the browser when this is not set.
  • ONSHAPE_SECRET_KEY 机密 env
    Onshape API secret key, paired with ONSHAPE_ACCESS_KEY.
  • ONSHAPE_MCP_OUTPUT_DIR env
    Directory for exported STL/STEP files and renders. Defaults to the working directory.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 gpambrozio 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3542 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3542 个服务器的 75% 更新
  • 基础检查结果等于或优于此分类中其他 3542 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Onshape 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:ONSHAPE_ACCESS_KEY, ONSHAPE_SECRET_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.0)于10天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT7天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Onshape MCP server

Drive Onshape CAD from an AI assistant. 93 tools for documents, part studios, sketching, solid features, assemblies, drawings, measurement and export — and no setup beyond installing it: the first tool call that needs Onshape opens a browser and asks you to connect.

"Make a 60 × 40 × 10 mm bracket with 4 mm mounting holes and 2 mm fillets, then show me a render"

The assistant sketches it, extrudes it, fillets the edges, measures the result, renders it back into the conversation, and exports an STL you can print.

Install

Claude Code

claude mcp add onshape -- npx -y @gpambrozio/onshape-mcp

Claude Desktop — download onshape-mcp- .mcpb from the latest release and double-click it. Nothing else to install.

Cursor, VS Code, Windsurf, Zed and other MCP clients — add the server to the client's MCP config:

{

"mcpServers": { "onshape": { "command": "npx", "args": ["-y", "@gpambrozio/onshape-mcp"] } } }

The file differs per client: ~/.cursor/mcp.json (Cursor), .vscode/mcp.json (VS Code), ~/.codeium/windsurf/mcp_config.json (Windsurf), ~/.config/zed/settings.json under context_servers (Zed).

Node 20 or newer is required. npx fetches the package on first run.

Signing in

Nothing to configure. The first tool call that needs Onshape starts a sign-in and asks your client to show you the link; clients that support MCP's URL elicitation render it as a prompt, and the rest get the URL in the reply. The page that opens links straight to the key page for your Onshape stack and takes the pasted pair; tick Read, Write and Delete when you create the key so every tool here works. Keys are verified against Onshape, then stored in your OS keychain.

Your credentials never pass through the assistant, the model or this project's authors — the exchange happens between your browser and a server bound to 127.0.0.1 in this process, which is exactly why MCP has URL elicitation.

Other ways in, if you prefer:

  • `onshape_login` — start the same flow deliberately.
  • `onshape_set_api_key` — paste a key pair you already have.
  • OAuth 2.0 — onshape_login with method: "oauth", for an app you registered at the Onshape developer portal with redirect URL http://localhost:8471/oauth/callback. Tokens refresh automatically.
  • Environment variables — set ONSHAPE_ACCESS_KEY and ONSHAPE_SECRET_KEY for unattended installs, and ONSHAPE_MCP_AUTO_LOGIN=0 to stop the server ever opening a browser.

An existing onshape-cli credential at ~/.onshape/credentials.json is picked up automatically.

onshape_auth_status shows what is in use (redacted); onshape_logout forgets it.

Tools

AreaTools
Sign-inlogin, login_status, set_api_key, auth_status, logout
Documentslist_documents, search_documents, get_document, get_document_summary, create_document, update_document, delete_document, get_workspaces, get_elements, find_part_studios, list_versions, create_version, delete_element
Part studioscreate_part_studio, get_features, get_feature_specs, get_sketch_info, get_body_details, get_parts, mass_properties, measure, clearance, validate_part_studio, add_feature, update_feature, delete_feature, rollback, eval_featurescript
Sketchingsketch_rectangle, sketch_circle, sketch_line, sketch_circle_axis, create_sketch, sketch_candy_cane_path
Solidsextrude, hole, thicken, revolve, sweep, fillet, chamfer, shell, draft, boolean, boolean_union, mirror, linear_pattern, circular_pattern, offset_plane
Geometryget_edges, find_circular_edges, find_edges_by_feature
Variablesget_variables, set_variable, get_configuration, encode_configuration
Exportexport_stl, export, shaded_view, get_thumbnail, thumbnail_info
Assembliescreate_assembly, get_assembly, insert_instance, delete_instance, transform_instance, get_assembly_features, assembly_mate_connector, assembly_mate, assembly_relation, assembly_group, assembly_add_feature, update_assembly_feature, delete_assembly_feature, get_mate_values, set_mate_values, get_bom, assembly_mass_properties
Drawingscreate_drawing, get_drawing_views, export_drawing
Feature studioscreate_feature_studio, get_feature_studio, set_feature_studio, get_feature_studio_specs
Metadataget_metadata, set_metadata
Escape hatchrequest

All names are prefixed onshape_, and every tool returns {"ok": true, "result": …} or {"ok": false, "error": …, "detail": …}.

Worth knowing:

  • Units are inches and degrees throughout, except STL exports, which are millimetres by default because that is what slicers assume.
  • Feature tools validate by default. Onshape answers 200 for a feature that fails to regenerate, so each tool re-reads the feature state and fails loudly instead. update_feature also fails when the edit puts another feature into ERROR; errors that were already there before the edit are listed in validation.preexistingErrors instead. Pass validate: false to skip it.
  • Assemblies: assembly_mate joins Part Studio mate connectors directly ({path: [instance id], connector: "FabC_0.mcPinion"}, as get_assembly lists them), insert_instance takes fixed: true to ground an instance, and assembly_relation couples mates as gear, rack and pinion, screw or linear. set_mate_values drives mates in inches and degrees and fails when Onshape ignores a value, which it does for mates with limits enabled.
  • Part Studio writes acknowledge applied changes. Creation replies include creationApplied: true; updates include updateApplied: true after the POST completes. Validation errors do not undo the change: inspect the model before retrying. A failed POST does not establish whether the server applied a change. Large replies retain the feature ID and validation outcome inline, with the full response in saved_to. If that file cannot be saved, responseStorageError reports the storage problem without changing the write/validation outcome. validate: false is reported as validationSkipped: true.
  • Renders come back as images. shaded_view and get_thumbnail return the PNG inline as well as writing it, so the model can see the part.
  • Big reads spill to disk. Anything over ONSHAPE_MCP_MAX_RESPONSE_BYTES (default 200 kB) is written to a file and summarised, keeping a feature tree from swallowing the context window.
  • onshape_request reaches any REST endpoint the dedicated tools miss.

Configuration

Every setting is optional.

VariableEffect
ONSHAPE_ACCESS_KEY, ONSHAPE_SECRET_KEYUse this key pair instead of signing in
ONSHAPE_BASE_URLOnshape API host (default https://cad.onshape.com)
ONSHAPE_OAUTH_CLIENT_ID, ONSHAPE_OAUTH_CLIENT_SECRETOAuth app to sign in with, instead of an API key
ONSHAPE_MCP_AUTO_LOGIN0 stops tool calls from starting a browser sign-in
ONSHAPE_MCP_NO_BROWSER1 never launches a browser; the URL is reported instead
ONSHAPE_MCP_SIGNIN_WAIT_MSHow long a call waits for sign-in (default 120000)
ONSHAPE_DOC, ONSHAPE_WS, ONSHAPE_ELEMDefault target; these arguments become optional when set
ONSHAPE_MCP_OUTPUT_DIRWhere relative export paths land (default: working directory)
ONSHAPE_MCP_MAX_RESPONSE_BYTESResponse size before spilling to a file (default 200000)
ONSHAPE_MCP_CONFIGCredential file path (default ~/.onshape-mcp/credentials.json)
ONSHAPE_TIMEOUT_MSPer-request timeout (default 120000)

Secrets go to the OS keychain (service onshape-mcp) when one is available, and the config file then holds only non-secret metadata. Without a keychain the file holds the secret and is written 0600 inside a 0700 directory.

Onshape account limits

These come from Onshape, not from this server:

  • Free accounts can only create public documents — pass public: true to onshape_create_document.
  • Deleting needs a key with delete permission. Without it Onshape answers 403 Invalid API key state; re-create the key at cad.onshape.com/user/developer/apiKeys with Delete ticked.
  • An instance can only be fixed when it is inserted. There is no public call to fix or unfix one later; insert it again with fixed and delete the old one.
  • Mate values need API version 10. Older versions accept a write and ignore it; get_mate_values and set_mate_values use v10.
  • The variable-table endpoint 404s on some accounts. onshape_set_variable and onshape_get_variables fall back to assignVariable features, which work everywhere; result.route / result.source says which path was taken. Setting a name that already has a Variable feature rewrites that feature in place.

Development

npm install

npm run check # type-check npm test # unit tests, no network and no browser npm run build npm run bundle # build the Claude Desktop .mcpb

node scripts/smoke.mjs # live read-only check against your account node scripts/smoke.mjs --write # also builds a throwaway part node scripts/smoke.mjs --assembly # rack and pinion assembly in a scratch document

Layout: src/auth (credential store, keychain, login flows, OAuth, elicitation), src/api (REST wrappers), src/builders (Onshape BTM feature payloads), src/tools (the MCP surface), src/server.ts (registration and the auth gate).

Contributions welcome — see CONTRIBUTING.md. Security reports: SECURITY.md.

Licence

MIT. Portions derived from onshape-cli — see NOTICE.

Not affiliated with, endorsed by, or supported by Onshape or PTC. "Onshape" is a trademark of PTC Inc.

问 PopNx