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: Onshape MCP Server
🚀 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.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gilfoyle19/onshapemcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server