ares_onshape_local
Click on "Deploy 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., "@ares_onshape_localPrepare a new Onshape extrude feature JSON from the latest sketch receipt."
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.
ARES Onshape Local
Local MCP tools and the existing onshape-native-cad skill for native editable Onshape CAD through a
signed-in browser or session-authenticated official API Explorer. Supports stdio MCP clients including
Codex, Gemini CLI, Google Antigravity and Claude Code.
The server makes zero outbound Onshape requests. It searches saved responses, prepares standard native feature JSON, tracks recipe operations and checks saved results. Your agent or operator executes CAD requests using its own browser tools and Onshape session. Installing this package supplies neither.
This route avoids the annual API-call allowance, not all limits. Endpoint throttles still apply. Successful API-key/private OAuth requests and API Explorer requests using those modes consume allocation. See Onshape's accounting rules.
Install
Use Python 3.12 or newer. Clone this repository and create a dedicated environment:
git clone https://github.com/ARES-23247/ares-onshape-local.git
Set-Location ares-onshape-local
py -3.12 -m venv .venv
& ./.venv/Scripts/python.exe -m pip install -r requirements.txt
& ./.venv/Scripts/python.exe scripts/configure_clients.py --dry-run
& ./.venv/Scripts/python.exe scripts/configure_clients.pyOn Linux/macOS use python3 -m venv .venv and .venv/bin/python for the Python commands.
The default installer links the same skill into Gemini, Antigravity and Claude Code, preserving unrelated
settings and server definitions. Changed JSON files are backed up beside their originals; backups may
contain account secrets and must remain local. It stops rather than overwrite a skill/server pointing at
another installation. Review --dry-run first. Client trust/approval policies are preserved.
Restart/reload MCP and skill discovery in each client. Do not globally trust tools or enable API-key or FeatureScript servers to work around a connection failure.
Client | Skill location | MCP registration |
Gemini CLI |
|
|
Antigravity IDE |
|
|
Antigravity 2.0 |
| Same local MCP configuration |
Claude Code |
| Official |
Codex |
| Official |
Select clients with --clients; the default is Gemini, Antigravity and Claude. To link the Codex skill:
& ./.venv/Scripts/python.exe scripts/configure_clients.py --clients codex
codex mcp add ares_onshape_local -- <absolute-python-path> <absolute-path-to-src/server.py>For a working local installation, use --skill-source, --python, --server and --workspace to
link/register that installation without copying the skill or replacing its source. Claude Code must be
installed for its registration step. Antigravity CLI uses another skill path: install the same folder in
~/.gemini/antigravity-cli/skills and register stdio in that client if you use that surface.
See Gemini,
Antigravity and
Claude Code discovery documentation.
Related MCP server: Onshape MCP Server
Select a workspace
With no configuration, calculators, recipe discovery and separate-sandbox native recipe preparation
remain available. Named-design tools require a registry. Copy examples/onshape-project.example.json
to your CAD workspace as onshape-project.json, replace synthetic document/workspace IDs with
actual ones and keep it private. Plans, receipt directories, runtime output and event inbox paths must
remain inside that workspace.
& ./.venv/Scripts/python.exe scripts/configure_clients.py --workspace <CAD-workspace> --project <CAD-workspace>/onshape-project.jsonOr configure the stdio command directly:
{
"mcpServers": {
"ares_onshape_local": {
"command": "<absolute Python executable with MCP installed>",
"args": ["<absolute path to src/server.py>"],
"env": {
"ARES_ONSHAPE_WORKSPACE": "<absolute CAD workspace>",
"ARES_ONSHAPE_PROJECT": "<absolute local onshape-project.json>"
}
}
}
}If moving an existing registration to another server, reconcile that client entry explicitly; the installer
preserves conflicts. Enterprise-specific Onshape hostnames are not supported in this version: receipt
routes are restricted to cad.onshape.com.
Use
Read
workflow_statusand the owningdesign_context. Search snapshots and lookup exact immutable GET identities before new model reads. Workspace reads always miss the exact cache.Save completed session reads as credential-free JSON receipts. Register with explicit operator confirmation; the server cannot independently prove their browser origin.
Save a fresh workspace feature-list receipt and call
prepare_native_change. Reobserve the live head immediately before submitting its prepared body through signed-in Explorer.Save fresh readbacks and check native feature states, geometry and required motion in Onshape. A successful POST or healthy saved state alone does not prove mechanical behavior or release readiness.
See receipts and tools, native recipe scope and the Onshape skill.
sync_notifications ingests saved, credential-free webhook events from a configured local directory.
It deduplicates events and queues affected registered documents for refresh, with no outbound network.
A public HTTPS receiver, authentication and event delivery must be provided separately.
Optional geometry previews
The spacer, L mounting bracket and four-hole plate generate bounded build123d FEASIBILITY previews when local geometry is authorized for your project:
py -3.12 -m venv .venv-build123d
& ./.venv-build123d/Scripts/python.exe -m pip install -r requirements-build123d.txtUse ARES_ONSHAPE_CAD_PYTHON for another compatible isolated Python executable. The worker accepts
only these three recipes, rejects arbitrary code and blocks Python socket operations. STEP/STL are
temporary references or experimental prints. Final custom CAD needs native Onshape features and actual
regeneration. The compiler profile is pinned and rejects unvalidated Onshape revisions.
Validate
& ./.venv/Scripts/python.exe -m unittest discover -s src -p "test_*.py" -v
& ./.venv/Scripts/python.exe scripts/verify_mcp.py
& ./.venv-build123d/Scripts/python.exe -m unittest discover -s src -p "test_*.py" -v
& ./.venv/Scripts/python.exe scripts/verify_mcp.py --geometryThe last two commands require the optional build123d environment. Tests skip geometry when unavailable. Protocol verification starts the actual server over stdio in an isolated synthetic workspace and makes no Onshape calls. Anonymized historical geometry fixtures are test evidence, not current browser authentication, live CAD regeneration, assembly motion or physical fit verification.
Public source excludes robot plans, live receipts, account settings, secrets, private CAD and runtime outputs. Preserve those exclusions when contributing.
This server cannot be deployed
Maintenance
Related MCP Connectors
Free agent-service discovery, OpenAPI document checks, and receipt verification. No API key needed.
Run 3D CAD operations, pipelines, parametric models and STEP conversions on CAD Cloud with a key
Trust Layer for AI work. Give your AI hands. Every run returns a verifiable receipt. No key needed.
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Related MCP Servers
- FlicenseBqualityAmaintenanceEnables programmatic CAD modeling with Onshape's REST API, offering 45 tools for parametric sketches, feature management, assemblies, analysis, variables, and exports.48147-
- FlicenseNot gradedqualityDmaintenanceEnables programmatic CAD modeling with Onshape through document discovery, parametric sketching, feature management, and gear creation.-
- AlicenseNot gradedqualityCmaintenanceEnables Claude Code to drive OnShape CAD through the REST API for parametric modeling, FeatureScript queries, and STL export/verification.MIT
- AlicenseBqualityCmaintenanceEnables OpenAI Codex to drive real Onshape parametric CAD via 69 tools for documents, sketches, features, assemblies, parametric updates, FeatureScript, vision, and export.69MIT