onshape
v0.3.0Drive Onshape CAD from an assistant: documents, sketches, solid features, assemblies and exports.
Values you need
| Variable | What it is | |
|---|---|---|
ONSHAPE_ACCESS_KEY | optional secret | Onshape API access key. Optional: the server signs in through the browser when this is not set. |
ONSHAPE_SECRET_KEY | optional secret | Onshape API secret key, paired with ONSHAPE_ACCESS_KEY. |
ONSHAPE_MCP_OUTPUT_DIR | optional | 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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