MCPVault

create_sketch_rectangle

MCP tool from Onshape MCP by hedless

Rectangle with optional variable references for width/height

How to use it

create_sketch_rectangle is exposed by the Onshape MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the create_sketch_rectangle tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Onshape MCP

$pip install -e .
FULL ONSHAPE MCP LISTING

Other tools in Onshape MCP (39)

add_assembly_instance

Add a part or sub-assembly instance to an assembly

align_instance_to_face

Align one instance flush against a face of another

check_assembly_interference

Check for overlapping/interfering parts using bounding box detection

create_assembly

Create a new Assembly in a document

create_boolean

Union, subtract, or intersect bodies by deterministic IDs

create_chamfer

Bevel edges by edge IDs with distance (supports variable references)

create_circular_pattern

Repeat features around an axis with count and angle spread

create_cylindrical_mate

Create a slide+rotate mate. First instance moves relative to second.

create_document

Create a new Onshape document

create_extrude

Extrude a sketch with depth, optional variable reference, and operation type

create_fastened_mate

Create a rigid (fastened) mate between two instances

create_fillet

Round edges by edge IDs with radius (supports variable references)

create_linear_pattern

Repeat features along an axis (X/Y/Z) with distance and count

create_mate_connector

Create an explicit mate connector on a face with offsets

create_part_studio

Create a new Part Studio in a document

create_revolute_mate

Create a rotational mate. First instance rotates relative to second.

create_revolve

Revolve a sketch around an axis (X/Y/Z) with angle and operation type

create_sketch_arc

Arc with center, radius, start angle, and end angle

create_sketch_circle

Circle with center point and radius

create_sketch_line

Line from start point to end point

create_slider_mate

Create a linear motion mate. First instance slides relative to second.

create_thicken

Thicken a sketch into a solid with optional midplane/opposite direction

delete_feature

Delete a feature (mate, mate connector, etc.) from an assembly or Part Studio

FeatureScript

Evaluate FeatureScript expressions, get bounding boxes

find_part_studios

Find Part Studios with optional name filtering

get_assembly

Get assembly structure with instances and occurrences

get_assembly_features

Get all features with their state (OK/ERROR/SUPPRESSED)

get_assembly_positions

Get positions, sizes, and bounds of all instances (in inches)

get_body_details

Get face IDs, surface types, normals, and origins for all parts

get_document

Get detailed document information

get_document_summary

Get comprehensive summary with workspaces and elements

get_elements

Get all elements (Part Studios, Assemblies, BOMs) in a workspace

get_face_coordinate_system

Query the outward-facing coordinate system for a specific face

get_parts

Get all parts from a Part Studio

get_variables

Get all variables from a Part Studio variable table

list_documents

List documents with filtering and sorting

search_documents

Search documents by name or description

set_instance_position

Set absolute position (resets rotation). Fails on fixed instances.

transform_instance

Apply a relative transform (inches/degrees). Fails on fixed instances.