Creo MCP
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., "@Creo MCP Create a 100x60x20 mm box in Creo and take a screenshot"
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.
Creo MCP
An MCP server that lets AI assistants (Claude, GPT, Gemini, local models) drive PTC Creo Parametric 11: create real features (extrudes, holes, rounds, chamfers, shells, sweeps, datums, any element-tree feature), read geometry, edit parameters and dimensions, build assemblies and drawings, and export.
Independent open-source project. Not affiliated with or endorsed by PTC. "Creo" and "Creo Parametric" are trademarks of PTC Inc. You need your own licensed copy of Creo. This repository contains no PTC files.
How it works
┌─HTTP :9056──► CREOSON (Java, J-Link) ──────────────────┐
AI client ──MCP (stdio)──► creo_mcp (Python) ├─► Creo 11
└─HTTP :9057──► creo-otk (Object TOOLKIT Java, in Creo) ─┘Two channels into Creo:
creo-otk (
creo-otk/): our own Object TOOLKIT Java app. Creo loads it at startup. It creates features through element trees, reads geometry, and runsjava_execfor anything else. An optional C TOOLKIT helper DLL (creo-otk/tk/) adds a sketch solver for closed line/arc profiles.CREOSON (GitHub, free, MIT): files, parameters, dimensions, assemblies, drawings, export, UDF placement. All ~200 CREOSON functions are reachable.
creoson-udf/is a small CREOSON add-on for UDF placement.
More detail: DESIGN.md (architecture, rules, limits) and FINDINGS.md (research notes).
Related MCP server: onshape-mcp
Tools (85 in the default core set)
Group | Tools |
Session |
|
Models |
|
Create features |
|
Datums |
|
Sheet metal |
|
Any feature |
|
Anything else |
|
Geometry |
|
Feature tree |
|
Params / dims / relations |
|
Materials |
|
Assembly |
|
Exchange / visual |
|
UDFs |
|
Pro/PROGRAM and macros |
|
Drawing |
|
Everything in CREOSON |
|
Set CREO_MCP_TOOLSET=full to also get one typed tool per CREOSON function (cs_<command>_<function>,
199 more). Small models do better with core.
Requirements
Windows with PTC Creo Parametric 11 and a valid license. Running an Object TOOLKIT app (creo-otk) and building the C TOOLKIT DLL may need extra PTC TOOLKIT licenses: check your PTC entitlement before you use those parts.
JDK 21 (any vendor, for example Eclipse Temurin). Creo uses it to run creo-otk, and the build scripts use it to compile the Java code.
CREOSON 3.0.2: download the Windows server zip from the official CREOSON releases and unzip it. The server zip includes its own JRE.
Python 3.11+.
Git Bash (for the
build.shscripts).Optional: Visual Studio Build Tools (MSVC) to build the C TOOLKIT sketch-solver DLL.
Setup
Clone and create a virtual environment:
git clone https://github.com/theGodspeed1999/creo-mcp.git cd creo-mcp python -m venv .venv .venv\Scripts\pip install -e .Set the paths (PowerShell, current user). Use your own folders:
setx CREO_HOME "C:\Program Files\PTC\Creo 11.0.1.0" setx CREOSON_HOME "C:\tools\creoson" setx JAVA_HOME "C:\Program Files\Eclipse Adoptium\jdk-21"Build the Java parts (in Git Bash, from the repo folder). They compile against
otk.jarandpfcasync.jarfrom your own Creo install, which are never copied into this repo:bash creo-otk/build.sh boot # creo-otk-boot.jar + creo-otk.jar bash creoson-udf/build.sh # creoson-udf.jar (optional: needed for udf_place)Optional: build the sketch-solver DLL (Developer prompt or plain cmd with MSVC installed):
creo-otk\tk\build.batThen call the
sketch_solver_enabletool once. Creo shows a security prompt for the DLL the first time; answer it in Creo.Add the server to your AI client. Copy
.mcp.json.exampleto.mcp.jsonand fix the paths, or for Claude Code:claude mcp add --scope user creo -- "C:\path\to\creo-mcp\.venv\Scripts\python.exe" -m creo_mcpOther clients (Claude Desktop, Cursor, Windsurf, Gemini CLI) use the same
mcpServersJSON as.mcp.json.example. Codex CLI (~/.codex/config.toml):[mcp_servers.creo] command = 'C:\path\to\creo-mcp\.venv\Scripts\python.exe' args = ["-m", "creo_mcp"] env = { CREO_MCP_TOOLSET = "core" }
Settings (environment variables)
Variable | Default | Meaning |
|
| Creo install folder |
|
| Unzipped CREOSON folder |
|
| CREOSON address |
| (none; falls back to | JDK 21 for creo-otk |
|
| Creo working folder |
|
| Creo major version |
|
|
|
|
| CREOSON add-on jar |
|
| Sketch-solver DLL |
Quick demo
Start Creo through the server so creo-otk is loaded: ask the AI to call creo_start, or run
.\start_creo.ps1. (A Creo started from the desktop icon has no creo-otk; creo_stop it first.)
Then ask your AI something like:
Make a new part BRACKET. Add a 100 x 60 x 10 mm plate, a 20 mm through hole in the middle, 5 mm rounds on the four vertical edges, then export a STEP file.
A typical tool flow: model_new → feature_box / feature_extrude → geometry_list (find face
and edge ids) → feature_hole → feature_round → model_export. Every feature result includes the
model's new bounding box and volume, so the AI can check its work. For a feature without its own
tool: toolkit_doc("ProSweep") → feature_tree_dump of a similar feature → edit →
feature_tree_create.
Tests
All tests are in one file and run against a live Creo (the tests start it with creo_start):
.venv\Scripts\python tests\test_all.py # everything
.venv\Scripts\python tests\test_all.py otk mcp # chosen sectionsSections: creoson, tools, udf, watchdog, otk, primitives, mcp. Test parts are copied
from Creo's own sample folders into work\.
Known limits
Angled cut crash: an angled polygon cut on a datum plane offset from TOP crashed Creo (
xtop.exe,EXCEPTION_ACCESS_VIOLATION) twice in testing. Avoid that case for now. Plain solid extrudes work.Sketch profiles without the DLL: the Object TOOLKIT Java API cannot add sketch constraints, so closed line/arc loops do not make solids. Circles, ellipses, surfaces, thin solids and
feature_boxwork. Build the C TOOLKIT DLL to lift this.Modal dialogs block everything:
creo_statuslists open Creo dialogs andcreo_dialogsreturns images of them. A person must answer them in Creo.UDF placement can stall if Creo waits for a manual pick ("Select ..."). Middle-click in Creo.
java_execruns on Creo's main thread: an endless loop freezes Creo.Windows and Creo 11 only. Tested on Creo 11.0.1.0 with CREOSON 3.0.2.
tests/test_all.pychecks a core tool count of 78; the server now has 85, so that one check fails until it is updated.
License
MIT, see LICENSE. Third-party notices: THIRD_PARTY_NOTICES.md.
Available Tools
85 toolsasm_add_componentB
Add a part/sub-assembly to an assembly.
Without constraints the component is packaged (placed but not fully constrained) at transform.
transform example: {"origin": {"x": 0, "y": 0, "z": 100}, "z_rot": 90} (rotations in degrees).
constraints example (csys is the reliable type):
[{"type": "csys", "asmref": "ACS0", "compref": "PRT_CSYS_DEF"}]
Other types: align, mate, insert, orient, ... see creoson_describe("file", "assemble").
Inputs: component (required), dirname, assembly, transform, +1 more. Returns: object
asm_assembleA
Place a component in an assembly with Creo placement constraints (the normal way to build an assembly).
Each constraint: {"type": ..., "asm_ref": , "asm_path": [component feat ids] (when the reference is on a component already in the assembly; omit for the assembly's own datums), "comp_ref": , "offset": number (distance for *_off, degrees for *_ang_off), "ref_type": "surface|axis|edge|csys|point"}. Types: mate (faces opposed, coincident), mate_off, align (faces/axes same direction, coincident; for two axes: coaxial), align_off, insert (cylinder into cylinder), orient, csys, tangent, pnt_on_srf, edge_on_srf, pnt_on_line, align_ang_off, mate_ang_off, default (component csys on assembly csys), fix. References as in geometry_list: datum names ("A_1", "TOP", "ASM_FRONT"), geometry ids, or {"feature": name, "type": "surface", "index": n}. The first component is usually placed with [{"type": "default"}]. Returns the component feature id (use it in later asm_path lists), its status and final transform. initial = {"origin": [x, y, z], "x_axis": [...], "y_axis": [...]} (component axes in assembly coordinates) is where the solver starts: give a rough orientation when the component must turn far from the assembly's axes (two parallel inserts at 90 deg fail from the identity). If Creo cannot solve the constraints it leaves the component where it started; the tool reports that as an error and removes the component.
Inputs: assembly (required), component (required), constraints (required), initial. Returns: object
asm_clearanceARead-only
Clearance between pairs of top-level components (component feature ids, as asm_assemble returns): the minimum distance between their solids, 0 when they touch, and whether they interfere. Use it to prove that parts meant to be joined (a weld, a mate) really make contact, which global interference cannot show.
Inputs: pairs (required), file. Returns: object
asm_interferenceARead-only
Global interference check of an assembly (Creo's Analysis > Global Interference, solids only): every pair of parts whose solids overlap, with the overlap volume (mm^3). Parts that only touch (a mate, a shaft in a hole of the same size) do not count. Use it to prove an assembly fits; count 0 means no part runs into another.
Inputs: file. Returns: object
asm_list_componentsBRead-only
Component tree (BOM) of an assembly with component paths; optionally each component's transform.
Inputs: file, include_transforms. Returns: object
creo_dialogsARead-only
Show any dialogs Creo has open (they block most API calls), as titles plus images.
Inputs: no named parameters.
creo_list_filesARead-only
List files on disk in Creo's working directory. pattern supports wildcards, e.g. "*.prt".
Inputs: pattern. Returns: object
creo_screenshotBRead-only
Capture the model's window as a JPEG so you can see the geometry. Optionally set a view first (DEFAULT, FRONT, TOP, RIGHT, ...).
Inputs: file, view, width_px, height_px.
creo_set_working_dirB
Change Creo's working directory (where new models, exports and screenshots go).
Inputs: dirname (required). Returns: object
creoson_callB
Call any CREOSON function directly, e.g. command="familytable", function="list", data={...}. Use creoson_describe first to see the parameters.
Inputs: command (required), function (required), data. Returns: object
creoson_describeBRead-only
Full spec of one CREOSON function: parameters, types, defaults, notes and an example.
Inputs: command (required), function (required). Returns: object
creoson_list_functionsARead-only
List all CREOSON functions (command.function + description). Filter by command group: bom, connection, creo, dimension, drawing, familytable, feature, file, geometry, interface, layer, note, parameter, view, windchill.
Inputs: command. Returns: object
creo_startA
Start the CREOSON server and (optionally) Creo Parametric if they are not already running.
Creo can take 30-90 s to start; this waits up to wait_seconds for it to accept connections.
Inputs: start_creo, wait_seconds. Returns: object
creo_statusARead-only
Report whether CREOSON and Creo are running, the working directory and the active model.
Inputs: no named parameters. Returns: object
creo_stopADestructive
Exit Creo Parametric. Unsaved changes are lost: model_save first. creo_start starts it again.
Inputs: wait_seconds. Returns: object
dim_listBRead-only
List dimensions (name like d12, value, tolerance). detail=true adds owning feature/view/location info.
Inputs: file, detail, name_pattern. Returns: object
dim_setB
Change a dimension value (model units) and regenerate. name like "d12" or a renamed dimension.
Inputs: name (required), value (required), file, regenerate. Returns: object
drawing_add_viewB
Place a general view of the model on a drawing sheet at (x, y) in drawing units.
model_view: saved model orientation (FRONT, TOP, RIGHT, DEFAULT, ...). Use creoson_call drawing.create_proj_view for projected views.
Inputs: x, y, model, scale, +4 more. Returns: object
drawing_createB
Create a drawing for a model from a drawing template (e.g. a3_drawing, a4_drawing, c_drawing) and display it. The standard templates place views from the model's saved FRONT/TOP/RIGHT views.
Inputs: name, model, scale, template. Returns: object
feature_boundary_blendA
Boundary Blend surface through section curves (datum curve features, in order, at least 2): Creo's loft. The classic Blend feature has no public element tree. For a closed section such as an airfoil use two open blends (one per side, each curve feature = one arc), then feature_merge them: a closed multi-arc loop can pair its vertices wrongly and pinch. To make a solid: feature_fill both ends, feature_merge all, feature_solidify.
Inputs: curves (required), file, name, closed. Returns: object
feature_boxA
Axis-aligned solid box (or rectangular pocket with cut=true) spanning x=(min,max), y=(min,max), z=(min,max) in the part's default csys. Needs the standard FRONT/RIGHT datums (model_new parts). One extrude feature (a rectangle extruded along +Z; without the sketch solver a thin extrude of a line), plus datum NAME_Z0 when z min != 0. A cut that removes nothing (box outside the solid) is an error.
Inputs: x (required), y (required), z (required), cut, +2 more. Returns: object
feature_chamferC
Edge chamfer D x D (or D1 x D2 with distance2).
Inputs: edges (required), distance (required), file, name, +2 more. Returns: object
feature_datum_axisC
Datum axis: intersection of plane1 and plane2, or through an edge / cylindrical surface axis.
Inputs: file, name, plane1, plane2, +2 more. Returns: object
feature_datum_curveB
Sketched datum curve (Creo's Sketch tool as a curve feature): open or closed lines, arcs and
splines on plane. Main use: a sweep trajectory (feature_sweep), e.g. the centre line of a bent
pipe: lines joined by tangent arc3 bends. Entities and frame as in feature_extrude.
Inputs: plane (required), entities (required), file, name, +4 more. Returns: object
feature_datum_curve_equationA
Datum curve from equation (Creo's Curve from Equation): relations in t from t_min to t_max, one per line, in
csys. Cartesian: x = ..., y = ..., z = ...; cylindrical: r = ..., theta = ... (degrees), z = ... (z along the
csys Z axis). Angles need their unit (Creo's relations are unit-sensitive; without it a trig function or theta
silently gives no curve): sin(t90[deg]), theta = t720[deg]. A helix of radius R, pitch P and N turns:
cylindrical "r = R
theta = tN360[deg]
z = tNP".
Use it as a sweep trajectory, with feature_sweep(pivot=) for a helical sweep (threads, springs).
Inputs: equation (required), csys, file, name, +3 more. Returns: object
feature_datum_planeC
Datum plane parallel to a plane/planar face at an offset (negative = other side).
Inputs: offset (required), reference (required), file, name. Returns: object
feature_datum_plane_angleB
Datum plane through a datum axis (or straight edge) at angle degrees to a plane / planar face. With an
axis made by feature_datum_axis from two offset planes, this gives a sketch plane at any orientation.
Inputs: axis (required), angle (required), plane (required), file, +1 more. Returns: object
feature_datum_pointsC
Datum points at [x, y, z] coordinates in a coordinate system (one feature, many points).
Inputs: points (required), csys, file, name, +1 more. Returns: object
feature_deleteADestructive
Permanently delete features by name (wildcards allowed). Children are deleted too.
delete_following=true also deletes every feature after the first match (Creo 'clip').
Inputs: names (required), file, delete_following. Returns: object
feature_extrudeA
Extrude a sketch drawn on plane (a datum plane or planar face) into a solid, cut or surface.
frame="model" (recommended): entity points are 3D MODEL coordinates lying in the sketch plane
(circle [x,y,z,r], line/rect [x1,y1,z1,x2,y2,z2], polygon/polyline/spline [[x,y,z],...],
arc3 [9 numbers], slot [p1, p2, r], ellipse [x,y,z,rx,ry], point [x,y,z]).
frame="sketch": 2D coordinates in Creo's sketch frame. On FRONT x->X, y->Y; on RIGHT (TOP up)
x->-Z, y->Y; on TOP (RIGHT right) x->X, y->-Z.
Direction: give direction="+Y" etc. (recommended, model axis the feature grows along; the bridge
checks and flips if needed). Otherwise material goes to the NEGATIVE side of the plane's normal
(FRONT -> -Z, RIGHT -> -X, TOP -> -Y); flip=true for the positive side; depth_type="symmetric" for both.
entities (sketch frame):
{"circle":[cx,cy,r]}, {"ellipse":[cx,cy,rx,ry]} -> solid, cut or surface
{"line":[x1,y1,x2,y2]}, {"rect":[x1,y1,x2,y2]}, {"polygon":[[x,y],...]}, {"polyline":[[x,y],...]},
{"arc":[cx,cy,r,start_deg,end_deg]}, {"arc3":[x1,y1,xm,ym,x2,y2]}, {"spline":[[x,y],...]},
{"slot":[x1,y1,x2,y2,r]}, {"regular_polygon":[cx,cy,r,n,rot_deg]}, {"point":[x,y]} -> surface only.
Any closed profile works for solid/cut (lines, arcs, splines, mixed) once the C sketch solver is
enabled (sketch_solver_enable; otherwise only circles/ellipses close for solids). Several closed
loops = a profile with holes. Open profiles: surfaces, or thin solids with thin=wall thickness
(thin_side one/two/both). Sketch references are the datum planes perpendicular to the sketch
plane (like Creo's sketcher); add more with refs=[...] (needed on an angled datum plane, e.g. the
datum axis it was made through).
orient_ref is a plane perpendicular to plane that faces orient in the sketch.
References: a name (datum plane/axis/csys/point or feature name, e.g. "TOP"), a geometry id from
geometry_list, or {"feature": name|id, "type": "surface|edge|axis|...", "index": n}.
Inputs: plane (required), entities (required), file, flip, +13 more. Returns: object
feature_fillC
Fill: flat surface from a closed sketch on plane (entities as in feature_extrude).
Inputs: plane (required), entities (required), file, name, +2 more. Returns: object
feature_groupC
Local group of contiguous features (needed to pattern several features together). Returns its leader's id.
Inputs: name (required), features_list (required), file. Returns: object
feature_holeB
Straight hole drilled into placement (planar face or datum plane).
Position with ONE of:
at=[x, y, z] (recommended): hole axis through this model point; the bridge dimensions it from
the two planes of at_refs (default: the datum planes among RIGHT/FRONT/TOP that are
perpendicular to the placement) and verifies the result,
linear_refs=[[ref1, dist1], [ref2, dist2]] (planes/edges), coaxial_axis, or on_point.
References: a name (datum plane/axis/csys/point or feature name, e.g. "TOP"), a geometry id from
geometry_list, or {"feature": name|id, "type": "surface|edge|axis|...", "index": n}.
Inputs: diameter (required), placement (required), at, file, +8 more. Returns: object
feature_listBRead-only
List features in the model tree (id, name, type, status).
type/name accept wildcards (e.g. type="PROTRUSION", name="HOLE*"). status: ACTIVE, SUPPRESSED, INACTIVE, UNREGENERATED, ...
Inputs: file, name, type, status, +3 more. Returns: object
feature_mergeB
Merge two quilts (geometry_list quilt ids). join=true for quilts meeting along an edge. The result keeps quilt1's id.
Inputs: quilt1 (required), quilt2 (required), file, join, +1 more. Returns: object
feature_pattern_axisB
Axis pattern: count members about a datum axis, angle degrees apart (default equally over 360).
group=true patterns the local group feature leads (feature_group), false a single feature. Creo copies datum
planes the members need. General regeneration, so members may join other geometry.
Inputs: axis (required), count (required), feature (required), file, +3 more. Returns: object
feature_renameC
Rename a feature identified by feat_id or current name.
Inputs: new_name (required), file, name, feat_id. Returns: object
feature_resumeA
Resume suppressed features (by names or feat_id). With neither, resumes ALL suppressed features.
Inputs: file, names, feat_id, with_children. Returns: object
feature_revolveA
Revolve a closed sketch about an axis (Creo's Revolve tool: cones, turned shapes, grooves). plane: a datum plane or planar face containing the axis; axis: a datum axis (make one with feature_datum_axis, e.g. through two planes) or a straight edge in that plane. Entities as in feature_extrude (frame="model": 3D model points in the plane); draw the half-profile on one side of the axis. angle: degrees (360 = full turn; less goes to one side, flip=true for the other).
Inputs: axis (required), plane (required), entities (required), file, +7 more. Returns: object
feature_ribA
Profile rib (Creo's Rib tool, the proper way to model webs/gussets): an OPEN sketch on
plane (normally the rib's mid-plane) whose ends lie on existing solid geometry, e.g. one line
from a lug corner tangent to a boss. Creo fills the region between the line and the part,
thickness thick (side: symmetric about the plane, or to one side). Entities as in
feature_extrude (frame="model": 3D model points in the plane). The bridge picks the material
side that adds material.
Creo rules (found in practice): both line ends must lie ON faces of the part, not on an edge or
corner (start 0.05-0.5 back from it along the face; the margin Creo needs varies, so retry with
a larger one if it does not regenerate) and not inside the solid; a line exactly tangent to a cylinder
does not regenerate (end it on the cylinder a few degrees past the tangent point).
Inputs: plane (required), entities (required), thickness (required), file, +5 more. Returns: object
feature_roundA
Constant-radius round (fillet) on edges (ids from geometry_list types=["edge"]). tangent_chain=true also takes tangent-connected edges (full circles, filleted loops).
Inputs: edges (required), radius (required), file, name, +1 more. Returns: object
feature_shellC
Hollow the part to a wall thickness, removing (opening) the given faces.
Inputs: thickness (required), file, name, outside, +1 more. Returns: object
feature_solidifyB
Solidify a closed quilt: fill it with material, or cut its inside away (side: 1 or -1).
Inputs: quilt (required), file, kind, name, +1 more. Returns: object
feature_suppressB
Suppress features (by names, wildcards allowed, or by feat_id). Reversible with feature_resume.
Inputs: file, names, feat_id, with_children. Returns: object
feature_sweepA
Sweep a constant section along a trajectory (Creo's Sweep tool: bent pipes and tubes, rails, handles, grooves along a path). trajectory: datum curve features (trajectory_type="curve_features", default; make them with feature_datum_curve; several features = one path in order), or curve / edge refs. entities: the 2D section; its origin (0,0) is the trajectory's start point. Creo picks which end is the start, so draw sections centred on the path (pipe: two circles at 0,0) or give x_dir (model direction of the section's X axis, e.g. [0,0,1]) and optionally y_dir (the side of +Y); the result's "sketches" location shows where Creo put the section. Without x_dir the entities are in Creo's sketch frame. kind: solid, cut (removes material along the path) or surface (capped=true closes its ends). thin: wall thickness for a thin sweep of an open or closed section (thin_side one/two/both). pivot: a datum axis (or plane): the section stays normal to the path's projection square to it. Along a helix about that axis (feature_datum_curve_equation) the section plane holds the axis: Creo's Helical Sweep, e.g. a thread cut with its profile drawn in the axial plane. Volume check: section area x path length (constant section).
Inputs: entities (required), trajectory (required), file, kind, +9 more. Returns: object
feature_thickenA
Thicken a surface quilt into solid material (or remove material with cut=true). quilt: quilt id from geometry_list(types=["quilt"]) or {"feature": surface feature, "type": "quilt"}.
Inputs: quilt (required), thickness (required), cut, file, +2 more. Returns: object
feature_tree_createA
Create ANY Creo feature from an Object TOOLKIT element tree (the route to features without a dedicated tool: sweeps, blends, drafts, ribs, patterns, mirrors, surfaces, cosmetic threads...).
JSON node: {"elem": "PRO_E_...", , "children": [...]}, value one of "int" (number or TOOLKIT constant name like "PRO_EXTRUDE", "A | B" for flags), "double", "str", "bool", "ref"/"refs" (+ optional "ref_type"), "collection": {"edges"|"chain"|"curves"|"surfaces": [refs]}, "sketch": {"entities": [...]} on PRO_E_SKETCHER (see feature_extrude for entities). Workflow: toolkit_doc("ProRound") for the tree layout -> toolkit_lookup for constant values -> feature_tree_dump of a similar existing feature as a template -> feature_tree_create. xml: Creo's own element-tree XML (as from feature_tree_dump format="xml").
Inputs: xml, file, tree, undo_if_fail. Returns: object
feature_tree_dumpARead-only
Element tree of an existing feature: shows exactly which elements/values/references Creo uses, in the same JSON form feature_tree_create accepts. The best template for new features. for_create=true drops empty elements so the tree can be edited and passed to feature_tree_create (sketch contents are not included: re-add "sketch" on PRO_E_SKETCHER).
Inputs: feature (required), file, format, for_create. Returns: object
feature_tree_redefineA
Redefine an existing feature with a full new element tree (e.g. change depth type, references). Get the current tree with feature_tree_dump, edit it, pass it back. Sketches cannot be replaced.
Inputs: feature (required), xml, file, tree. Returns: object
geometry_describeCRead-only
Describe one geometry item or feature given any reference form.
Inputs: ref (required), file, type. Returns: object
geometry_listARead-only
List geometry with ids for use as references: surfaces (type, normal, point, area, bbox, diameter), edges (start/end/mid, length, adjacent surfaces), axes, csys, points, curves, quilts. Filter by types and/or one feature (name or id). Geometry not on the final model (e.g. a face absorbed when features merge) is left out unless include_hidden=true.
Inputs: file, limit, types, feature, +1 more. Returns: object
java_execA
Run Java code inside Creo with the full Object TOOLKIT Java API (pfc + wfc packages, all imported) on Creo's main thread: the escape hatch for anything no tool covers.
code is the body of static Object run(Session session, Map<String,Object> args); return a
JSON-able value (Map/List/String/number/boolean). System.out is captured. Helpers:
Api.solid(session, file|null), Api.item(solid, ref, type), Api.select(solid, ref, type),
Api.feature(solid, nameOrId), Api.describe(item), Api.tree(session, solid, jsonTree).
Example: Solid s = Api.solid(session, null); return s.ListFeaturesByType(true, null).getarraysize();
API docs: Creo's Object TOOLKIT Java APIWizard (Common Files/otk_java_doc). Long loops block Creo.
Inputs: code (required), args, timeout. Returns: object
macro_runB
Run a Creo mapkey macro (UI command script). Can reach any Creo command but depends on the UI.
Example (refit the view): "~ Command ProCmdViewRefit;"
Lines start with "~"; do not include the "mapkey xx" header or "mapkey(continued)" prefixes.
Inputs: script (required), delay_ms. Returns: object
model_activateC
Display a model that is in session and make its window the active one.
Inputs: file (required). Returns: object
model_closeA
Close a model's window. With erase_from_memory=true also erase it from the session (unsaved changes are lost).
Inputs: file, erase_from_memory. Returns: object
model_exportB
Export a model or drawing. filename may include a path; default is . in the working dir.
PDF/3DPDF are mostly for drawings. geometry applies to STEP/IGES only.
Inputs: format (required), file, filename, geometry. Returns: object
model_importC
Import a STEP/IGES/neutral file as a new Creo model and (by default) open it.
Inputs: filename (required), open, format, dirname, +2 more. Returns: object
model_infoBRead-only
Summary of a model: file/revision, units, material, mass properties and bounding box.
Inputs: file. Returns: object
model_list_in_sessionARead-only
List models currently loaded in Creo's memory (session). pattern supports wildcards.
Inputs: pattern. Returns: object
model_mass_propertiesARead-only
Mass properties of a part or assembly (Creo's Analysis > Mass Properties): volume (mm^3), surface area,
density, mass, centre of gravity (relative to csys, default the model's default csys) and inertia tensors.
In mmNs models mass comes in tonnes; mass_g gives grams (the unit CSWA questions use).
Inputs: csys, file. Returns: object
model_newB
Create a new empty model from a Creo start template, open it and make it active.
name: model name without extension (letters, digits, _ or -, max 31 chars). units: mmns = mm/N/s (default), inlbs = inch/lbf/s, mmks = mm/kg/s. template: optional template file name or full path; overrides kind/units. The new part has default datum planes and a coordinate system, but no solid geometry.
Inputs: name (required), kind, units, template, +1 more. Returns: object
model_openB
Open a model (.prt/.asm/.drw) from disk (or session) and, if display=true, show and activate it.
file may contain wildcards (then several are loaded but none displayed).
Inputs: file (required), dirname, display, generic. Returns: object
model_regenerateA
Regenerate a model so geometry reflects changed dimensions, parameters and relations. force=true regenerates every feature (Creo's forced regeneration): use it on an assembly after its parts were rebuilt, so its stored data (e.g. mass properties) is recomputed.
Inputs: file, force. Returns: object
model_renameB
Rename a model (on disk and in session, or only in session).
Inputs: new_name (required), file, session_only. Returns: object
model_saveB
Save a model to disk (Creo writes a new numbered version, e.g. part.prt.3).
Inputs: file. Returns: object
otk_statusBRead-only
State of creo-otk, the Object TOOLKIT app inside Creo that provides feature creation (extrude, hole, round, ...), element trees, geometry queries and java_exec.
Inputs: no named parameters. Returns: object
param_deleteCDestructive
Delete a user parameter from a model.
Inputs: name (required), file. Returns: object
param_listBRead-only
List model parameters (name, type, value, designated). name_pattern supports wildcards.
Inputs: file, name_pattern. Returns: object
param_setC
Create or update a model parameter. type is inferred from value when omitted.
Inputs: name (required), value (required), file, type, +4 more. Returns: object
part_set_materialA
Assign a material with this mass density to a part (e.g. steel 7.85, aluminium 1100 2.71, 6061 2.70, brass 8.47, cast iron 7.3, ABS 1.02) so mass properties report real mass. Assumes Creo's mmNs units (density in tonne/mm^3, as in the mm templates).
Inputs: density_g_cm3 (required), file, name. Returns: object
part_set_material_propsA
Create or update a material and make it the part's current one. props: Creo property names without MTL_PROP_ (MASS_DENSITY, YOUNG_MODULUS, POISSON_RATIO, TENSILE_YIELD_STRESS, TENSILE_ULTIMATE_STRESS, THERMAL_EXPANSION_COEFFICIENT, THERMAL_CONDUCTIVITY, SPECIFIC_HEAT...) in the part's units. In mmNs: tonne/mm3, MPa, 1/C, mW/(mm C) (same number as W/(m K)), mJ/(tonne C) (J/(kg K) x 1e6). Temperature curves are not in this API: keep hot values as model parameters.
Inputs: name (required), props (required), file. Returns: object
program_getARead-only
Return the model's Pro/PROGRAM listing: features, their dimensions, INPUT/RELATIONS/IF blocks.
Edit the text and send it back with program_set to change the design logic.
Inputs: file. Returns: object
program_setB
Load an edited Pro/PROGRAM listing (from program_get) back into the model and regenerate.
Do not add INPUT prompts without default values: Creo would wait for interactive input.
Inputs: program (required), file. Returns: object
relations_getBRead-only
Get the model's relations (equations), one per line.
Inputs: file. Returns: object
relations_setA
REPLACE all relations of a model with the given lines (e.g. ["d1 = 2*d0", "MASS_LIMIT = 5"]).
To append, call relations_get first and send the combined list. An empty list clears relations.
Inputs: relations (required), file, regenerate. Returns: object
sketch_solver_enableA
Load the C TOOLKIT sketch solver (creo-otk/tk/creomcp_tk.dll) so solid features accept any closed line/arc profile. The first time, Creo shows a "Security Warning" (unknown source) that a person must answer with Yes in Creo; the approval is then remembered (approved.txt).
Inputs: no named parameters. Returns: object
smt_bendA
Sheetmetal Bend on a bend line of the flat pattern (Creo's Bend tool, bend line by edges).
start/end: model points where the bend line meets the outline, both on straight outline edges of
one flat face. The bend zone is centred on the line, as in a SolidWorks flat
pattern. radius: inside radius. angle: bend angle (90 = right angle). direction: "up" bends
towards view (default +Y, the side the flat pattern is drawn from), "down" away from it.
fixed_point: any model point of the region that stays put (the drawing's "Fixed Face" side).
The bridge dimensions each end from a neighbouring edge and checks the bend landed on the line (the
fixed side's flat face must end half a bend allowance from it), trying other references if not.
Bend from the outermost flange inwards, so every bend line still lies in the original flat plane.
Inputs: end (required), angle (required), start (required), radius (required), +5 more. Returns: object
smt_planar_wallA
Sheetmetal first wall, Creo's Planar wall (Model > Shapes > Extrude and Planar with a closed
sketch): the flat-pattern outline as closed loops (outer boundary plus inner loops for holes and
slots), thickness thick. Use in a part made with model_new(kind="sheetmetal"). Entities as in
feature_extrude. On TOP with orient_ref RIGHT, sketch (u, v) is model (x, -z) and the material
grows to +Y. Thickness is set through the part parameter SMT_THICKNESS (which Creo's walls follow).
Inputs: entities (required), thickness (required), file, name, +4 more. Returns: object
toolkit_docBRead-only
Creo's element-tree documentation for a feature: header name or word, e.g. "ProHole", "ProRound", "ProSweep", "ProPattern", "ProDtmCsys", "ProDraft". topic="list" lists all feature headers.
Inputs: topic (required), max_chars. Returns: object
toolkit_lookupARead-only
Look up Creo TOOLKIT constants (from Creo's own headers): an enum type name (e.g. "ProHleStraightDepType") lists its members; otherwise words match constant names (e.g. "ROUND TYPE", "PRO_FEAT_"). Element ids (PRO_E_*) are included.
Inputs: query (required), limit. Returns: object
udf_inspectARead-only
Read a UDF's reference prompts (with type: surface, edge, axis, point, csys, curve, quilt, body) and its variable dimensions. Call this before udf_place: every prompt must be given a reference.
Inputs: name (required). Returns: object
udf_listARead-only
List UDF files (.gph) available by name: the project's udfs/ folder, then Creo's sample libraries. pattern supports wildcards, e.g. "hole".
Inputs: pattern. Returns: object
udf_list_groupsBRead-only
List feature groups / placed UDFs in a model, with member features and UDF dimension values.
Inputs: file. Returns: object
udf_placeA
Create real geometry by placing a UDF (user-defined feature) into a part or assembly.
references maps each prompt from udf_inspect to model geometry: a name string -> datum plane/axis/csys/point/curve feature name or item name, e.g. "TOP", "A_1", "CS0" an int -> geometry id (e.g. a surface id from creoson geometry.get_surfaces) an object -> {"name"|"id": ..., "type": ...} to override the type "" for a body -> the part's (first) body dims sets variable dimensions by the names udf_inspect lists, e.g. {"DM": 12, "T": 30}. Returns the new group with its features and final dimension values.
Inputs: name (required), references (required), dims, file, +5 more. Returns: object
view_orientB
Set the model window to a saved view. Template-based models have DEFAULT (isometric), FRONT, BACK, TOP, BOTTOM, LEFT, RIGHT; older models may only have custom views (the error lists them).
Inputs: file, view. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 85 tools
Most tools target distinct CAD operations, and the detailed descriptions help separate similar modeling features. However, there is real overlap between asm_add_component and asm_assemble, part_set_material and part_set_material_props, and model_info and model_mass_properties. The multiple general escape hatches (feature_tree_create, java_exec, creoson_call, macro_run) also have potentially unclear boundaries for an agent choosing an approach.
Names are consistently snake_case and grouped by domain prefixes such as creo_, model_, feature_, asm_, part_, udf_, and drawing_. There are minor deviations in structure, such as model_mass_properties and part_set_material_props lacking a clean verb, but the convention remains readable and predictable.
With 85 tools, the surface is far beyond a well-scoped MCP toolset and is likely to overwhelm tool selection and context. Even for a broad CAD domain, this is an extreme number that pushes most operations into a large, manually navigated catalog.
The set covers a very broad CAD lifecycle: Creo startup, model open/save/regenerate, feature creation, assembly placement and checks, drawings, sheetmetal, parameters, relations, UDFs, geometry queries, import/export, and advanced TOOLKIT/CREOSON escape hatches. Some gaps remain, such as dedicated drawing annotation tools, file deletion, and direct family-table/layer/note operations, but generic CREOSON calls can usually work around them.
Maintenance
Related MCP Connectors
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Build, check, and export parametric CAD models in your ForgeCAD Projects from your AI agent.
Parametric browser CAD for AI assistants: parts, assemblies, drawings, renders, 3D-print slicing
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Related MCP Servers
- AlicenseBqualityDmaintenanceIntegrates PTC Windchill and Creo Parametric with LLM-based clients via the Model Context Protocol, enabling natural language interaction with PLM and CAD systems for tasks like part search, BOM retrieval, model operations, and exports.114MIT
- AlicenseAqualityBmaintenanceEnables 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.93144 npm7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to create, query, and modify native parametric features in an open Creo Parametric 10 session through the official C/C++ Toolkit, covering sketches, extrudes, revolves, holes, datum features, dimension and parameter edits, feature-tree inspection, and save/export operations.35MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to drive desktop CAD software through natural language with verified execution, failure recovery, and traceable results across modeling, assemblies, drawings, exports, motion, FEA, and related engineering workflows.2MIT