tigl-mcp
tigl-mcp is a CPACS/TiGL MCP server for managing CPACS sessions, inspecting geometry and parameters, checking geometry, and exporting real CAD/mesh via TiGL.
Run over stdio or HTTP-compatible transports.
Health-check the server with
pingwithout needing a CPACS session or TiGL runtime.Open CPACS sessions from a file path or XML string, and close them.
Get configuration summaries, component lists, component metadata, and high-level design parameters.
Check geometry with real TiGL: report faults and per-component bounding boxes.
Export base64-encoded component meshes as STL, VTK, Collada, or SU2.
Export full-configuration or single-component CAD as STEP or IGES.
Record high-level parameter updates in the session parameter table; this does not modify CPACS geometry.
Use real TiGL for geometry-dependent operations; if no TiGL kernel is available, raise structured
GeometryUnavailableerrors instead of returning synthetic geometry.Integrate with the shared-CPACS pipeline via the CPACS adapter, writing analysis results under
//analysisResults/tigl.
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., "@tigl-mcp export the wing geometry as STEP file"
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.
tigl-mcp
tigl-mcp is a Model Context Protocol server for CPACS-oriented TiGL
workflows. CAD and mesh export drive the real TiGL library (natively, or in a
container). Geometry queries that need a TiGL kernel raise a structured
GeometryUnavailable error when none is present; nothing returns synthetic
values.
Overview
The project currently provides:
A FastMCP-powered server with stdio and HTTP-compatible transports
A curated set of CPACS lifecycle, inspection, export, sampling, and parameter tools
Pydantic-backed tool validation with structured MCP error payloads
Structured
GeometryUnavailableerrors when no TiGL kernel is present, never synthetic geometry
Related MCP server: Battenmark
Quickstart
Requires Python 3.12+.
python3 -m venv .venv
source .venv/bin/activate
make dev
make test
make ciStart the server over stdio:
tigl-mcp --transport stdioInspect the non-blocking HTTP transport configuration example:
PYTHONPATH=src python3 examples/server/http_launch_config.pyExamples
The examples are deterministic and do not need a TiGL kernel: geometry tools raise a structured error rather than returning made-up values.
Examples index:
examples/README.mdTool discovery:
examples/client/tool_discovery.pySession lifecycle:
examples/cpacs/session_lifecycle.pyExport snapshot:
examples/cpacs/export_snapshot.py
Docs
Docs source:
docs/index.rstPublished docs: https://cmudrc.github.io/tigl-mcp/
Build the docs locally with:
make docsCurrent Capability Boundaries
This is the authoritative statement of which paths run real TiGL and which do not. Nothing here estimates geometry.
Real TiGL, always. CAD export (export_configuration_cad, STEP and IGES)
and mesh export (export_component_mesh) drive the real TiGL library, either
through native tigl3/tixi3 bindings or through the tigl-mcp:dev Docker
image. The route actually taken is recorded in CPACS as stepExportSource, so
exported geometry is traceable. On the D150 this produces a 3.2 MB STEP file
and per-component surface meshes of a few thousand triangles.
Read from the CPACS file, so always available. Component UIDs, names, symmetry flags, wing/fuselage/rotor/engine counts, per-component section and segment counts, and the reference area and length. These are values the file states directly.
Computed by real TiGL, natively or inside the Docker image. Bounding
boxes, wing spans, planform and wetted areas, fuselage length and volume
come from check_geometry and the exports. These run TiGL scripts through
the native tigl3/tixi3 bindings when they are installed in the server's
Python (DLR's conda package; the route for a Windows laptop without Docker,
added 2026-10-28) and otherwise in the tigl-mcp:dev container; the result
says which (geometry_source, stepExportSource). Deriving any of these
means evaluating profile geometry through the CPACS positioning and
transformation chain, which is what TiGL is for. Without either kernel these
tools raise a structured error naming the missing dependency; nothing
returns an estimate.
The former get_wing_summary, get_fuselage_summary,
sample_component_surface, intersect_with_plane and
intersect_components tools were removed on 2026-10-22. They needed the
native TiGL bindings, which no install provided at the time, so they could
only refuse; every participant of a user-study pilot saw that refusal as an
error before the assistant found the values through check_geometry.
Until 2026-08-15 several of these returned values derived from a component's index in an array — a wing's bounding box was literally its position in the list. Those were removed, along with a synthetic single-triangle mesh and a CAD "export" that returned the CPACS text relabelled. If you are reading older notes or output that mention stub geometry, they predate this.
Shared-CPACS Integration
This MCP includes a CPACS adapter (src/tigl_mcp/cpacs_adapter.py) that
bridges TiGL to the shared-CPACS aircraft analysis pipeline.
What it does
The adapter reads CPACS geometry (wings, fuselages, profiles) and writes
analysis results — component counts, per-component section and segment counts,
and STEP export metadata — into //analysisResults/tigl. A boundingBox
element is written only when a real geometry kernel supplied one, and is
omitted otherwise.
Direction | XPath |
Reads |
|
Writes |
|
Records | one |
Running as part of the pipeline
# As part of the full five-MCP pipeline (with SU2, pyCycle, NSEG)
python pipeline/shared_cpacs_orchestrator.py D150_v30.xml --mcps tigl su2 pycycle nseg
# TiGL only
python pipeline/shared_cpacs_orchestrator.py D150_v30.xml --mcps tiglSee cmudrc/aircraft-analysis for full pipeline documentation, versioning details, and installation instructions.
Related MCP servers
MCP | Repository |
SU2 (CFD aerodynamics) | |
pyCycle (engine cycle) | |
Mission, segment/Breguet | |
Mission, trajectory-level |
Contributing
Contribution guidelines live in CONTRIBUTING.md.
Maintainers
Mayank Dixit (@Kugel-Blitz-13), Carnegie Mellon University — mayankd@cmu.edu Christopher McComb, Carnegie Mellon University — Design Research Collective
Available Tools
11 toolscheck_geometryA
Check the aircraft's geometry, as real TiGL builds it, against the file: a wing on one side only, a wing not touching the fuselage, a reference area that cannot belong to the largest wing. Returns the findings (each with severity 'fault', the component, what was measured and the tolerance) and the per-component bounding boxes. Run it after opening a file and before meshing.
Inputs: session_id (required).
close_cpacsC
Close a CPACS session and free resources.
Inputs: session_id (required).
export_component_meshC
Export a component mesh as base64-encoded content.
Inputs: format (required), session_id (required), component_uid (required), meshing_options.
export_configuration_cadA
Export the full configuration CAD (or a single component when component_uid is set) to a file and return its path as cad_path. Pass cad_path to su2_generate_mesh_from_step as step_path. Set include_base64 only if the file content itself is needed.
Inputs: format (required), session_id (required), output_path, component_uid, +1 more.
get_component_metadataC
Return metadata for a geometric component.
Inputs: session_id (required), component_uid (required).
get_configuration_summaryC
Return component lists and the overall bounding box.
Inputs: session_id (required).
get_high_level_parametersC
Return high-level design parameters for a component.
Inputs: session_id (required), component_uid (required).
list_geometric_componentsC
List CPACS geometric components.
Inputs: session_id (required), type_filter.
open_cpacsB
Open a CPACS session from a file path or an XML string.
Inputs: source (required), source_type (required).
pingA
Lightweight health check that confirms the server is reachable without requiring a CPACS session or TiGL runtime.
Inputs: message. Returns: ok, server, message, timestamp
set_high_level_parametersB
Record high-level design parameter values in this session's parameter table. Does NOT modify the CPACS geometry: CAD export and CFD still use the original shape (see applies_to_geometry).
Inputs: updates (required), session_id (required), component_uid (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool maps to a distinct action or resource: session lifecycle (open/close/ping), inspection (summary, list, metadata, parameters), validation (check_geometry), and export (mesh vs CAD). The only mild overlaps are get_configuration_summary vs list_geometric_components and export_component_mesh vs export_configuration_cad, but the descriptions clearly separate them by scope (overview vs enumeration) and by output form (base64 mesh vs file-path CAD).
Nearly every name follows a consistent snake_case verb_noun pattern (get_configuration_summary, open_cpacs, close_cpacs, check_geometry, list_geometric_components, set_high_level_parameters). The only deviation is the bare verb 'ping', which is a conventional exception rather than an inconsistency.
Eleven tools fit cleanly into the 3-15 well-scoped range for a CPACS/TiGL geometry server. Each tool corresponds to a distinct stage of the workflow (open a session, inspect, validate, export), and none appears redundant.
The surface covers the full session lifecycle, component inspection, geometry validation, mesh/CAD export, and parameter read/write, which is solid coverage for the stated domain. The main gap is that set_high_level_parameters explicitly does not modify geometry, so there is no path for applying parameter changes or re-evaluating the shape, which limits a natural design-iteration workflow.
Maintenance
Related MCP Connectors
Global CAD/BIM, industrial engineering (FEM, CFD) and property tools via one MCP endpoint.
Manage SysML2 projects; check, evaluate, verify, query, document and diagram models.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
Related MCP Servers
- FlicenseAqualityBmaintenanceCAD-engineering MCP tool server for parametric modeling, DFM validation, mechanical calculations, and more. Enables code-CAD builds (build123d/CadQuery), model inspection, meshing, and mechanical calculators via MCP stdio.11-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and software to create, edit, inspect, validate, and export CAD geometry through MCP using backend-neutral typed operations, with FreeCAD/OpenCascade as the authoritative B-rep backend and JSCAD preview.2Apache 2.0
- AlicenseBqualityBmaintenanceEnables MCP clients to inspect, validate, transform, and query CityJSON models, with support for conversion, persistence, and 3D geometry validation.424MIT
- FlicenseNot gradedqualityBmaintenanceProvides MCP tools to read, validate, propose, and review architecture models and UML diagrams in local workspaces.-