Skip to main content
Glama
Onshape MCP Server

Onshape MCP Server

by gilfoyle19

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

πŸš€ 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

  1. Go to Onshape Developer Portal

  2. 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 server

Ask Gemini CLI: "Create a mechanical part with variable dimensions""

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      B
      maintenance
      Enables programmatic CAD modeling with Onshape's REST API, offering 45 tools for parametric sketches, feature management, assemblies, analysis, variables, and exports.
      48
      166
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Code to drive OnShape CAD through the REST API for parametric modeling, FeatureScript queries, and STL export/verification.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables OpenAI Codex to drive real Onshape parametric CAD via 69 tools for documents, sketches, features, assemblies, parametric updates, FeatureScript, vision, and export.
      69
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to drive Onshape CAD with 87 tools for documents, part studios, sketching, solid features, assemblies, drawings, measurement, and export, including zero-configuration browser sign-in.
      93
      156 npm
      7
      MIT