onshape

v0.3.0
io.github.gpambrozio/onshape Checked 3 days ago Published 1 month ago

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

Values you need

VariableWhat it is
ONSHAPE_ACCESS_KEYoptional secret Onshape API access key. Optional: the server signs in through the browser when this is not set.
ONSHAPE_SECRET_KEYoptional secret Onshape API secret key, paired with ONSHAPE_ACCESS_KEY.
ONSHAPE_MCP_OUTPUT_DIRoptional Directory for exported STL/STEP files and renders. Defaults to the working directory.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add onshape -- npx -y @gpambrozio/onshape-mcp@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "onshape": {
      "args": [
        "-y",
        "@gpambrozio/onshape-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "onshape": {
      "args": [
        "-y",
        "@gpambrozio/onshape-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "onshape": {
      "args": [
        "-y",
        "@gpambrozio/onshape-mcp@0.3.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.onshape]
command = "npx"
args = ["-y", "@gpambrozio/onshape-mcp@0.3.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: onshape_login, onshape_login_status, onshape_set_api_key, onshape_auth_status, onshape_logout, onshape_list_documents, onshape_search_documents, onshape_get_document, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json