Onshape MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Onshape MCP ServerGenerate a spur gear with 30 teeth"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Onshape MCP Server
Enhanced Model Context Protocol (MCP) server for programmatic CAD modeling with Onshape.
β¨ Features
π Document Discovery - Search and list projects, find Part Studios
π Parametric Sketching - Create sketches with rectangles, circles, lines
βοΈ Feature Management - Extrudes, fillets, chamfers, feature trees
π© Mechanical Components - Create gears with customizable parameters
π― Edge Query & Discovery - Find edges by radius, type, or feature
π Variable Tables - Read/write parametric design variables
π€ Full Automation - Build complete CAD workflows
Related MCP server: cadkit
π Quick Start
Prerequisites
Python 3.10+
Onshape account with API access
Setup
git clone https://github.com/clarsbyte/onshape-mcp.git
cd onshape-mcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e .Get API Keys
Go to Onshape Developer Portal
Create API key β copy Access Key and Secret Key
Configure Gemini CLI
Add to your Gemini CLI configuration file (typically ~/.config/gemini-cli/settings.json):
{
"mcpServers": {
"onshape": {
"command": "/absolute/path/to/onshape-mcp/venv/bin/python",
"args": ["-m", "onshape_mcp.server"],
"env": {
"ONSHAPE_ACCESS_KEY": "your_access_key",
"ONSHAPE_SECRET_KEY": "your_secret_key"
}
}
}
}Usage
onshape-mcp # Run serverAsk Gemini CLI: "Create a mechanical part with variable dimensions""
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Composable APIs for document extraction, image transformation, and document & sheet generation.
Geometry and CAD file metadata extraction for STL, OBJ, PLY, PCD, LAS/LAZ, glTF/GLB.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automateβ¦
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables programmatic CAD modeling with Onshape's REST API, offering 45 tools for parametric sketches, feature management, assemblies, analysis, variables, and exports.45134-
- AlicenseBqualityBmaintenanceAn MCP server for parametric part modeling in Onshape, producing fully-defined, variable-driven sketches and features. It enables LLMs to create editable CAD models using semantic selection and geometrically grounded constraints.33MIT
- AlicenseNot gradedqualityCmaintenanceEnables building and modifying parametric solid models in a local SOLIDWORKS installation via the COM API.MIT
- FlicenseNot gradedqualityBmaintenanceEnables control of a live SOLIDWORKS session through the Windows COM API, providing native sketch, feature, body, reference-geometry, view, probe, and export operations, along with transactional CAD plans, parametric sketches, multibody tools, and deterministic raster-to-sketch vectorization pipelines.-