Skip to main content
Glama

catia-mcp

License

A Model Context Protocol server that lets an AI assistant drive CATIA on a Windows machine through its COM automation interface.

It targets CATIA V5 (roughly R14 through V5-6R20xx) and adapts to whatever release and licence bundle it finds rather than assuming one. 161 tools cover document handling, sketching, Part Design, dress-up, patterns and booleans, Generative Shape Design, assemblies, measurement, Knowledge parameters and formulas, drafting, viewing and data exchange — plus a VBScript escape hatch to everything else in the CATIA object model.

catia_connect → catia_new_part → catia_create_sketch(support="xy")
              → catia_sketch_centered_rectangle(width=80, height=50)
              → catia_pad(length=20)
              → catia_fillet(edges=["edge@40,25,10"], radius=6)
              → catia_screenshot()          # returns the picture, not a path

Why this exists

Driving CATIA from a script means solving five problems. None of them are exotic — every client that talks to CATIA over COM meets them — but each one fails quietly, which is what makes them expensive:

1. Measurements silently return zeros. CATIA declares Measurable::GetCOG, GetInertia, GetBoundingBox and Product::Position::GetComponents as taking an [in] array that it then writes into. Hand a late-bound Python list to one of those and CATIA fills a copy — the call succeeds, and the caller reads back the zeros it passed in. Centre of gravity, inertia, bounding boxes and component positions are all affected. This server reads those arrays through a VT_BYREF VARIANT, and cross-checks an all-zero answer against a VBScript trampoline evaluated inside CATIA before believing it.

2. Naming an edge is not the same as selecting it. CATIA's own handle for a face or an edge is a BRep name like RSur:(Face:(Brp:(Pad.1;0:(Brp:(Sketch.1;2)))...), which is unstable across releases and across edits to the model. Without a way to resolve geometry live, a client ends up filleting "the last feature" instead of the edge that was asked for.

3. COM threading is easy to get wrong. pythoncom.CoInitialize() is per-thread, while MCP handlers run on a thread pool — so a proxy obtained on one thread is routinely used from another. And CATIA rejects calls outright with RPC_E_CALL_REJECTED whenever a modal dialog is open, which a native client handles with an IMessageFilter and Python cannot.

4. Enumeration values are not exposed. CATIA's automation constants cannot be read through COM, so every client hardcodes the integers; when one is wrong the failure is often silent — a capture written as CGM into a .jpg, a minimal-propagation fillet where you asked for tangency.

5. Prose results are hard to chain. "Pad created: 20 mm (normal). Feature: 'Pad.1'" is fine for a human and poor for a model that has to decide what to do next.

Everything below is how this server addresses them.


Related MCP server: SolidworksMCP

What is different

One COM apartment, with busy-retry

Every CATIA call is marshalled onto a single dedicated STA thread that owns CoInitialize. Transient rejections (RPC_E_CALL_REJECTED, RPC_E_SERVERCALL_RETRYLATER) are retried with bounded exponential backoff — the job a native client gives to IMessageFilter. Lost connections are detected and transparently re-attached. See catia_mcp/core/apartment.py.

A reference grammar for geometry

The hardest part of scripting CATIA is pointing at things. BRep names like RSur:(Face:(Brp:(Pad.1;0:(Brp:(Sketch.1;2)))...) are unstable across releases and across edits. Instead, every tool that needs geometry takes a token:

Token

Means

xy yz zx

the part's origin planes

last

the most recent feature this server created

sketch:Sketch.2

a sketch by name

body / body:PartBody

the main body, or a body by name

Pad.1 / name:Pad.1

any tree element by its CATIA name

face#3 edge#7 vertex#2

the n-th topological element

face@12,0,40 edge@0,0,10

whichever face/edge is nearest that point

Index tokens are cheap but any model change renumbers them. Proximity tokens survive edits, which makes them the right choice for anything referenced more than once — catia_list_faces and catia_list_edges report the centroids to aim at, along with area, length and the outward normal of planar faces.

The same tokens work inside an assembly: Selection returns product-context references, so catia_assembly_constraint(elements=["face@0,0,10","face@0,0,50"]) constrains real geometry across two components.

Adaptive invocation instead of one hardcoded signature

ShapeFactory and HybridShapeFactory grew ...FromRef overloads and extra parameters across releases. comutil.try_variants walks a list of candidate calls and keeps the first CATIA accepts, re-raising immediately on busy or disconnected (which say nothing about whether the signature was right). One code path serves old and new releases; when every candidate fails you get all of the attempts back, not just the last error.

Constants that are probed, not trusted

Where a wrong enumeration fails silently, the value is discovered at runtime. catia_screenshot writes one throwaway capture per candidate integer and reads the file's magic bytes to learn what that integer means on this installation (catia_capture_formats shows the result). Everything else can be corrected per-site through a JSON file named by CATIA_MCP_CONSTANTS, without patching code.

Structured results with remediation

Every tool returns JSON with an ok flag. Failures carry a stable error code, a decoded HRESULT, and a remediation field:

{
  "ok": false,
  "error": {
    "code": "catia_busy",
    "message": "CATIA is busy and rejected the call (Call was rejected by callee.)",
    "remediation": "CATIA rejected the call because it is busy - usually a modal
                    dialog is open, or a command is still running. Dismiss any
                    dialog in the CATIA window, then retry."
  }
}

Nothing escapes as a protocol-level error, so a model always gets something it can read and act on.

Screenshots come back as images

catia_screenshot returns an actual MCP image (downscaled PNG when Pillow is installed), so the assistant can look at the model rather than inferring its shape from the feature tree.

Diagnosis before blame

catia_check_environment works with no CATIA connection at all: Python version and bitness, whether pywin32 imported, whether CATIA.Application is registered in the COM class table, which MCP SDK is in use, and a list of concrete problems. catia_capabilities then probes what the installation can actually do — licences, not release numbers, decide whether GSD or Sheet Metal work.

Connecting does not launch CATIA by default

A cold CATIA start takes minutes and checks out a licence. catia_connect attaches to a running session; passing launch=true is an explicit choice.


Requirements

  • Windows, with CATIA installed and started at least once as the current user (that is what registers the CATIA.Application COM class)

  • Python 3.10+

  • pywin32, mcp>=1.2, pydantic>=2 — plus optional pillow for smaller screenshots

CATIA's automation server is out-of-process, so 32-bit/64-bit Python both work. CATIA and Python must run as the same Windows user at the same elevation — a CATIA started as administrator is invisible to a non-elevated client.

Install

pip install -e ".[images]"

or, without the package install:

pip install -r requirements.txt

Check it works — before involving CATIA

python -m catia_mcp --doctor
python scripts/protocol_check.py

protocol_check.py starts the server over stdio, performs the MCP handshake, lists the tools, validates every input schema, and confirms that calling a CATIA tool with no CATIA returns a structured error rather than a crash. It needs neither CATIA nor a licence.

Check it works — with CATIA running

Start CATIA, then:

python scripts/live_smoke.py

It builds a small part end to end — sketch, pad, fillet an edge chosen by proximity, drill a hole, measure it, screenshot it, export STEP — and prints PASS / FAIL / SKIP per step. Steps needing a licence you do not have are reported as SKIP, so the output doubles as a capability report for your seat. Add --close to discard the scratch part afterwards.

Drive it by hand

The MCP Inspector gives you a browser UI over every tool — pick one, fill in its arguments from a generated form, fire it, and read the raw JSON-RPC:

npx @modelcontextprotocol/inspector uv run python catia_mcp/server.py

This is the fastest way to isolate a problem, because there is no model in the loop deciding anything: you supply the exact arguments and see the exact result. --cli and --tui give the same thing headless and in the terminal.

Wire it to a client

The simplest route, which needs no extra tooling:

python scripts/install_client_config.py --dry-run
python scripts/install_client_config.py

It writes the entry into the Claude desktop app's claude_desktop_config.json, backing the file up first. --target code targets Claude Code's ~/.claude.json instead, --target project writes a .mcp.json beside the repository, --target all does every one, and --remove undoes it. The interpreter it records is the one you ran it with — which is the one that has pywin32 and mcp installed, and the usual cause of a server that starts and then cannot do anything.

claude mcp add will not work unless you have separately installed the Claude Code CLI (npm install -g @anthropic-ai/claude-code). It is a different package from the desktop app. The script above avoids needing it.

To write the configuration by hand instead, add this to claude_desktop_config.json — on Windows at %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "catia": {
      "command": "C:\\path\\to\\python.exe",
      "args": ["-m", "catia_mcp"],
      "env": { "PYTHONPATH": "C:\\path\\to\\catia-mcp" }
    }
  }
}

Use the full path to the interpreter you installed the dependencies into, not bare python; the client does not inherit your shell's PATH. Restart the client afterwards.

An HTTP transport is available for remote or multi-client use:

python -m catia_mcp --transport http --port 8765

The tools

161 tools in 14 groups. python -m catia_mcp --list-tools prints the full inventory as JSON.

Group

n

Covers

session

11

connect, disconnect, status, environment diagnosis, capability probe, reference help, VBScript execution, undo/redo, batch mode

document

11

new/open/save/save-as/close/activate for parts, products and drawings; document info; part number, revision and definition

tree

15

describe the spec tree, list bodies / features / faces / edges / vertices, resolve and verify a reference token, find by wildcard, show/hide, rename, delete, select, update

sketch

16

sketches on planes or faces, points, lines, circles, arcs, ellipses, rectangles, centred rectangles, polygons, slots, polylines, splines, constraints, geometry listing

part_design

10

pad, pocket, shaft, groove, rib, slot, stiffener, holes (five types, from a point or a sketch), solid combine — with up-to-next / up-to-last / up-to-plane / up-to-surface limits and thin walls

dressup

10

edge fillet, variable fillet, face-face fillet, tritangent fillet, chamfer, shell, thickness, draft, thread, remove-face

transform

8

rectangular / circular / user patterns, mirror, translate-rotate-symmetry-scale, new body, boolean add/remove/intersect/union-trim, split

gsd

28

geometrical sets, points, lines, circles, splines, polylines, helices, planes, extrude, revolve, sweep, multi-section, fill, offset, blend, join, split, trim, intersect, project, extract, healing, transforms, thick-surface, close-surface, axis systems

assembly

12

insert components, new parts and sub-assemblies, list, remove, read and set placement, nine constraint kinds, list/delete constraints, bill of materials, update

measure

9

measure any element, minimum distance with contact points, angle, bounding box, mass properties, point coordinates, face plane and normal, list and apply materials

knowledge

12

list/get/set/create/delete parameters, list relations, create formulas, activate/deactivate, design tables and configurations

drafting

7

sheets, generative views in seven orientations, text, scale, regenerate, delete

view

8

standard orientations, fit, zoom, background colour, screenshot, capture-format probe, render style, window list

exchange

4

export (STEP, IGES, STL, VRML, 3D XML, CGR, model, and DXF/DWG/PDF/CGM/SVG for drawings), export every open document, bill of materials to CSV, format list

Trimming the tool surface

161 tools is a lot of context. Restrict it with CATIA_MCP_GROUPS:

CATIA_MCP_GROUPS=document,tree,sketch,part_design,dressup python -m catia_mcp

The session group is always registered so connection and diagnosis stay available. With the example above the server exposes 73 tools instead of 161.


Configuration

Variable

Effect

CATIA_MCP_GROUPS

comma-separated tool groups to register; default is all

CATIA_MCP_CONSTANTS

path to a JSON file overriding CATIA enumeration values

CATIA_MCP_LOG

also write logs to this file

CATIA_MCP_LOG_LEVEL

DEBUG, INFO, WARNING, ERROR

CATIA_MCP_TRANSPORT

stdio (default), http, sse

Logs go to stderr, never stdout — stdout carries the MCP transport.


Notes, limits and honest caveats

  • Sheet Metal has no dedicated tools. catia_capabilities reports whether the SheetMetalFactory is available, but the wall/bend/unfold API varies enough between releases that shipping unverified signatures would be worse than pointing you at catia_run_script. The same applies to DMU kinematics and clash analysis; for clearance checking, catia_measure_distance between two components works well and needs no extra licence.

  • Selection.Search only finds visible geometry. If catia_list_faces returns nothing, the body is probably hidden — catia_show_element fixes it. This is a CATIA behaviour, not a bug here.

  • Face and edge indices are not stable. Adding a fillet renumbers every face. Use face@x,y,z for anything you reference twice.

  • catia_start_command and catia_undo are best-effort. CATIA gives automation clients no way to confirm an interactive command ran, and the command names follow the user-interface language.

  • Pattern direction defaults. catia_rect_pattern and catia_circ_pattern will use CATIA's own defaults if you do not pass direction or axis tokens. Pass an edge token when the direction matters.

  • This server can modify and delete work. It is designed for a CATIA session you are supervising. Tools that delete or overwrite are annotated destructiveHint so a client can prompt before running them.


Layout

catia_mcp/
  compat.py               MCP SDK shim (MCPServer 1.29+ / FastMCP earlier)
  server.py               entry point, transports, tool inventory
  core/
    apartment.py          single STA thread, busy-retry
    comutil.py            by-ref arrays, adaptive invocation, defensive reads
    connection.py         attach/launch, version detection, capability probing
    errors.py             HRESULT decoding and the error taxonomy
    refs.py               the reference-token grammar and topology search
    capture.py            runtime probing of the capture formats
    constants.py          CATIA enumerations, overridable per site
    result.py             the result envelope
  tools/                  14 tool modules, one per domain
scripts/
  install_client_config.py  register the server with an MCP client
  protocol_check.py         MCP conformance check, no CATIA needed
  live_smoke.py             end-to-end build against a real CATIA
tests/test_offline.py     36 tests, no CATIA and no Windows required

Development

python -m pytest tests/ -q
ruff check catia_mcp
python scripts/protocol_check.py

Licence

GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE.

The AGPL's network clause is the point: if you run a modified version of this server so that others interact with it over a network, you have to offer them its source. Using it privately, or driving your own CATIA with it, carries no such obligation.

CATIA is a registered trademark of Dassault Systèmes. This project automates CATIA; it neither includes nor replaces it, and is not affiliated with or endorsed by them. You need your own CATIA installation and licence.

Available Tools

161 tools
catia_activate_documentA
Idempotent

Bring an already-open document to the front and make it the target of subsequent modelling calls.

Inputs: document (required).

catia_add_componentA

Insert one or more existing CATPart or CATProduct files into the active assembly.

Inputs: paths (required), parent.

catia_add_design_tableA

Attach a design table (an Excel or tab-separated file) whose columns drive the document's parameters. Each row becomes a selectable configuration.

Inputs: path (required), name, comment, copy_data.

catia_add_new_partB

Create a brand-new empty part directly inside the active assembly.

Inputs: name, parent.

catia_add_new_productB

Create a new empty sub-assembly inside the active assembly.

Inputs: name, parent.

catia_apply_materialA

Apply a material from a CATIA catalogue to the active part or a named body. Once a material is applied, catia_mass_properties reports a real mass instead of needing a density.

Inputs: material (required), body, family, catalog_path.

catia_assembly_constraintA

Constrain components to each other. Reference the geometry with the usual tokens - inside an assembly 'face#3' and 'face@x,y,z' resolve against every visible component, and catia_list_faces reports which component each belongs to. Dimensional kinds (offset, distance, angle) take a value.

Inputs: kind (required), elements (required), name, value.

catia_bill_of_materialsA
Read-only

Build a bill of materials for the active assembly: every distinct part number with its quantity, source file and the instances that use it.

Inputs: max_depth.

catia_booleanB

Combine two bodies: add (union), remove (subtract), intersect, or union-trim. The tool body is consumed into the target body, which is the usual CATIA behaviour.

Inputs: operation (required), tool_body (required), name, target_body.

catia_bounding_boxA
Read-only

Report the axis-aligned bounding box of an element or of the whole solid, with the minimum and maximum corners and the overall dimensions. Useful for sizing stock material or checking a part fits an envelope.

Inputs: element.

catia_capabilitiesA
Read-only

Probe what this specific CATIA installation can do - Part Design, Generative Shape Design, Sheet Metal, Assembly, Drafting, measurement, kinematics and the in-process script bridge. Licences, not release numbers, decide most of these, so this is probed by attempting the real calls.

Inputs: refresh.

catia_capture_formatsA
Read-only

Report which image formats this CATIA installation can actually write, as determined by probing rather than by assuming the documented enumeration.

Inputs: reprobe.

catia_chamferB

Bevel one or more edges. Choose length_angle mode (a length and an angle, the usual case) or two_lengths mode (a setback on each face).

Inputs: edges (required), mode, name, angle, +4 more.

catia_check_environmentA
Read-only

Diagnose the host before blaming CATIA: Python version and bitness, whether pywin32 imported, whether the CATIA.Application COM class is registered, and which MCP SDK is in use. Works without a CATIA connection - run it first when catia_connect fails.

Inputs: no named parameters.

catia_circ_patternC

Repeat a feature around an axis. The rotation axis is a reference token for a cylindrical face, an edge, a line or an axis-system axis.

Inputs: axis, name, feature, reverse, +4 more.

catia_close_documentA
Destructive

Close a document. Unsaved changes are discarded unless save=true, so check catia_list_documents first if you are unsure.

Inputs: save, document.

catia_close_sketchA
Idempotent

Finish editing the current sketch. The solid tools do this automatically, so you only need it when you want to inspect a finished sketch or switch to another one.

Inputs: no named parameters.

catia_component_positionA
Read-only

Read a component's placement in the assembly: translation, Euler angles and the raw 12-value CATIA matrix.

Inputs: instance_name (required).

catia_connectA
Idempotent

Attach to a running CATIA session. Call this first. By default it only attaches to a CATIA that is already open; pass launch=true to start one (slow, and it checks out a licence). Returns the detected release and family so later calls can be tailored to it.

Inputs: launch, visible.

catia_create_formulaA

Drive one parameter from an expression involving others. The expression is CATIA Knowledge syntax and must carry units, for example 'Width * 2 + 5mm'. Feature dimensions can be the target, so this is how you make a model self-adjusting.

Inputs: expression (required), target_parameter (required), name, comment.

catia_create_parameterA

Create a user parameter to drive the model - a named length, angle, number, string or flag that formulas and feature dimensions can refer to.

Inputs: name (required), value, comment, text_value, +1 more.

catia_create_sketchA

Create a sketch on a plane or a planar face and open it for drawing. The support is a reference token: 'xy', 'yz', 'zx' for the origin planes, 'face#3' or 'face@x,y,z' to sketch directly on a face of the solid, or the name of a construction plane. Subsequent catia_sketch_* calls draw into this sketch until you close it or create another one.

Inputs: body, name, origin, support, +1 more.

catia_delete_constraintB
Destructive

Delete an assembly constraint by name.

Inputs: name (required).

catia_delete_elementA
Destructive

Delete a tree element. Deleting a feature that later features depend on will put those into error, so check catia_list_features afterwards.

Inputs: token (required).

catia_delete_parameterA
Destructive

Delete a user parameter.

Inputs: name (required).

catia_delete_relationB
Destructive

Delete a formula, rule, check or design table.

Inputs: name (required).

catia_describe_treeA
Read-only

Walk the specification tree of the active document and return it as nested JSON: bodies, geometrical sets, sketches, features and - for assemblies - the component hierarchy. Every node carries a reference token you can pass straight to the modelling tools. Start here when you do not know what is in the document.

Inputs: max_depth, max_children, include_types.

catia_disconnectA
Idempotent

Release this server's COM reference to CATIA. CATIA itself keeps running and no document is closed.

Inputs: no named parameters.

catia_document_infoA
Read-only

Describe the active document in detail: type, path, save state, and for parts and products the tree contents and product properties (part number, revision, definition, nomenclature).

Inputs: no named parameters.

catia_draftA

Apply a draft angle to faces so a moulded or cast part can be released from the tool. Needs the faces to draft, a neutral element the draft pivots about (usually a planar face or plane), and a pulling direction.

Inputs: faces (required), neutral_element (required), name, angle, +1 more.

catia_drawing_add_sheetA

Add a sheet to the active drawing and make it current.

Inputs: name, scale, landscape, paper_size.

catia_drawing_add_textA

Place a text annotation on a drawing sheet - a note, a title or a revision mark.

Inputs: text (required), x, y, view, +2 more.

catia_drawing_add_viewA

Add a generative view of an open 3D document to a drawing sheet. Choose a standard orientation, where the view goes on the sheet, and its scale. Call catia_drawing_update afterwards to make CATIA compute the geometry.

Inputs: x, y, name, scale, +3 more.

catia_drawing_delete_viewB
Destructive

Delete a view from a drawing sheet.

Inputs: view (required), sheet.

catia_drawing_list_sheetsA
Read-only

List the sheets of the active drawing, with their paper size, scale and views.

Inputs: no named parameters.

catia_drawing_set_scaleA

Change the scale of a sheet or of one view.

Inputs: scale (required), view, sheet.

catia_drawing_updateA
Idempotent

Regenerate every generative view on a sheet from the current state of the 3D model. Run this after changing the part.

Inputs: sheet, all_sheets.

catia_exportA

Export the active document to a neutral format - STEP, IGES, STL, VRML, 3D XML, CGR for 3D documents, and DXF, DWG, PDF, CGM or SVG for drawings. The format is taken from the file extension unless you name it explicitly.

Inputs: path (required), format, overwrite.

catia_export_all_openA

Export every open 3D document to a directory in one format. Useful for turning a session's worth of work into STEP files in a single call.

Inputs: directory (required), format.

catia_export_bom_csvA

Write the active assembly's bill of materials to a CSV file: part number, quantity, nomenclature, revision, definition and source file.

Inputs: path (required), max_depth.

catia_face_filletA

Round the junction between two faces that need not share an edge - CATIA's Face-Face Fillet. Use it where an edge fillet cannot reach, such as across a step.

Inputs: first_face (required), second_face (required), name, radius.

catia_face_planeA
Read-only

For a planar face, report its plane: a point on it, its two in-plane directions and the outward normal. This is what you need to decide which face is 'the top one' before sketching on it.

Inputs: face (required).

catia_filletA

Round one or more edges with a constant radius. Edges are named with reference tokens - 'edge#4' by index, or 'edge@20,0,10' to pick the edge nearest a point, which survives later model changes. Tangent-continuous edges are followed by default so a single token usually rounds a whole chain.

Inputs: edges (required), name, radius, propagate_tangency.

catia_find_elementsA
Read-only

Search the active document for elements whose name matches a pattern (shell-style wildcards, e.g. 'Pad.*' or 'Hole'). Returns reference tokens for every match.

Inputs: pattern (required), limit.

catia_fit_allA
Idempotent

Zoom and centre the view so everything visible fits in the window.

Inputs: no named parameters.

catia_get_parameterA
Read-only

Read one parameter by its exact name, including its formula if it is driven by one.

Inputs: name (required).

catia_grooveA

Cut material by revolving a sketch profile around an axis - the subtractive counterpart of catia_shaft.

Inputs: axis, name, angle, sketch.

catia_gsd_axis_systemA

Create an axis system at a point with explicit X and Y directions - useful as a local reference frame for positioning and measurement.

Inputs: name, origin, set_current, x_direction, +1 more.

catia_gsd_blendB

Blend between two curves or edges to create a transition surface.

Inputs: first_curve (required), second_curve (required), name, geoset, +2 more.

catia_gsd_circleB

Create a circle or arc. Modes: 'center_radius' needs a centre point, a support plane and a radius; 'center_point' passes through a point; 'three_points'.

Inputs: mode, name, center, geoset, +4 more.

catia_gsd_close_surfaceA

Close a watertight surface into a solid. The surface must bound a closed volume, so join and heal the pieces first if needed.

Inputs: surface (required), name.

catia_gsd_create_geosetA

Create a geometrical set to hold surface and wireframe geometry, and make it the target for subsequent GSD calls. Keeping construction geometry in named sets is what stops a surface model becoming unnavigable.

Inputs: name, parent.

catia_gsd_extractA

Extract a face, edge or set of connected elements from existing geometry into an independent surface or curve. This is the clean way to reuse solid topology in surface work.

Inputs: element (required), name, geoset, propagate.

catia_gsd_extrudeB

Extrude a profile (a sketch or curve) along a direction to make a surface.

Inputs: profile (required), name, geoset, length, +2 more.

catia_gsd_fillA

Fill a closed boundary of curves or edges with a surface.

Inputs: boundaries (required), name, geoset.

catia_gsd_healingB

Heal small gaps between surfaces so they can be joined or closed into a solid.

Inputs: elements (required), name, geoset, merging_distance.

catia_gsd_helixB

Create a helix around an axis - the curve to sweep for a spring or a thread.

Inputs: axis (required), start_point (required), name, pitch, +4 more.

catia_gsd_intersectA

Create the intersection of two elements - a curve where two surfaces meet, or a point where a curve meets a surface.

Inputs: first_element (required), second_element (required), name, geoset.

catia_gsd_joinA

Join several surfaces or curves into a single element. This is what you do before thickening or closing a set of surfaces into a solid.

Inputs: elements (required), name, geoset, tolerance.

catia_gsd_lineB

Create a line. Modes: 'two_points'; 'point_direction' with a length; 'normal' to a surface at a point; 'tangent' to a curve at a point.

Inputs: end, mode, name, start, +5 more.

catia_gsd_list_elementsA
Read-only

List the contents of the geometrical sets in the active part - points, curves, surfaces and nested sets - with reference tokens.

Inputs: geoset.

catia_gsd_multi_sectionA

Loft a surface through a series of section curves - CATIA's Multi-Sections Surface. Optional guide curves control the shape between sections.

Inputs: sections (required), name, geoset, guides.

catia_gsd_offset_surfaceB

Create a surface offset from an existing one by a set distance.

Inputs: surface (required), name, geoset, offset, +1 more.

catia_gsd_planeA

Create a construction plane. Modes: 'offset' from an existing plane; 'three_points'; 'normal_to_curve' at a point; 'equation' from ax+by+cz=d; 'angle' rotated about an axis. Construction planes are what you sketch on when no face is in the right place.

Inputs: mode, name, angle, point, +6 more.

catia_gsd_pointA

Create a point. Modes: 'coordinates' (x,y,z); 'on_curve' at a ratio or distance along a curve; 'between' two points at a ratio; 'center' of a circle or sphere; 'on_plane' at plane coordinates.

Inputs: x, y, z, mode, +6 more.

catia_gsd_polylineB

Create a polyline through a list of existing points, given as reference tokens.

Inputs: points (required), name, closed, geoset.

catia_gsd_projectC

Project a curve or point onto a surface or plane.

Inputs: element (required), support (required), name, geoset, +2 more.

catia_gsd_revolveC

Revolve a profile around an axis to make a surface of revolution.

Inputs: axis (required), profile (required), name, angle, +2 more.

catia_gsd_set_active_geosetA
Idempotent

Choose which geometrical set new GSD geometry goes into.

Inputs: name (required).

catia_gsd_splineA

Create a 3D spline through a list of existing points, given as reference tokens.

Inputs: points (required), name, closed, geoset.

catia_gsd_splitB

Cut a surface or curve with another element, keeping one side.

Inputs: element (required), cutting_element (required), name, geoset, +1 more.

catia_gsd_sweepB

Sweep a profile along a guide curve to make a surface.

Inputs: guide (required), profile (required), name, geoset.

catia_gsd_thick_surfaceB

Thicken a surface into a solid of a given wall thickness.

Inputs: surface (required), name, reverse, thickness, +1 more.

catia_gsd_transformA

Copy geometry with a transformation: translate, rotate, symmetry, scale or affinity. Unlike catia_transform_body this creates new surface geometry and leaves the original in place.

Inputs: element (required), name, value, geoset, +3 more.

catia_gsd_trimB

Trim two surfaces or curves against each other, keeping one side of each.

Inputs: first_element (required), second_element (required), name, geoset, +2 more.

catia_hide_elementA
Idempotent

Hide an element in the 3D view without deleting it.

Inputs: token (required).

catia_holeB

Create a hole in a face. Position it either by a 3D point (the usual case - give the point and the face token) or from a sketch containing hole centres. Supports simple, tapered, counterbored, countersunk and counterdrilled holes, blind or through, with optional threading.

Inputs: face (required), x, y, z, +9 more.

catia_hole_from_sketchA

Create holes at every point of a sketch, drilled into the named face. Convenient for bolt patterns laid out in a sketch.

Inputs: sketch (required), name, depth, through, +1 more.

catia_list_bodiesA
Read-only

List the solid bodies in the active part, flagging which one is the main body and which is currently in work (the target of new features).

Inputs: no named parameters.

catia_list_componentsA
Read-only

List the components of the active assembly, with instance names, part numbers, source files and current positions.

Inputs: max_depth, recursive, include_position.

catia_list_constraintsA
Read-only

List the assembly constraints, with their type, value and current status.

Inputs: no named parameters.

catia_list_design_tablesA
Read-only

List the design tables attached to the document, with their row counts and the row currently applied.

Inputs: no named parameters.

catia_list_documentsA
Read-only

List every document currently open in CATIA, with its type, file path and whether it has unsaved changes.

Inputs: no named parameters.

catia_list_edgesA
Read-only

List the edges of the visible solid geometry in the active document, with the index token (edge#n), the centre of gravity to aim proximity tokens at and the length. Indices change whenever the model changes; centroids do not, so prefer 'edge@x,y,z' tokens for anything you will reference more than once.

Inputs: limit, include_metrics.

catia_list_export_formatsA
Read-only

List the neutral formats this server knows how to ask CATIA for, and which document types each applies to. Whether a given format actually works also depends on the licences installed.

Inputs: no named parameters.

catia_list_facesA
Read-only

List the faces of the visible solid geometry in the active document, with the index token (face#n), the centre of gravity to aim proximity tokens at, the area, and the outward normal for planar faces. Indices change whenever the model changes; centroids do not, so prefer 'face@x,y,z' tokens for anything you will reference more than once.

Inputs: limit, include_metrics.

catia_list_featuresA
Read-only

List the features of a body in creation order, optionally reporting which ones CATIA currently considers to be in error - this is how you find the feature blocking an update. Note that on releases with no update-status property, checking errors works by asking CATIA to recompute each feature, which is harmless but not free on a large part.

Inputs: body, include_errors.

catia_list_materialsA
Read-only

List the materials available in a CATIA material catalogue. With no path, the standard catalogue shipped with the detected CATIA installation is used.

Inputs: family, catalog_path.

catia_list_parametersA
Read-only

List the document's parameters with their current values. Feature dimensions appear here under names such as 'Pad.1\FirstLimit\Length', which is how you drive an existing model without editing its features.

Inputs: limit, filter, user_only.

catia_list_relationsA
Read-only

List the document's relations - formulas, rules, checks and design tables - with their expressions and whether they are active.

Inputs: no named parameters.

catia_list_verticesA
Read-only

List the vertexs of the visible solid geometry in the active document, with the index token (vertex#n), the centre of gravity to aim proximity tokens at and the exact position. Indices change whenever the model changes; centroids do not, so prefer 'vertex@x,y,z' tokens for anything you will reference more than once.

Inputs: limit, include_metrics.

catia_list_windowsA
Read-only

List CATIA's open windows and which document each shows.

Inputs: no named parameters.

catia_mass_propertiesA
Read-only

Report volume, surface area, mass, centre of gravity and the inertia matrix. When the document has a material applied, CATIA's own Analyze interface supplies the mass; otherwise pass a density and it is computed from the measured volume.

Inputs: density, element.

catia_measureA
Read-only

Measure a single element: its type, and whichever of length, area, volume, radius and centre of gravity apply. Works on faces, edges, vertices, sketches, surfaces, bodies and whole components.

Inputs: element (required).

catia_measure_angleA
Read-only

Measure the angle between two elements - two planar faces, two lines, or a line and a plane.

Inputs: first (required), second (required).

catia_measure_distanceA
Read-only

Measure the shortest distance between two elements, and report the two points where that minimum occurs. A distance of zero means the elements touch or interfere - which makes this a quick clearance check between two components in an assembly.

Inputs: first (required), second (required).

catia_mirrorB

Mirror the current body about a plane or planar face.

Inputs: name, plane.

catia_move_componentA

Move a component in the assembly. By default the translation and rotation are applied relative to where it is now; set absolute=true to place it at exactly that position and orientation instead.

Inputs: instance_name (required), x, y, z, +4 more.

catia_new_bodyA

Add a new empty body to the part and make it the in-work object, so subsequent features go into it. This is how you build shapes to combine with boolean operations.

Inputs: name, set_in_work.

catia_new_drawingA

Create a new CATDrawing document. Optionally sets the drafting standard and the first sheet's paper size.

Inputs: standard, landscape, paper_size.

catia_new_partA

Create a new empty CATPart document and make it active. This is the starting point for any solid or surface modelling.

Inputs: name.

catia_new_productA

Create a new empty CATProduct (assembly) document and make it active.

Inputs: part_number.

catia_open_documentA

Open an existing file in CATIA. Handles native documents (.CATPart, .CATProduct, .CATDrawing) and every neutral format CATIA can read directly, such as .stp, .igs, .stl and .model.

Inputs: path (required), activate.

catia_padB

Extrude a closed sketch profile into solid material. Supports a fixed length, symmetric extrusion about the sketch plane, a second limit in the opposite direction, up-to-next / up-to-last, stopping at a named plane or surface, and thin-walled pads.

Inputs: name, length, sketch, reverse, +5 more.

catia_pocketB

Cut material by extruding a closed sketch profile into the solid. Same limit options as catia_pad, including through-all via up_to_last.

Inputs: name, depth, sketch, reverse, +3 more.

catia_point_coordinatesA
Read-only

Read the 3D coordinates of a point, vertex or the centre of a circle.

Inputs: element (required).

catia_rect_patternA

Repeat a feature on a rectangular grid. Directions are given as reference tokens of an edge or line - for example 'edge#1' - because CATIA needs a real direction element, not an axis name. Leave a direction empty to let CATIA choose its default for that axis.

Inputs: name, feature, reverse_1, reverse_2, +6 more.

catia_redoA
Destructive

Redo the last undone operation(s) in CATIA. Best-effort, like catia_undo.

Inputs: times.

catia_reference_helpA
Read-only

Explain the reference-token grammar used by every tool that needs to point at geometry (planes, faces, edges, sketches, features). Read this before guessing at a selector.

Inputs: no named parameters.

catia_remove_componentA
Destructive

Remove a component from the assembly. The underlying file is untouched.

Inputs: instance_name (required).

catia_remove_faceA
Destructive

Delete faces from the solid and let CATIA heal the result by extending the neighbouring faces - the Remove Face feature. Useful for simplifying a model before analysis or export.

Inputs: faces_to_remove (required), name, faces_to_keep.

catia_rename_elementA

Rename a tree element. Worth doing for anything you will reference later - a stable name survives model edits, unlike a face or edge index.

Inputs: token (required), new_name (required).

catia_resolve_referenceA
Read-only

Check what a reference token actually points at before you use it in a modelling call. Returns the resolved element's name, type and - for topology - its measured position, so you can confirm you are about to fillet the right edge.

Inputs: token (required).

catia_ribA

Sweep a closed profile along a guide curve to add material - CATIA's Rib feature. The profile and the centre curve must be separate sketches or curves.

Inputs: profile (required), center_curve (required), name.

catia_run_scriptA
Destructive

Run a VBScript function inside CATIA and return its value. This is the escape hatch to the whole CATIA object model, including anything this server has no dedicated tool for and any API that only exists on some releases. The script must define the named function; CATIA is passed in automatically as the first parameter unless you pass your own. Returns whatever the function returns.

Inputs: script (required), function, pass_application.

catia_save_allA

Save every open document that has unsaved changes and already has a file path. Documents that have never been saved are reported back and skipped.

Inputs: no named parameters.

catia_save_documentA

Save a document. With no path it saves in place (and fails for a document that has never been saved); with a path it does Save As, which also converts format when the extension differs.

Inputs: path, document.

catia_screenshotA
Read-only

Capture the CATIA 3D viewport and return it as an image you can look at, optionally saving it to a file as well. Use it to check that geometry came out the way you intended - it is far more reliable than reasoning about the feature tree alone.

Inputs: fit, path, max_pixels, orientation, +1 more.

catia_select_elementsA

Highlight elements in the CATIA window. Purely visual - useful to show a person at the workstation which geometry you are about to modify.

Inputs: tokens (required), replace.

catia_set_active_bodyA
Idempotent

Choose which body (or geometrical set) new features are added to, by setting CATIA's in-work object. Everything created afterwards lands there.

Inputs: name (required).

catia_set_background_colorA
Idempotent

Set the 3D viewer's background colour. A white background gives much more legible screenshots than CATIA's default gradient.

Inputs: red, blue, green.

catia_set_batch_modeA
Idempotent

Suspend or resume CATIA's screen refresh and file-alert dialogs. Turning batch mode on makes long sequences of modelling calls markedly faster and stops modal save/overwrite prompts from blocking automation. Always turn it back off when you are done, or the user is left with a frozen-looking viewport.

Inputs: enabled (required).

catia_set_design_table_configurationB

Select which row of a design table drives the model, then recompute.

Inputs: name (required), configuration (required).

catia_set_document_propertiesA

Set the product identity fields CATIA stores on a Part or Product document: part number, revision, definition, nomenclature and description. These are what flow into a bill of materials and a drawing title block.

Inputs: revision, definition, description, part_number, +1 more.

catia_set_parameterA

Change a parameter's value and recompute the model. Give either a number, or a string with a unit such as '25mm' or '30deg' - the string form is safer because CATIA does the unit conversion itself.

Inputs: name (required), value, update, text_value.

catia_set_relation_activeA

Activate or deactivate a formula or rule. Deactivating a formula is what lets you set its target parameter by hand again.

Inputs: name (required), active (required).

catia_set_render_styleA

Change how the model is drawn: shaded, shaded with edges, wireframe, or a few CATIA variants. Falls back to the interactive command when the release does not expose the property.

Inputs: style.

catia_set_viewA
Idempotent

Point the camera at a standard orientation - front, back, top, bottom, left, right, isometric, iso_rear or dimetric - and fit the model in the window.

Inputs: fit, orientation.

catia_shaftA

Revolve a sketch profile around an axis to make a solid of revolution. The axis is the sketch's centre line if it has one (see the axis flag on catia_sketch_line), otherwise pass an explicit axis reference.

Inputs: axis, name, angle, sketch, +1 more.

catia_shellA

Hollow the solid out to a thin wall, removing the named faces to leave the interior open. Give at least one face token, or the result is a fully closed hollow body.

Inputs: faces_to_remove (required), name, thickness, outward_thickness.

catia_show_elementB
Idempotent

Make an element visible in the 3D view. Also the fix when catia_list_faces or catia_list_edges returns nothing: CATIA's search skips hidden geometry.

Inputs: token (required).

catia_sketch_arcA

Add a circular arc, given its centre, radius and the start and end angles measured counter-clockwise from the sketch's H axis.

Inputs: radius (required), center_x (required), center_y (required), sketch, +2 more.

catia_sketch_centered_rectangleA

Add a closed rectangle centred on a point, given its width and height.

Inputs: width (required), height (required), center_x (required), center_y (required), +1 more.

catia_sketch_circleB

Add a full circle to the current sketch.

Inputs: radius (required), center_x (required), center_y (required), sketch, +1 more.

catia_sketch_constraintA

Add a constraint to the current sketch. Dimensional kinds (distance, length, radius, diameter, angle) take a value; geometric kinds (horizontal, vertical, parallel, perpendicular, tangent, coincidence, concentric, symmetry) do not. Element names come from catia_sketch_geometry; append '.start', '.end' or '.center' to reference a point of an element.

Inputs: kind (required), elements (required), value, sketch, +1 more.

catia_sketch_delete_elementB
Destructive

Delete one 2D element from a sketch.

Inputs: element (required), sketch.

catia_sketch_ellipseA

Add an ellipse or elliptical arc to the current sketch.

Inputs: center_x (required), center_y (required), major_radius (required), minor_radius (required), +4 more.

catia_sketch_geometryA
Read-only

List the 2D elements of a sketch with their names, types and coordinates, plus its constraints. Use the element names in catia_sketch_constraint.

Inputs: sketch.

catia_sketch_lineA

Add a straight line between two points in the current sketch. Set construction=true for a reference line that does not take part in the profile, and axis=true to make it the sketch's revolution axis (what catia_shaft and catia_groove revolve around).

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +3 more.

catia_sketch_pointA

Add a 2D point to the current sketch. Points are useful as hole centres and as constraint anchors.

Inputs: x (required), y (required), sketch.

catia_sketch_polygonB

Add a closed regular polygon (hexagon, octagon and so on) inscribed in or circumscribed about a circle.

Inputs: sides (required), radius (required), center_x (required), center_y (required), +3 more.

catia_sketch_polylineA

Add a chain of connected lines through a list of points, optionally closing it back to the first point. Shared end points are created explicitly, so a closed polyline is immediately usable as a pad or pocket profile.

Inputs: points (required), closed, sketch.

catia_sketch_rectangleB

Add a closed rectangle from two opposite corners. The four lines share explicit corner points, so the profile is genuinely closed and can be padded or pocketed straight away.

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more.

catia_sketch_slotA

Add a closed slot (obround) profile: two parallel lines capped by semicircles, defined by the centres of the two end arcs and the slot radius.

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +2 more.

catia_sketch_splineB

Add a spline through a list of control points.

Inputs: points (required), sketch.

catia_slotA

Sweep a closed profile along a guide curve to remove material - CATIA's Slot feature, the subtractive counterpart of catia_rib.

Inputs: profile (required), center_curve (required), name.

catia_solid_combineA

Create a solid from two intersecting sketch profiles extruded normal to their planes - CATIA's Combine feature. Useful for shapes that are hard to express as one profile.

Inputs: first_sketch (required), second_sketch (required), name.

catia_split_bodyA

Cut the current body with a surface or plane, keeping the material on one side.

Inputs: cutting_element (required), name, keep_positive_side.

catia_start_commandA
Destructive

Trigger a CATIA interactive command by its name, the way a menu item would - for example 'Undo', 'Redo', 'Fit All In' or 'Isometric View'. Useful for the handful of behaviours CATIA exposes nowhere else in the automation API. The command name must match the language of the CATIA user interface.

Inputs: command (required).

catia_statusA
Read-only

Report the current connection: CATIA release, the active document and its type, how many documents are open, and the geometry this server created most recently.

Inputs: no named parameters.

catia_stiffenerA

Create a stiffener (rib/gusset) from an open sketch profile, thickened normal to the sketch plane and extended until it meets the existing solid.

Inputs: name, sketch, thickness.

catia_thicknessA

Add or remove material on specific faces by a set thickness, without shelling the whole solid. A negative value thins the wall.

Inputs: faces (required), name, thickness.

catia_threadA

Add a thread or tap to a cylindrical face. The lateral face is the cylinder to thread and the limit face is the flat face the thread starts from.

Inputs: limit_face (required), lateral_face (required), name, depth, +3 more.

catia_transform_bodyA

Apply a transformation feature to the current body: translate along a direction, rotate about an axis, mirror about a plane, or scale about a reference. These are history features - they move the body from that point in the tree onwards.

Inputs: operation (required), reference (required), name, value.

catia_tritangent_filletA

Replace a face with a fillet tangent to three faces - CATIA's Tritangent Fillet. The removed face is the one that disappears into the round.

Inputs: first_face (required), second_face (required), face_to_remove (required), name.

catia_undoA
Destructive

Undo the last operation(s) in CATIA. Implemented through the interactive Undo command, so it is best-effort: CATIA gives automation clients no way to confirm how far the stack actually rewound.

Inputs: times.

catia_updateA
Idempotent

Force CATIA to recompute the active part or assembly. Call this after a batch of edits, or to surface which feature is in error.

Inputs: no named parameters.

catia_update_assemblyA
Idempotent

Recompute the active assembly, applying every constraint.

Inputs: no named parameters.

catia_user_patternA

Repeat a feature at every point of a sketch - CATIA's User Pattern. Use it for irregular hole layouts that no rectangular or circular pattern can describe.

Inputs: positions_sketch (required), name, feature.

catia_variable_filletA

Round an edge with a radius that varies along it, between a start and an end radius.

Inputs: edge (required), name, end_radius, start_radius, +1 more.

catia_zoomB

Zoom the 3D view in or out by a number of steps, or reframe on one element.

Inputs: steps, on_element.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 161 tools

    Disambiguation2/5

    Several tool pairs have unclear boundaries: catia_new_part vs catia_add_new_part, catia_update vs catia_update_assembly, catia_measure vs catia_measure_distance, catia_sketch_spline vs catia_gsd_spline, and catia_transform_body vs catia_gsd_transform. The descriptions clarify once read, but the volume of overlapping concepts makes misselection likely.

    Naming Consistency3/5

    Most tools follow a snake_case catia_verb_noun pattern, but there are notable deviations like catia_bounding_box, catia_status, catia_capabilities, catia_measure, and catia_zoom. The mixed mix of list_/create_/set_/get_ alongside bare nouns and verbs is readable but not uniform.

    Tool Count1/5

    161 tools is an extreme count for a single MCP server. Even for CATIA's broad domain, this creates a massive surface that is difficult to navigate and maintain; the set would benefit from consolidation or modular splitting.

    Completeness4/5

    The tool surface is remarkably deep, covering part design, sketches, GSD, assemblies, constraints, measurements, drawings, parameters, materials, and export. Minor gaps exist (e.g., drawing dimensions, sketch fillet/chamfer), but core workflows are well supported.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server for full AutoCAD automation, AutoCAD LT automation, and headless DXF generation. It provides 8 consolidated tools for drawing, entity, layer, block, annotation, P&ID, view, and system operations via MCP stdio transport.
      12
      47
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for controlling a live SOLIDWORKS session through the Windows COM API, enabling native CAD operations like sketches, features, bodies, views, and exports, plus transactional plans and vectorization.
      11
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that controls SolidWorks via COM, enabling CAD automation with 138 tools for sketching, 3D features, assemblies, drawings, and more.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to connect to and automate AutoCAD on Windows via COM, exposing tools to inspect drawings and layers, create geometry and text, manage system variables, run commands, and save or open drawings. Requires full AutoCAD running with a drawing open.
      2
      MIT