Qiao-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., "@Qiao-MCP create a simple beam bridge model with 5 spans"
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.
š Qiao-MCP
English Ā· ē®ä½äøę
Full-lifecycle bridge structural analysis ā modeling, staging, code checks
ꔄę¢å ØčæēØē»ęåę MCP ęå”åØ ā 建樔ćę½å·„é¶ę®µćč§čéŖē®
Qiao-MCP is a Model Context Protocol (MCP) server that enables AI assistants to interact with bridge structural analysis software. It provides tools for creating bridge models, applying loads, running structural analysis, and reviewing results.
Features
š§ Tools (15 domain entry points, 153 operations)
Version 0.6.0 exposes 15 domain tools. Each takes a request
with an operation selector and the matching fields; its schema includes every
operation's full parameter descriptions, defaults and constraints. All 153 legacy
names remain directly callable with their original arguments.
Domain tool | Scope |
| Connection, model state and edit readiness |
| Open, save and initialize a project |
| Definitions, entity searches and geometry checks |
| Nodes, elements and bridge layouts |
| Materials, sections, thickness and time effects |
| Ground supports, node links and beam-end releases |
| Groups, stages, activation and deactivation |
| Static cases, combinations and physical loads |
| Solver settings, dynamics and structural analysis |
| Tendon properties, geometry and prestress |
| Moving, transversal and international live loads |
| Model checking snapshots and current code-check context |
| Structural, modal, live-load and tendon results |
| Display settings, stage views, screenshots and plots |
| Native method discovery and long-tail API calls |
For example, send {"request":{"operation":"get_model_status"}} to
inspect_bridge. See request examples and compatibility.
Set QIAO_MCP_CATALOG_LAYOUT=flat to list the original 153 names instead.
Version 0.5.1 used the flat catalog by default.
The 151 non-image operations retain their output schemas and MCP structured content
({status, message, ...}). Connection diagnostics also expose connection_status
and connected; bridge templates return the resolved node, element and property IDs.
get_model_status preserves QiaoTong's state in status. The two image-capable tools
return viewable MCP image content or a text summary. At domain level, 14 entry points
publish combined output schemas; view_model supports mixed image/text content.
Tool failures use typed MCP errors, and
read-only, destructive, and open-world operations carry MCP tool annotations. The
server instructions include the full tool-group overview; use list_qtmodel_api
before calling an uncovered backend method through the gateway.
Input schemas include parameter descriptions, closed-set selectors, pagination bounds
and fixed-size coordinate/DOF arrays. Invalid schema inputs are rejected before a
backend call. A beam end release_i / release_j flag means True = release;
omitting an end keeps all six DOFs connected. Load combination components use
[case_type, case_name, factor], with combine_type=3 for an envelope.
Support overrides preserve omitted coordinate/additional settings. Supplying
extra_parameters enables them unless extra_enabled=False explicitly clears
them; this behavior also applies to older SDKs that support these options.
0.6.0: domain tools and qtmodel 2.9.3
Version 0.6.0 combines the local 0.5.2ā0.5.9 improvements since GitHub release 0.5.1.
It retains all 153 operations and legacy calls behind 15 domain entry points,
including the per-tool corrections listed in the changelog.
See the release and upgrade notes.
Section creation/deletion, stage deletion and vertical prestress checking now
explain their prerequisites, selection boundaries and write behavior.
add_custom_temperature accepts native [reference, height, temperature] rows
(reference 1=top, 2=bottom; orientation 1=local Z, 2=local Y). Two-value rows are
rejected because they omit the reference. Mutation selections reject blank,
Boolean and fractional IDs; renumbering requires BOTH complete lists, or BOTH
omitted to intentionally renumber the whole model.
Screenshots and plots now retrieve PNG bytes for storage on the MCP host. Partial
updates require unique, complete readback; checking queries preserve typed fields.
Live-load results expose envelope_type=1 (maximum) or 2 (minimum). See the
changelog for solver, section-numbering, group-query and idealized support corrections.
Locked installs now use qtmodel 2.9.3. With its instance context and a desktop
advertising model_instance_guard=1, mutations and commits carry the same model
instance identifier, including analysis worker threads. Gateway undo_model
also checks model/history revisions when model_revision_schema=1; pending or
uncertain edits block that Undo. On mismatch, inspect the active model and command
history before deciding whether to issue another operation. Older protocols keep
existing state checks. Initialize/open and legacy raw-path file routes retain
their existing contracts and cannot carry this new binding; it does not provide
transaction rollback or bind separate client requests into one reviewed plan.
Choosing operations
Complete Args text is published in parameter schemas; each domain lists the operations it accepts. Select the operation matching the intended effect.
Choose absolute node edits with update_node, offsets with move_nodes, and
numbering with update_node_id/renumber_nodes. For sections,
calc_section_property evaluates supplied geometry, get_model_data reads stored
properties, and calculate_section_property rewrites all existing sections.
Tendon definitions, computed losses and coordinates have separate query tools.
Automatic self-weight is controlled by stages, not by creating a case named čŖé.
See the domain boundaries for which entry point covers each task.
0.5.0: queries, transversal analysis, check snapshots and international loads
This version implements B1āB4 with 20 new tools and one workflow prompt. It includes all changes since 0.3.3, including work previously labeled 0.4.0. See the release notes and upgrading from 0.3.3. New commands require a supporting QiaoTong build. Live testing confirmed basic statics and partial B1 coverage; see the known backend limitations.
get_model_edit_readiness is read-only and remains accessible when model operations are blocked. Its success
status means a response was received, not that editing is safe; inspect the raw
readiness object. No token is retained/reused, and no stages/results are changed.
query_model_data takes a typed request, for example:
{"request": {"kind": "nodes", "structure_group_names": ["MainGirder"], "limit": 20, "offset": 0}}Kinds: nodes, elements, boundaries, loads, node_local_axes,
section_summaries. Names are lists; IDs are positive integers/lists, not range
strings. Nodes need at least one filter; near and tolerance must be paired.
Qiao-MCP caps filter lists/pages at 500; section summaries allow only 100 explicit
IDs and 100 items per page. The structured data field preserves native page
metadata without recomputing totals or slicing again. Unsupported endpoints fail
explicitly rather than downloading everything for local filtering.
get_model_data additionally supports material_summaries, material_detail,
load_case_summaries, load_case_detail, load_combination_summaries,
load_combination_detail, construction_stage_summaries, element_section and
spans. New details use one positive integer (or one-item integer list) in ids;
element_section uses position=0|1. Load-case/combination detail pagination runs
on the server; other list kinds retain their existing text pagination. Summaries
are not full write-back snapshots, and construction stage IDs follow stage order.
configure_live_load_system explicitly selects one of the five live-load systems; clearing old definitions defaults to off. configure_operation_stage requires all four case lists; [] disables that family. These tools commit settings without running analysis.
Transversal definitions use set_transversal_vehicle / set_transversal_lane
with a complete typed request and action="add"|"update". Both may replace
existing definitions. Select china_transversal first. Loads use kN and lengths
use m regardless of display units. Lane nodes remain in input order and must be
directly joined by beam elements; distribution_widths are meters. Use the
returned data.index or get_transversal_data for references. Readback retains
the native lane field load_factors; map it to distribution_widths when editing.
set_transversal_case validates the referenced vehicle/lane IDs and accepts
positive reduction_factors for 1..N lanes plus greater_lane_factor for more
than N. remove_transversal_data requires an explicit target; vehicle/lane
deletion defaults to cascade=False. Case deletion does not accept cascade.
Combination and operation-stage references must be removed explicitly first.
Base-model reinforcement uses set_section_reinforcement with a complete
UI-exported snapshot, or remove_section_reinforcement with an explicit full
section identifier (1, 1-I, 1-J, G7-2). Every snapshot field is required;
empty arrays clear that part. Six-entry outer/inner rows and model length units
differ from the legacy parametric tool. Current CSAN queries are not lossless
model snapshots. The new tools require model-write permission and commit once.
set_check_stirrup_snapshot preserves the full exported definition and accepts
original_id for renumbering. set_element_stirrups replaces complete shear
(five entries) and torsion (three entries) assignments independently: null
keeps a family, [] clears it, and stirrup ID 0 means unassigned. These are
separate from the legacy current-CSAN stirrup tools.
manage_check_material sets a full exported override or resets an explicit ID
to its base material. manage_check_case_definition sets/removes concrete,
seismic and strengthening model definitions with native enum values. The existing
run_concrete_check imports the named concrete case after these commits; it does
not run seismic or strengthening checks. Preserve the complete exported material
properties/parameters and stored units instead of constructing partial snapshots.
Reported failed, canceled or other non-success completion states are tool errors,
including on older SDKs whose waiters return them without raising.
International vehicles use set_international_vehicle with a request
discriminated by standard="AASHTO"|"BS"|"EN1991". Select the matching model
system first. parameters and load_items must be explicit, even for {}/[].
Both add and update replace the definition; omitted/null scalars use new-definition
defaults. Update locates the original name and retains its actual ID/references.
Writes commit once and return a definition read back by exact name.
Standard | Native units and conventions |
AASHTO | Axles |
BS |
|
EN1991 | Axles |
The SDK does not specify the BS axle-force unit. Use verified native BS axle
export/query values unchanged; do not infer their unit from another standard.
get_international_live_load_data(kind="vehicles"|"cases") retains complete
native fields; selection and pagination run locally over its native whole-list
response. Vehicle exports may contain inactive parameters for other standards:
select the documented fields for the typed tool, or use the existing gateway to
replay an unchanged full native definition. No global unit conversion is applied.
create_en1991_vehicle selects a native source="standard"|"user" factory with
an explicit name. Standard vehicles expose effective factory controls only; their
code-generated uniform loads/lengths/spacings cannot be overridden. User vehicles
retain those fields plus p/dis, load_length, num and point_load; LM71 uses
four 250 kN axles when both p/dis are null. Factory writes also read back the
actual vehicle ID. For example, after selecting en1991:
{"request": {"source": "standard", "name": "LM71", "load_type": "LM71"}}set_planned_lane requires the plane, reference tandem, width, vehicle count,
signed offset and direction. It uses its own endpoint, distinct from
add_traffic_lane(optimize=True). There is no independent planned-lane getter;
its response confirms the commit, and model export/UI inspection verifies the
definition. Gateway deletion must pass lane_kind="planned" to remove_lane_line.
set_international_live_load_case checks each vehicle's exact name and expected
standard before writing. Subcases select ordinary/planned lanes with
optimized=False|True; EN1991 rejects duplicate lane assignments. QiaoTong checks
lane existence, lane kind and influence-plane membership. Factor objects use
complete native field names and values; null means server defaults, including
on update. Configure live_load_cases explicitly with configure_operation_stage,
then use run_analysis and get_analysis_results(case_name_mode="full") with a
result identifier verified from QiaoTong. Definitions never start analysis.
Vehicle/case deletion remains available through remove_international_vehicle
and remove_live_load_case in the existing gateway.
0.5.0 also tracks upstream 0687ffe through the existing gateway
for mass/stiffness factors, flange/effective-width definitions, statistics and
structure merges. Model weight queries use fixed N, independent of display units.
š¦ Resources (7 resources)
URI | Description |
| Model overview |
| Material list |
| Section list |
| Load cases |
| Construction stages |
| Structure groups |
| Boundary conditions |
š¬ Prompts (5 workflows)
Prompt | Description |
| Simple beam bridge design workflow (ē®ęÆę¢č®¾č®”) |
| Continuous beam bridge design (čæē»ę¢č®¾č®”) |
| Structural code checking (ē»ęę£ē®) |
| Construction stage analysis (ę½å·„é¶ę®µåę) |
| Explicit transversal definitions, configuration, solve and verified result identifiers |
For ordinary static cases, get_analysis_results keeps its automatic ST:
prefix. Use case_name_mode="full" with a complete identifier verified from
QiaoTong results/UI for other result families. It is passed unchanged; TV/MV
combination codes are not evidence of a result endpoint's naming convention.
Related MCP server: midas-bridge-mcp
Architecture
qiao-mcp/
āāā src/qiao_mcp/
ā āāā server.py # MCP server entry point
ā āāā tools/ # MCP Tools (envelope-wrapped)
ā āāā resources/ # MCP Resources
ā āāā prompts/ # MCP Prompts
ā āāā providers/ # Backend adapters
ā āāā __init__.py # BridgeProvider abstract base
ā āāā qtmodel_provider.py # QiaoTong adapter
āāā tests/ # Offline unit, integration, and API contract tests
āāā reference-docs/ # Local reference material (not committed)The Provider pattern keeps the 153 operations decoupled from any single backend. Select one with
BRIDGE_PROVIDER; each provider declares its own software-specific rules, so the LLM adapts
without prompt changes. Currently supports:
QTModel (
qtmodel, default) ā QiaoTong (ꔄé) bridge analysis software (user manual)
Adding a backend means implementing BridgeProvider and registering one line ā no tool-layer
changes. See Backend Selection.
Quick Start
Prerequisites
Python >= 3.11
uv package manager
qtmodel2.6.3 ā 2.9.x, except 2.9.0 (installed byuv sync; 2.9.3 is the current lock)QiaoTong software running when calling backend model, analysis, or visualization operations (see Compatibility for which versions pair with which)
The MCP server can start without QiaoTong. Use check_qiaotong_connection to
distinguish a connected server from software that is not running, and
get_model_status to see whether a model is open and which operations the
current QiaoTong state allows.
Install & Run
# Install dependencies
uv sync
# Run the server
uv run qiao-mcpConfigure in Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"qiao-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/qiao-mcp", "run", "qiao-mcp"]
}
}
}Configure in Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"qiao-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/qiao-mcp", "run", "qiao-mcp"]
}
}
}Configure in Reasonix (UI)
Open Settings ā MCP & Tools, then add a new MCP server:
Name:
qiao-mcpTransport:
stdio(keep default)Command:
uv --directory /path/to/qiao-mcp run qiao-mcpReplace
/path/to/qiao-mcpwith your actual project pathWindows: use backslashes
D:\path\to\qiao-mcpmacOS/Linux: use forward slashes
/path/to/qiao-mcp
Environment (optional):
UV_PYTHON=3.11
Click Add to save.
Configure in Cherry Studio (UI)
Open 设置 ā ę©å± ā MCP Servers, then add a new server:
åē§° (Name):
qiao-mcpęčæ° (Description): Optional description
ē±»å (Type):
ę åč¾å „ / č¾åŗ (stdio)å½ä»¤ (Command):
uvå ē®”ēåØ (Package Manager): Select
é»č®¤(Default)åę° (Args):
/path/to/qiao-mcp run qiao-mcp(Each line is one argument, no
--directoryprefix needed)Replace
/path/to/qiao-mcpwith your actual project path
Click äæå to save.
Test with MCP Inspector
npx @modelcontextprotocol/inspector uv run qiao-mcpLAN debugging proxy
For cross-machine debugging, scripts/qiaotong_lan_proxy.py
forwards a LAN-facing port to the QiaoTong API on the same machine. It uses
45125 for the proxy and forwards to the selected QiaoTong process on
127.0.0.1:55125:
python scripts/qiaotong_lan_proxy.pyThen point the client machine at:
from qtmodel import mdb
mdb.set_url("http://<proxy-machine-LAN-IP>:45125/pythonForQt/")The proxy prints each forwarded request and response. When several QiaoTong
processes are running, keep one process on 55125 for this fixed proxy, or use
separate proxy instances and ports for separate processes.
An SSH tunnel is an alternative that does not expose the API port on the LAN:
ssh -N -L 45125:127.0.0.1:55125 <user>@<qiaotong-machine-LAN-IP>Use http://localhost:45125/pythonForQt/ in the client machine while the tunnel
is running. Windows HTTP.sys validates the Host header and rejects
127.0.0.1 with 400 Invalid Hostname in this setup.
Development
# Install in dev mode (includes ruff, mypy, pytest)
uv sync
# Run directly
uv run python -m qiao_mcp.server
# Quality checks and offline regression tests
uv run ruff check src/ tests/
uv run mypy src/qiao_mcp/
uv run pytest tests/ --ignore=tests/test_end_to_end.py -qThe command above runs offline ā it does not require the QiaoTong software.
Provider/tool calls are validated against the installed qtmodel API signatures
(contract tests) and dispatched against an in-process fake backend.
The excluded end-to-end test requires a disposable QiaoTong model: it clears and
rebuilds the active model before solving.
Backend: QTModel (ꔄé)
This MCP server wraps the qtmodel Python API which provides access to:
mdb ā Model database: querying, building & modifying bridge models
odb ā Output database: querying analysis results & visualization
cdb ā Check database: structural verification & code checking
Versioning
Qiao-MCP versions independently from qtmodel ā the project iterates on its own
(bug fixes, new tools, docs) without waiting for a backend release, and a backend
release does not force a version bump here. The backend requirement is expressed
where it belongs: in the dependency constraint.
Compatibility
Qiao-MCP | qtmodel | QiaoTong software |
0.6.0 | 2.6.3 ā 2.9.x, not 2.9.0 | Same backend requirements; 15 domain tools with all 153 legacy operations |
0.5.1 | 2.6.3 ā 2.9.x, not 2.9.0 | With 2.9.x, QiaoTong must report model state; new commands require server support |
0.5.0 | 2.6.3 ā 2.9.x, not 2.9.0 | With 2.9.x, QiaoTong must report model state; new commands require server support |
0.3.2 ā 0.3.3 | 2.6.3 ā 2.8.x | 2.6.3+; 2.8.x pairs are no longer pinned |
0.3.0 ā 0.3.1 | 2.6.3 ā 2.6.x | 2.6.3 (exact match enforced by qtmodel) |
0.2.x | 2.5.0 ā 2.5.x | 2.5.0 |
Known lower-bound limitation: qtmodel 2.6.3 lacks get_load_group_names, so the
one-shot bridge workflow tools cannot run on that version. This is an existing
limitation; use 2.6.4 or later for those workflows (2.9.0 remains excluded).
The dependency range does not guarantee every new tool on every build: missing
methods or incompatible parameters fail explicitly before writes. The offline
suite is run against PyPI 2.6.3, 2.6.4, 2.8.2, 2.9.1, 2.9.2 and 2.9.3, plus reference 0687ffe.
These tests verify software contracts; complete engineering acceptance remains pending.
qtmodel 2.9.3 explicitly rejects historical check-snapshot and planned-lane add/update routes with API_NOT_OPEN;
a method appearing in the SDK catalog does not prove that its desktop route exists.
How the two sides are matched changed in qtmodel 2.8.2:
qtmodel 2.6 / 2.7 perform a strict version handshake ā the QiaoTong API version and the installed
qtmodelmust match exactly, otherwisecheck_qiaotong_connectionreportsversion_mismatchand refuses to connect.qtmodel 2.8.2 removed that handshake. Any QiaoTong that exposes the Python API connects, so
version_mismatchno longer occurs. The trade-off is that an older QiaoTong may simply lack newer commands;get_model_statussurfaces that asstate_unknown(the software predates the model-state handshake) so tools fail closed instead of writing blind.
Different builds report qtmodel 2.8.2: the PyPI wheel (2026-08-20) does not include
QtServer.get_model_state, while the upstream source at the same version does.
Qiao-MCP detects the capability rather than the version ā without it the
model-state guard is skipped (guard_unavailable) and tools behave as in 0.3.1;
with it, every tool is gated on the state QiaoTong reports. qtmodel 2.9.0 is the
first PyPI release that includes it, so on 2.9.x the guard is always active.
Live-tested backend limitations
Live testing on 2026-10-12 used QiaoTong 26.1.116.1010 with qtmodel 2.9.2. An isolated cantilever model passed reaction, bending-moment and translation checks; tip displacement differed from the shear-inclusive hand calculation by about 0.00125%. The same run confirmed these backend limitations:
GET-DEFORMATIONreturns an incorrectrz, equal toryin the tested cases. The solver database contains the correct Rz. Do not rely on the API Rz from this build; Qiao-MCP does not invent a replacement value.configure_live_load_systemis rejected withęŖē„åę°ļ¼clear_existing. The transversal workflow stops at system selection. International workflows share that prerequisite and were not run; individual international interfaces were not established as unsupported by this test.SET-SECTION-REINFORCEMENT,SET-CHECK-STIRRUPandSET-CHECK-CASEare rejected as unknown commands. Full reinforcement/check-snapshot acceptance remains open.
connected or compatible does not certify these features. Use a supporting
QiaoTong build and verify these features on a disposable model.
BS axle-force units also remain unconfirmed upstream.
Upgrading from 0.3.3
0.5.0 includes an incompatible correction to add_nodal_mass:
Use
massfor equal translational mass along X, Y and Z, for example{"node_id": 1, "mass": 10}. Optionalmass_x/mass_y/mass_zoverride individual directions; omitted directions usemass, whose default is zero.mass_rmis removed. Specify the intended rotational inertia axis withrot_x,rot_yorrot_z; do not mechanically rename the old parameter.Unequal directional masses require an SDK with
mass_xyzsupport (the supported PyPI 2.9 builds are 2.9.1 and 2.9.2). Older builds reject them before writing.
Earlier versions put some translational mass arguments into rotational fields. Upgrading the package does not repair existing models: read back previously written nodal masses and check them against the intended engineering values. Also review the changelog for stricter creep/material validation, fractional stage durations and the model-state requirements above.
Upstream qtmodel 2.9 alignment
The current reference is 0687ffe, labeled 2.9.2 but different from the PyPI
2.9.2 wheel. The earlier local baseline was 8ae651e, whose package matched that wheel
apart from its older version label.
Write safety. A write whose reply is lost raises
CommandOutcomeUnknownErrorand is no longer resent. Qiao-MCP reports it as an unknown outcome and tells the client to read the model back before doing anything else.Client-side validation. Many writes now reject malformed values before sending them. Qiao-MCP's schemas match: nonempty creep/shrink curves, 26- or 29-value section property tables, per-code creep parameter counts and
data_infofor custom materials.Nodal mass layout.
add_nodal_massdocumentsmass_infoas(mass, inertia X, Y, Z)and addsmass_xyzfor direction-specific masses. Qiao-MCP now sends that layout (see the changelog for the corrected fields).Existing tools expose new parameters. Construction stages support fractional durations and
sub_steps;create_materialaddsis_orthotropic/ey;set_supportandadd_elastic_supportaddcoordinate,extra_enabledand eight-valueextra_parameters. Unidirectional elastic supports also accept signedaxis_direction.add_influence_planeaddsalways_divided_by_beam_shape, andcreate_live_load_caseadds the per-sub-case boolean listsub_case_optimized. Omitted options keep legacy behavior; explicit options are checked against the installed signature before writing. Fractional stage creation is rejected on builds that would truncate it. These additions are included in 0.5.0; its catalog has 153 tools.Operation settings and cascade deletion.
configure_operation_stageexposes all four case lists, including transversal cases. The gateway methodupdate_operation_stage_settingremains available; supply all intended case lists because omitted/empty lists disable their analysis.remove_materialdefaults tocascade=True(also deletes associated tendon properties and tendons).remove_tendon_propertydefaults toFalse;Truedeletes referencing tendons and their loads without a dialog. Confirm the deletion scope first; omitting both name and index targets all objects.Dedicated tools and long-tail APIs. 0.5.0 adds dedicated transversal, international/planned-lane, reinforcement/check-snapshot and edit-readiness tools. Exact object deletion (
delete_model_object), factors, effective widths, statistics and structure merges remain available through the gateway. Every MDB write and the explicit CDB model-snapshot methods commit withupdate_model.Blocked in the gateway.
post_python_file(reads a local file and posts it to any URL for execution),prepare_model_edit(can irreversibly delete results; for the host application after user approval),export_api_help(writes SDK help to any local path), and the pre-existingensure_running,set_url,set_version,export_qt_helperandwait_solve(polls without a time limit; userun_analysis).
Upstream Source Changes (2026-09-04ā08)
These changes, first synced at 2316654 while still labeled 2.8.2, are part of 2.9.0:
ac4dbadmoves model queries fromodbtomdb. Qiao-MCP prefers the new namespace and falls back toodbwhen the method is absent. Existing-model section geometry usesmdb.get_model_section_shape;mdb.get_section_shaperemains the local geometry builder. Analysis results and views stay onodb.bc1ee99returns typed model records supportingto_dict()andMapping. The provider recursively converts them to plain JSON data for tools, resources and the API gateway, preserving original server fields. MDB query calls use read permission, not model-write permission, and never refresh the model. State-changing calls such ascalculate_section_propertystill require model-write permission.6821413splits model objects into domain modules and keepscore.model_dbas a compatibility export. The adapter does not depend on those internal paths.The September 7ā8 updates add
t_outto thickness definitions,show_viewto solving, twelve analysis-setting reset APIs and three batch thickness APIs. Qiao-MCP exposes the two new options on its existing tools; the fifteen management APIs are available through the discover-then-call gateway.
Build compatibility: these options and management APIs ship in the PyPI 2.9.x
releases; the PyPI 2.8.2 build (August 20) lacks them. Default tool calls keep
working on either; explicit t_out or show_view=True requests fail before
writing or starting a solve if the installed API does not accept them. A matching
version label alone does not establish feature support.
MCP tool-call examples with a supporting qtmodel build:
add_thickness(name="Deck", t=0.20, t_out=0.30, thick_type=0)
run_analysis(read_timeout=3600, show_view=True)
list_qtmodel_api(api_object="mdb", pattern="thickness")
call_qtmodel_api(api_object="mdb", method="copy_thicknesses", kwargs={"ids": [1, 2]})
list_qtmodel_api(api_object="mdb", pattern="reset_")thick_type means 0 = ordinary plate, 1 = ribbed plate, not equal/unequal
in-plane and out-of-plane thickness. Omitting t_out uses t for both.
show_view controls the QiaoTong progress window only: solving still uses
background execution, polling and MCP progress heartbeats.
Batch thickness APIs accept positive integer IDs or lists, not range strings.
remove_thicknesses([]) deletes nothing. Analysis resets delete settings, and
arrange_thickness_ids changes IDs and references; discover the intended method
and confirm the intended change before calling these write APIs.
To test the reference source without replacing the installed package (macOS/Linux):
PYTHONPATH=reference_codes/qtmodel-release/packages/qtmodel/src:src uv run pytest tests/ --ignore=tests/test_end_to_end.py -q0.x signals the API is still free to change; it is not a statement about
release quality. When moving to a new qtmodel minor line, raise the dependency
bound and add a row to the table above.
License
Copyright 2026 Sorata (https://github.com/SorataYang)
Licensed under the Apache License, Version 2.0. See LICENSE. Additional attribution notices are available in NOTICE.
Available Tools
15 toolsaccess_backendNative API discovery and calls / åē API ę£ē“¢äøč°ēØADestructive
Discover installed qtmodel methods and call a native API when a dedicated domain operation does not expose the required feature (ę£ē“¢å¹¶č°ēØéæå°¾åēę„å£).
Start with list_qtmodel_api for the mdb/odb/cdb object and a method pattern; then call_qtmodel_api with the verified method name and keyword arguments. Prefer the relevant domain operation for supported tasks because it supplies typed arguments and engineering guidance. Use inspect_bridge for connection diagnostics; method discovery alone does not establish desktop route availability or permission to mutate a model.
request.operation distinguishes inspection from execution. kwargs are native backend parameters with method-specific units; do not translate field names, invent signatures or infer units from another endpoint. Calls retain model-state guards and gateway management rules, but the selected method may overwrite/delete data or perform external effects. Review its discovered contract and current state before execution. The result is the normalized native response; unsupported routes and failed calls are errors. A lost write reply has an unknown outcome: inspect the affected objects before any retry, since no automatic rollback is offered.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
analyze_modelStructural analysis and dynamics / ē»ęę±č§£äøåØå设置ADestructive
Configure and run structural analysis, including masses, response spectra, time-history functions/cases and buckling settings (é 置并ę§č”ē»ęåę).
configure_analysis sets construction/creep/modal solver switches; update_bulking_setting sets basic buckling controls. Mass and dynamic function/case operations define solver inputs. set_gravity writes the project gravity setting. These configuration operations do not solve: choose run_analysis explicitly after model, loads and stages are ready. Use query_results for solved responses and manage_checks for concrete code verification, which is a separate computation.
request.operation selects its own fields and units. Spectrum/time-history functions and cases must be linked through the appropriate backend settings; use access_backend for options absent from a dedicated operation. Configuration defaults can overwrite prior settings: read them first when preserving an existing setup. run_analysis reports periodic progress while the solver runs, and only a successful terminal state is completion. Its read_timeout limits waiting, not the backend computation; timeout or connection loss does not cancel the solve. Check inspect_bridge before retrying. Neither a completed solve nor a configuration confirmation establishes structural safety or a passing code check.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
edit_boundariesSupports, links and constraints / ęÆęæčæę„äøēŗ¦ęADestructive
Edit mechanical boundary conditions on existing nodes and frame elements (ē¼č¾å·²ęčē¹åęē³»åå ēåå¦č¾¹ēę”ä»¶).
Use this domain for restraint or connection behavior. Choose request.operation by the physical relationship:
Node to ground: set_support for fixed/free DOFs; add_elastic_support for finite stiffness or one-way contact.
Node to node: add_elastic_link for a two-node connection; add_master_slave_link for one master and multiple coupled slaves.
Frame end: add_beam_constraint for I/J-end releases or end springs.
Weighted DOF relation: add_constraint_equation; remove_boundary removes a selected family using its node, element, name or boundary selector.
For group creation or stage activation use edit_construction; for actual node connectivity use edit_geometry. Resolve existing IDs with query_model. The same boolean has different mechanical meanings: True fixes a DOF in set_support, couples it in add_master_slave_link, and RELEASES it in add_beam_constraint. Use the selected branch's DOF order and stiffness units. For support extras, supplied extra_parameters enables them by default; extra_enabled=False clears them, while omitting both preserves the setting.
Writes can overwrite supports/releases or remove constraints and change stability. There is no backup, undo or automatic solve. The response is a confirmation, not a verified saved definition. Read boundaries back and check local axes before analyze_model; inspect an uncertain write before retrying to avoid duplicating a link or removing the wrong constraint.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
edit_constructionGroups and construction schedules / åē»äøę½å·„é¶ę®µADestructive
Manage structure/boundary/load groups and construction or operation-stage schedules, including activation and deactivation (ē®”ēåē»äøé¶ę®µęæę“»ćéå).
Group operations create/rename/remove groups or change memberships; add_to_structure_group accepts nodes and elements, and add_elements_to_group is its element-only compatibility form. add_construction_stage creates a stage; update_construction_stage edits its activation/deactivation lists. delete_structures/delete_boundaries/delete_loads deactivate groups in that stage without deleting their definitions. remove_construction_stage removes stages; merge_operation_stage builds the operation stage. set_self_weight_stage assigns self-weight timing and configure_operation_stage selects case families. Use edit_loads for physical loads and view_model for stage display only.
Select request.operation and its fields. Group names are exact references in three separate namespaces; referenced definitions must already exist. A missing optional list and an explicit empty list have different effects. configure_operation_stage requires all four case-family lists; [] disables that family. Removing a group does not remove its model entities; removing a stage and deactivating a group are separate operations. Writes refresh the model, with no solve or automatic schedule rollback. Read groups/stages through query_model before and after changing an existing schedule.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
edit_geometryNodes, elements and bridge layouts / čē¹åå
äøę”„ę¢åøē½®ADestructive
Create, edit, renumber, merge or remove model nodes and elements, including standard straight-girder workflows (ē¼č¾čē¹ćåå äøę åē“ēŗæę¢åøē½®).
Choose explicit coordinate rows or evenly spaced nodes, one frame or a node chain, and native element rows for plates/mixed batches. Targeted update_element_* operations change one property; update_element edits a record. update_node sets absolute coordinates, move_nodes adds offsets, and renumbering changes IDs. Simple/continuous bridge workflows create geometry and supports with their documented bearing assumptions. Use edit_properties to define materials/sections, edit_boundaries for other supports, and view_model to change only the display.
Supply request.operation and that branch's fields. Referenced materials, sections and nodes must exist; plate thickness is distinct from a frame section. Explicit IDs can be reassigned or reused by merging, so read query_model before constructing dependent connectivity. Renumbering requires both paired lists, or neither for a global renumber; deletion of all entities requires the operation's explicit confirmation.
Writes require an editable model and can invalidate solved data. Batch and workflow calls are not transactions: earlier writes can remain after failure. Inspect actual IDs/connectivity before retrying; a confirmation is not always a readback. Solving is a separate analyze_model operation.
Inputs: request (required). Returns: object
edit_loadsStatic load definitions / éåč·č½½äøē»åADestructive
Define static load cases/combinations and apply physical loads to existing nodes or elements (å®ä¹éåå·„åµē»åļ¼åå·²ęčē¹ęåå ę½å č½½č·).
Select request.operation for the target and load law:
create_load_case creates the case referenced by later assignments; add_load_combine defines combinations of existing case results.
apply_nodal_force targets nodes; apply_beam_distributed_load targets frames; add_plate_element_load targets plates. add_distribute_plane_load places a previously defined pattern, created natively via access_backend.
Temperature choices are final uniform temperature, linear difference, code-based section gradient or explicit custom layer rows.
Cable initial-tension, unstressed-length and support-settlement loads are separate physical inputs with their own native conventions.
Use edit_prestress for named tendon loads and edit_traffic for vehicle/lane cases. Group definitions, self-weight timing and stage activation belong to edit_construction. case_name selects the load case; group_name selects its activation group, so matching strings do not make them the same object. A static "擻载" category does not create a moving-load case.
Combination rows are [case_type, case_name, factor]: ["ST","Dead",1.2] references a static case; combine_type=1 adds effects and 3 forms an envelope. Replacing a combination writes its complete component list; None/[] supplies an empty definition. For forces and temperatures, use the selected operation's directions, row layout and units without inferring a conversion from a sibling.
Writes refresh the model and return confirmations, without solving or activating a stage. They can overwrite definitions or accumulate loads; there is no rollback of earlier calls. Query affected loads/cases before retrying an uncertain write, then explicitly configure stages and solve.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
edit_prestressTendon geometry and prestress / é¢ęå ä½äøé¢åŗåADestructive
Define named tendon paths and apply their prestressing loads to the model (å®ä¹å ·åé¢ę线形并ę½å 对åŗé¢åŗåč·č½½).
Choose one request.operation at each step:
create_tendon_property defines mechanical and loss parameters.
create_tendon_2d places a planar profile; add_tendon_3d places a spatial path. Both reference an existing property by its exact name.
assign_tendon_elements matches tendons to model elements.
apply_prestress targets existing tendon names in an existing load case.
Use edit_loads for cable-element initial-force/length loads, manage_checks for vertical-tendon checking parameters, query_model for saved definitions and query_results for discretized geometry or solved losses. A tendon property, its geometry and its applied load are three separate definitions.
For create_tendon_2d, position_type changes point_insert from coordinates to [end, direction, element_id] track positioning; its num counts tendons, not control points. Preserve the intended point order and positioning fields when replacing a path. apply_prestress accepts one name or a list; tension_type selects start, end or both ends. Its force is forwarded without conversion: match units to a verified QiaoTong prestress export.
Reusing a tendon name can replace its complete geometry; load assignment is not a promise that repeating the call is harmless. Writes refresh the model and return requested names/load summaries, not verified coordinates or effective prestress. No backup, rollback or analysis is performed. Read back geometry and assignments before retrying an uncertain write, then activate the load through edit_construction and run analyze_model before requesting loss/effective-stress results.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
edit_propertiesMaterials, sections and time effects / ęęęŖé¢äøę¶åå±ę§ADestructive
Create or modify the shared material, section and thickness definitions used by structural elements (ē¼č¾åå å ±ēØēęęćęŖé¢åęæåå®ä¹).
Choose request.operation by how the property is specified:
create_material and time/creep/shrinkage operations define material data.
create_section uses a parameterized shape; create_polygon_section uses closed loops/holes; create_line_width_section uses thin-wall segments; create_section_from_properties uses supplied engineering properties.
create_tapered_section references two existing end-section IDs; add_tapper_section_group sets variation along selected frame elements.
add_thickness supplies a plate thickness definition, not a frame section.
Use edit_geometry to assign an existing definition to elements; edit_prestress defines tendon properties. query_model reads saved values or trial-calculates candidate geometry without storing it. The selected branch determines shape fields and units: a thickness ID and a section ID occupy different namespaces even if their integers match.
update_section_property writes one full property vector at the selected end; calculate_section_property recalculates and stores properties for ALL existing sections. Do not use the latter as a readback of a manual override. remove_section deletes an explicit selection, while remove_unused_sections lets the bridge identify unreferenced definitions. Check element references before overwriting or removing shared data.
Writes refresh the model and return status/message confirmations. Requested IDs are not a guaranteed allocation result: read saved IDs and values through query_model before assigning them. There is no automatic backup, rollback or solve, and a definition change can affect many existing elements. Inspect an uncertain write before repeating it.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
edit_trafficMoving and transversal traffic / ē§»åØäøęØŖå擻载ADestructive
Configure the live-load system and define moving, transversal or international vehicles, lanes and cases (é 置擻载ä½ē³»å车č¾č½¦éå·„åµ).
Select the matching system explicitly. Traditional moving-load setup uses node tandem, influence plane, lane, vehicle and create_live_load_case. set_transversal_vehicle/lane/case define the transverse family; set_international_vehicle, create_en1991_vehicle, set_planned_lane and set_international_live_load_case handle AASHTO/BS/EN1991 definitions. remove_transversal_data removes an explicit transverse target. Use edit_loads for static loads, query_model for saved definitions, edit_construction to include cases in the operation stage and query_results for solved envelopes.
request.operation selects the family's exact schema. Operations with a typed request keep that request nested. Names/IDs refer to existing matching definitions; unit conventions differ between standards and must follow the selected schema rather than a blanket conversion. Full-definition updates reset omitted scalar fields; preserve verified exported values when retaining settings. Switching systems clears old definitions only with explicit clear_existing=true. Writes refresh the model without analysis; API availability also depends on the desktop build. Read back actual IDs/names before case activation and solving.
Inputs: request (required). Returns: object
inspect_bridgeBridge connection and readiness / čæę„äøå°±ē»Ŗē¶ęARead-onlyIdempotent
Diagnose the QiaoTong connection, active model state and edit readiness before choosing an engineering operation (åŖčÆ»ę£ę„čæę„ć樔åē¶ęäøē¼č¾ę”ä»¶).
Start with check_qiaotong_connection; get_model_status reports the active phase and allowed operations, while get_model_edit_readiness explains why an edit is blocked. These are diagnostics, not requests to open a model, clear results, prepare edits or switch stages. Use query_model for engineering records and manage_model_files to open/save a project.
Supply request.operation only; these diagnostic operations have no arguments. They return structured state and suggested next actions, including an unavailable connection as data. A successful diagnostic call does not itself mean the bridge is connected or editable. Read connected/status and capability fields before proceeding; the state can change between this check and a later command.
Inputs: request (required). Returns: object
manage_checksCode-check definitions and execution / č§čę£ē®å®ä¹äøę§č”ADestructive
Set up, edit, execute and inspect code-checking data, with distinct model snapshots and current concrete-checking context (ē®”ē樔åę£ē®å®ä¹åå½åę£ē®ēŖå£).
Model snapshot operations manage check materials/cases, reinforcement and stirrups using complete native definitions. setup_concrete_check imports an existing concrete case; check-context operations configure combinations, reinforcement, stirrups and analysis options, and manage_check_case_file opens/saves separate check files. run_concrete_check imports the named case and executes verification. get_check_data reads context definitions, settings or computed checking results. Use edit_properties for structural materials/sections and analyze_model for the structural solve.
request.operation selects the namespace, units and replacement behavior. Snapshot inputs preserve native exported units/enums; convenience length fields can use meters with documented internal conversions. A context read is not a lossless model snapshot. Full replacements require carrying forward retained values, and explicit empty assignment lists can clear data. Desktop capabilities are checked; unavailable routes fail without a successful commit. Save important data before destructive updates. Verification timeout does not cancel background computation; inspect state before retrying. Completion means the calculation finished, not that the structure passed: read and interpret the engineering results.
Inputs: request (required). Returns: object
manage_model_filesModel files and initialization / 樔åęä»¶äøåå§åADestructive
Open, save or initialize the active bridge project (ęå¼ćäæåęåå§å樔å).
Choose save_model_file to persist current work, open_model_file to replace the active project with a saved one, or initialize_model to clear it for a new model. Use edit_geometry for entity edits and manage_checks for separate concrete-checking files. Inspect connection/readiness first.
request.operation selects the matching fields. File paths are interpreted by the QiaoTong host, which may be a remote Windows machine, not by the MCP client's local filesystem. initialize_model requires confirm=true; open can discard unsaved work and save can overwrite an existing file. No automatic backup or rollback is provided. Save important work first and verify the active model after opening or initializing. Returns a completion message, without model contents or analysis results.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
query_modelModel records and geometry checks / 樔åę°ę®äøå ä½ę£ę„ARead-onlyIdempotent
Read saved model definitions, locate entities or inspect model geometry without changing it (åŖčÆ»ę„询樔åå®ä¹ćå®ä½äøå ä½).
get_model_info counts entities; get_model_data reads records by kind; query_model_data uses typed server filters/pages; find_entities locates IDs by geometry or attributes. list_group_members reads memberships. Named tendon, transversal and international getters read definitions. calc_section_property evaluates supplied candidate geometry without storing a section; validate_model checks connectivity and definition consistency, not structural adequacy. Use inspect_bridge for connection and permission diagnostics, query_results for solved responses, and manage_checks for the current concrete-checking context.
request.operation selects one schema branch. For query_model_data, its own typed request remains nested, e.g. operation="query_model_data", request={"kind":"nodes","node_ids":[1,2]}. IDs and names refer to the current model. List pagination belongs to the selected operation: generic getters slice locally, native queries page on the bridge. Preserve selectors between pages and inspect truncation metadata. These calls neither solve nor make the model editable; empty data is not proof of a missing entity when a filter or unavailable backend is involved.
Inputs: request (required). Returns: object
query_resultsStructural responses and tendon results / ē»ęååŗäøé¢ęē»ęARead-onlyIdempotent
Retrieve numerical structural responses from the bridge's result data (ä»ę”„éē»ęę°ę®čÆ»åē»ęę°å¼ååŗ).
Use after analyze_model has completed the relevant solve. Choose request.operation for the result family:
get_analysis_results: displacement/reaction uses node IDs; force/stress uses element IDs. stage_id=-1 is operation, 0 is the stage envelope, and a positive value selects one construction stage.
get_special_results: use kind plus mode for modal output, or the documented node/link/element selector for concurrent and special results.
get_live_load_results: request one maximum or minimum envelope extreme; get_tendon_loss_results reads losses for a named, activated stage tendon.
get_tendon_position_result/get_tendon_length_result: discretized tendon geometry; pre-solve availability depends on the bridge.
Example: request={"operation":"get_analysis_results","result_type":"force", "ids":[10,11],"stage_id":-1,"case_name":"Dead"} selects static operation results for elements 10 and 11. Full case identifiers must come from QiaoTong results/UI; never derive TV:/MV: prefixes from combination codes. Use query_model for saved definitions, manage_checks for code-check results and view_model for plots. Envelopes do not represent simultaneous loads.
Returns status/message with formatted numerical data. For paged list operations, follow the next-offset hint with unchanged selectors; slicing occurs locally after backend retrieval. Tendon and live-load operations have no pagination fields. These calls do not solve, refresh or certify result freshness. An empty response can indicate an absent case, inactive tendon or unavailable results; verify context before interpreting it as zero. Multiple calls need a stable solved model for comparison.
Inputs: request (required). Returns: Existing text responses also have a machine-readable status and message.
view_modelDesktop view and images / ę”é¢ę¾ē¤ŗäøå¾åADestructive
Control the desktop view and capture PNG images of the model or existing analysis results (ę§å¶ę”é¢č§å¾å¹¶ęŖå樔åęå·²ęē»ęå¾å).
Choose request.operation for the presentation task:
set_view_angle, set_render, display_ids, activate_structure and reset_display control camera, shading, labels and visible entities.
switch_display_stage selects a modeling stage by name; change_construct_stage selects a results stage by integer index.
save_model_screenshot captures the view; plot_analysis_result draws a selected solved component. Use query_results for numerical values.
set_unit changes display units; tool input units remain as documented.
Defaults are assignments, not toggles: set_render(flag=true) requests solid shading; display_ids applies BOTH flags and an omitted flag hides that label family. set_unit sends both force and length units each time. A screenshot defaults to the iso camera; view_angle="current" preserves the camera. If applying a preset fails, the current view is captured and the reply is a saved-path warning even when return_image=true.
A connected desktop view is required. Display operations return a confirmation and change presentation only; edit_geometry and edit_construction change entities and schedules. The two image operations write PNG bytes to file_path on the MCP host and overwrite that path. Use a distinct path to retain an earlier capture. return_image=true normally returns MCP Image content; false returns a saved-path message. No solve runs and no previous view is restored automatically. Confirm the selected stage/component before treating a plot as evidence.
Inputs: request (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 15 tools
The 15 tools map to distinct engineering domains (geometry, properties, boundaries, loads, prestress, traffic, construction, analysis, results, checks, files, view), and descriptions explicitly cross-reference siblings to guide selection. Minor overlap remains between edit_loads and edit_traffic (both load cases) and between query_model and query_results, but the descriptions clearly separate static vs moving loads and definitions vs solved results.
All names follow a consistent snake_case verb_noun pattern (edit_geometry, edit_loads, query_model, query_results, manage_checks, analyze_model, view_model, access_backend). The verb prefixes (edit_, query_, manage_, inspect_, analyze_, view_, access_) are used consistently across the set.
With 15 tools for a complex bridge-analysis domain, each tool covers a broad but distinct engineering area (e.g., one tool each for geometry, loads, prestress, traffic, checks). No tool appears redundant, and the count stays within a well-scoped 3-15 range for the domain complexity.
The surface covers the full structural lifecycle: model file management, geometry, properties, boundaries, static loads, prestress, moving loads, construction stages, analysis, results retrieval, code checks, and viewing. Minor gaps exist (e.g., no explicit load-case deletion or reporting tool), but access_backend is provided to reach the native long-tail API, making the set practically complete.
Maintenance
Related MCP Connectors
Build, check and report on MIDAS CIVIL NX bridge models and design tendons, with MIDAS IT plugins.
Structural FEM for AI agents, also as a Claude skill and plugin: frames, buckling, Eurocode checks.
AI Hub for AEC ā 50+ 3D formats, clash detection, ACC integration via Autodesk Platform Services.
Connects AI assistants to QCDatabase.AI for everyday construction quality-control work.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Bentley STAAD.Pro models for tasks like load case definition, data extraction, and property setting, running locally with multi-instance support and no cloud dependency.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to directly control Midas Civil NX for bridge structural analysis, allowing users to model, apply loads, and perform analysis through natural language descriptions.4MIT
- AlicenseAqualityBmaintenanceEnables AI agents to interact with Bentley STAAD.Pro models for tasks like load case definition, data extraction, and property setting through natural language.559MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding assistants to directly control CSI ETABS for structural and seismic analysis, including model inspection, material/section definition, frame generation, solver execution, and result extraction through natural language.2MIT