MCP Server

DrapeCut

com.drapecut/drapecut
Design & Creative Science & Engineering Public & reachable MCP 2025-11-25

What this MCP does

Simulates composite-fabric draping on CAD surfaces, compares fibre angles, creates multi-piece layouts, and exports DXF or PDF patterns.

compare_drapes
Compare up to 12 warp angles, sequentially, at one fixed seed and cloth configuration. When omitted, seed is suggested once for the first angle. Results rank by coverage descending, then percentage above lock ascending, then maximum shear ascending. This is a stated comparison rule, not a global optimum. Runs use the requested/preset pitch, never a hidden coarse approximation. Export the chosen result promptly: backend result IDs are temporary.
Input schema
{'type': 'object', 'title': 'compare_drapesArguments', 'required': ['workspace_id', 'mesh_id', 'angles'], 'properties': {'seed': {'anyOf': [{'type': 'array', 'items': {'type': 'number'}, 'maxItems': 3, 'minItems': 3}, {'type': 'null'}], 'title': 'Seed', 'default': None}, 'pitch': {'anyOf': [{'type': 'number', 'exclusiveMinimum': 0}, {'type': 'null'}], 'title': 'Pitch', 'default': None}, 'angles': {'type': 'array', 'items': {'type': 'number'}, 'title': 'Angles', 'maxItems': 12, 'minItems': 1}, 'offset': {'type': 'number', 'title': 'Offset', 'default': 0, 'maximum': 50, 'minimum': -50}, 'mesh_id': {'type': 'string', 'title': 'Mesh Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'fabric_id': {'type': 'string', 'title': 'Fabric Id', 'default': 'carbon-twill-3k'}, 'hole_area': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'null'}], 'title': 'Hole Area', 'default': None}, 'lock_angle': {'anyOf': [{'type': 'number', 'exclusiveMaximum': 90, 'exclusiveMinimum': 0}, {'type': 'null'}], 'title': 'Lock Angle', 'default': None}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'compare_drapesDictOutput', 'additionalProperties': True}
create_layout
Start covering one surface with multiple pieces of the same ply/fabric. This is not a laminate stack. overlap is mm; supplied seeds are laid first and additional pieces fill remaining ground, up to max_pieces. Poll the returned job_id with get_job(kind='layout'); export with layout=true.
Input schema
{'type': 'object', 'title': 'create_layoutArguments', 'required': ['workspace_id', 'mesh_id'], 'properties': {'angle': {'type': 'number', 'title': 'Angle', 'default': 0}, 'pitch': {'anyOf': [{'type': 'number', 'exclusiveMinimum': 0}, {'type': 'null'}], 'title': 'Pitch', 'default': None}, 'seeds': {'anyOf': [{'type': 'array', 'items': {'type': 'array', 'items': {'type': 'number'}, 'maxItems': 3, 'minItems': 3}, 'maxItems': 12, 'minItems': 1}, {'type': 'null'}], 'title': 'Seeds', 'default': None}, 'offset': {'type': 'number', 'title': 'Offset', 'default': 0, 'maximum': 50, 'minimum': -50}, 'mesh_id': {'type': 'string', 'title': 'Mesh Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'overlap': {'type': 'number', 'title': 'Overlap', 'default': 20, 'minimum': 0}, 'fabric_id': {'type': 'string', 'title': 'Fabric Id', 'default': 'carbon-twill-3k'}, 'hole_area': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'null'}], 'title': 'Hole Area', 'default': None}, 'lock_angle': {'anyOf': [{'type': 'number', 'exclusiveMaximum': 90, 'exclusiveMinimum': 0}, {'type': 'null'}], 'title': 'Lock Angle', 'default': None}, 'max_pieces': {'type': 'integer', 'title': 'Max Pieces', 'default': 6, 'maximum': 12, 'minimum': 1}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'create_layoutDictOutput', 'additionalProperties': True}
create_workspace
Create a private two-hour workspace and return its ID and CAD upload page. Start here before loading a sample or importing a user's CAD part. The ID and upload/download links grant access; do not publish them.
Input schema
{'type': 'object', 'title': 'create_workspaceArguments', 'properties': {}}
Output schema
{'type': 'object', 'title': 'create_workspaceDictOutput', 'additionalProperties': True}
export_pattern
Export a result as DXF or tiled 1:1 PDF and return a temporary download_url for the user. Use layout=true with a layout_id to export all pieces. Download before workspace expiry.
Input schema
{'type': 'object', 'title': 'export_patternArguments', 'required': ['workspace_id', 'result_id'], 'properties': {'grid': {'type': 'integer', 'title': 'Grid', 'default': 0, 'maximum': 50, 'minimum': 0}, 'paper': {'enum': ['a4', 'letter', 'a3'], 'type': 'string', 'title': 'Paper', 'default': 'a4'}, 'format': {'enum': ['dxf', 'pdf'], 'type': 'string', 'title': 'Format', 'default': 'dxf'}, 'layout': {'type': 'boolean', 'title': 'Layout', 'default': False}, 'result_id': {'type': 'string', 'title': 'Result Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'export_patternDictOutput', 'additionalProperties': True}
get_job
Poll STEP import or multi-piece layout; retry after a short delay while done=false. STEP completion returns a step_id and at most 20 basic face descriptions; use list_faces for geometric descriptions and pagination. Layout completion returns compact per-piece statistics and a layout_id for export_pattern.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'get_jobArguments', 'required': ['workspace_id', 'kind', 'job_id'], 'properties': {'kind': {'enum': ['step', 'layout'], 'type': 'string', 'title': 'Kind'}, 'job_id': {'type': 'string', 'title': 'Job Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'get_jobDictOutput', 'additionalProperties': True}
import_part
Import a file already uploaded to this workspace. Get upload_id from list_uploads. STEP/STP returns a job to poll with get_job(kind='step'), then inspect and select faces.
Input schema
{'type': 'object', 'title': 'import_partArguments', 'required': ['workspace_id', 'upload_id'], 'properties': {'upload_id': {'type': 'string', 'title': 'Upload Id', 'pattern': '^[0-9a-f]{32}$'}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'import_partDictOutput', 'additionalProperties': True}
list_fabrics
List fabric IDs, nominal locking angles, tow pitch (mm), thickness and UD settings.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'list_fabricsArguments', 'properties': {}}
Output schema
{'type': 'object', 'title': 'list_fabricsDictOutput', 'additionalProperties': True}
list_faces
Inspect STEP face IDs, areas, bounds, centroids, neighbours and planar mesh normals. This requires the MCP face-metadata endpoint in the configured backend. Centroids/bounds describe the tessellation; do not assume a closed solid's entire skin is the intended draping surface. Ask for explicit face IDs when the intended surface cannot be identified from this information.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'list_facesArguments', 'required': ['workspace_id', 'step_id'], 'properties': {'limit': {'type': 'integer', 'title': 'Limit', 'default': 50, 'maximum': 100, 'minimum': 1}, 'offset': {'type': 'integer', 'title': 'Offset', 'default': 0, 'minimum': 0}, 'step_id': {'type': 'string', 'title': 'Step Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'list_facesDictOutput', 'additionalProperties': True}
list_samples
List built-in example parts that can be loaded without uploading a file.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'list_samplesArguments', 'properties': {}}
Output schema
{'type': 'object', 'title': 'list_samplesDictOutput', 'additionalProperties': True}
list_uploads
List files uploaded through this workspace's upload_url; pass an upload_id to import_part.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'list_uploadsArguments', 'required': ['workspace_id'], 'properties': {'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'list_uploadsDictOutput', 'additionalProperties': True}
load_sample
Register a built-in sample and return a mesh_id for draping.
Input schema
{'type': 'object', 'title': 'load_sampleArguments', 'required': ['workspace_id', 'name'], 'properties': {'name': {'type': 'string', 'title': 'Name', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'load_sampleDictOutput', 'additionalProperties': True}
mesh_landmarks
Inspect seed landmarks in mm, paged within each category (max 100 per category). Returns centre, corners, edge midpoints and origin intersections. Full section polylines are omitted. Follow next_offset for more points.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'mesh_landmarksArguments', 'required': ['workspace_id', 'mesh_id'], 'properties': {'limit': {'type': 'integer', 'title': 'Limit', 'default': 50, 'maximum': 100, 'minimum': 1}, 'offset': {'type': 'integer', 'title': 'Offset', 'default': 0, 'minimum': 0}, 'mesh_id': {'type': 'string', 'title': 'Mesh Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'mesh_landmarksDictOutput', 'additionalProperties': True}
run_drape
Drape one fabric at one warp angle (degrees); return statistics and an exportable result_id. Omitted seed is suggested on the surface. Omitted pitch/lock_angle use the fabric preset, including its UD spread/compression settings. pitch/offset are mm; hole_area is mm² (null bridges holes). The API may increase pitch to bound the grid; pitch_used reports the actual resolution. Kinematic shear/locking statistics are not a structural strength calculation.
Input schema
{'type': 'object', 'title': 'run_drapeArguments', 'required': ['workspace_id', 'mesh_id'], 'properties': {'seed': {'anyOf': [{'type': 'array', 'items': {'type': 'number'}, 'maxItems': 3, 'minItems': 3}, {'type': 'null'}], 'title': 'Seed', 'default': None}, 'angle': {'type': 'number', 'title': 'Angle', 'default': 0}, 'pitch': {'anyOf': [{'type': 'number', 'exclusiveMinimum': 0}, {'type': 'null'}], 'title': 'Pitch', 'default': None}, 'offset': {'type': 'number', 'title': 'Offset', 'default': 0, 'maximum': 50, 'minimum': -50}, 'mesh_id': {'type': 'string', 'title': 'Mesh Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'fabric_id': {'type': 'string', 'title': 'Fabric Id', 'default': 'carbon-twill-3k'}, 'hole_area': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'null'}], 'title': 'Hole Area', 'default': None}, 'lock_angle': {'anyOf': [{'type': 'number', 'exclusiveMaximum': 90, 'exclusiveMinimum': 0}, {'type': 'null'}], 'title': 'Lock Angle', 'default': None}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'run_drapeDictOutput', 'additionalProperties': True}
select_faces
Create a drapable mesh from explicitly chosen STEP face IDs; reports connectedness.
Input schema
{'type': 'object', 'title': 'select_facesArguments', 'required': ['workspace_id', 'step_id', 'face_ids'], 'properties': {'step_id': {'type': 'string', 'title': 'Step Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'face_ids': {'type': 'array', 'items': {'type': 'integer'}, 'title': 'Face Ids', 'minItems': 1}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'select_facesDictOutput', 'additionalProperties': True}
server_status
Check the hosted DrapeCut solver and read connection/workspace limits.
Read only Idempotent
Input schema
{'type': 'object', 'title': 'server_statusArguments', 'properties': {}}
Output schema
{'type': 'object', 'title': 'server_statusDictOutput', 'additionalProperties': True}
suggest_seed
Suggest a starting point on a mesh. Validate its coverage with an actual drape.
Input schema
{'type': 'object', 'title': 'suggest_seedArguments', 'required': ['workspace_id', 'mesh_id'], 'properties': {'angle': {'type': 'number', 'title': 'Angle', 'default': 0}, 'mesh_id': {'type': 'string', 'title': 'Mesh Id', 'pattern': '^[A-Za-z0-9_-]{1,80}$'}, 'lock_angle': {'type': 'number', 'title': 'Lock Angle', 'default': 45, 'exclusiveMaximum': 90, 'exclusiveMinimum': 0}, 'workspace_id': {'type': 'string', 'title': 'Workspace Id', 'pattern': '^[0-9a-f]{48}$'}}}
Output schema
{'type': 'object', 'title': 'suggest_seedDictOutput', 'additionalProperties': True}
Added
suggest_seed
Oct. 3, 2026, 2:40 a.m.
Added
server_status
Oct. 3, 2026, 2:40 a.m.
Added
select_faces
Oct. 3, 2026, 2:40 a.m.
Added
run_drape
Oct. 3, 2026, 2:40 a.m.
Added
mesh_landmarks
Oct. 3, 2026, 2:40 a.m.
Added
load_sample
Oct. 3, 2026, 2:40 a.m.
Added
list_samples
Oct. 3, 2026, 2:40 a.m.
Added
list_faces
Oct. 3, 2026, 2:40 a.m.
Added
list_fabrics
Oct. 3, 2026, 2:40 a.m.
Added
import_part
Oct. 3, 2026, 2:40 a.m.
Added
get_job
Oct. 3, 2026, 2:40 a.m.
Added
export_pattern
Oct. 3, 2026, 2:40 a.m.
Added
create_layout
Oct. 3, 2026, 2:40 a.m.
Added
compare_drapes
Oct. 3, 2026, 2:40 a.m.
Added
list_uploads
Oct. 3, 2026, 2:40 a.m.
Added
create_workspace
Oct. 3, 2026, 2:40 a.m.