Tools and capabilities#
Tool availability model#
PyMechanical-MCP uses connection-aware visibility.
Offline-capable tools are available before any Mechanical session.
Live-session tools use
REQUIRES_MECHANICAL_TAGand remain hidden until you successfully calllaunch_mechanicalorconnect_to_mechanical.If you use
--connect-on-startup, live-session tools are available immediately, and PyMechanical-MCP locks the connection lifecycle tools.
Always available (before connection)#
Tool |
Description |
|---|---|
|
Verify that Mechanical is installed and discoverable. |
|
Inspect current MCP connection state. |
|
List running Mechanical processes. |
|
Start a new Mechanical session. |
|
Attach to an existing Mechanical instance. |
|
Return workflow guidance by topic. |
Available after connection#
Tool |
Description |
|---|---|
|
Gracefully detach from Mechanical. |
|
Execute Python snippets in the persistent session. |
|
Produce custom plots from analysis data. |
|
Clear context and release session resources. |
|
Execute a Mechanical script string or read one from a local file with |
|
Save active project. |
|
Open an existing MECHDB project. |
|
Upload local file to Mechanical working directory. |
|
Download file from Mechanical working directory. |
|
List files in working directory. |
|
Solve active analysis system. |
|
Return a structured model summary (geometry, mesh, analyses, results). |
|
Capture current Mechanical view. |
|
Retrieve Mechanical logs for diagnostics. |
|
Export result objects and artifacts. |
Note
When you run with --connect-on-startup, PyMechanical-MCP disables
the launch_mechanical, connect_to_mechanical, and
disconnect_from_mechanical tools by design.
Guideline topics#
get_guidelines_for supports these topic values:
workflowgeometrymaterialsmeshinganalysis_setupboundary_conditionssolutionpostprocessingnamed_selectionsgeneral
Tool set discovery resource#
PyMechanical-MCP exposes toolsets://definition for service-side discovery.
The payload groups tools into:
lifecycle
scripting
project-management
file-management
simulation
inspection
results
guidelines
This resource is read-only metadata. It does not modify runtime behavior.
Example workflows#
Static structural run#
check_mechanical_statuslaunch_mechanicalorconnect_to_mechanicalupload_file(geometry)run_python_script(import geometry, assign material, and mesh)run_python_script(apply boundary conditions and loads)solve_analysisexport_resultsandscreenshot
Modal analysis#
Connect to Mechanical.
Import the model and define fixed supports.
Create modal analysis settings with script tools.
Run
solve_analysis.Use
create_custom_plotfor mode-shape reporting.
Checks after solving#
get_model_infofor verifying solved stateget_mechanical_logsfor warnings and errorsrun_python_codefor custom data extractionexport_resultsfor report artifacts
Feature reference#
For complete parameter signatures and return values for all tools, see API reference.
Next steps#
See Best practices for recommendations on using the tools effectively.
Explore Review engineering workflow examples for end-to-end workflow examples.
For startup and environment options, see Configuration.