abaqus-mcp

v0.3.0
abaqus-mcp Checked 3 days ago Published 2 months ago

MCP server for Abaqus/Standard FEA: builds models, runs jobs, and autonomously diagnoses and fixes solver failures

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_environment

Report whether Abaqus is available and where jobs will run.

greeting

Return a friendly greeting to the user.

run_simulation

Run a single Abaqus job from an .inp deck and return its status report. Args: inp_path: Path to the Abaqus keyword input deck (.inp). job_name: Optional job name (defaults to the deck's file stem). cpus: Number of CPUs for the solver. timeout_s: Wall-clock ceiling for the solver run.

ParameterTypeDescription
inp_path *string
cpusinteger
job_name
timeout_sinteger

autocorrect_simulation

Run a job and autonomously fix failures (convergence, singularity, deck errors) by editing the deck from the .sta/.msg/.dat diagnostics, retrying up to max_iters times. Returns a full narrative of every attempt and fix. Args: inp_path: Path to the Abaqus keyword input deck (.inp). job_name: Optional job name (defaults to the deck's file stem). max_iters: Maximum run/fix iterations. cpus: Number of CPUs for the solver. timeout_s: Wall-clock ceiling per solver run.

ParameterTypeDescription
inp_path *string
cpusinteger
job_name
max_itersinteger
timeout_sinteger

get_job_status

Parse the current output files of a job and return a status summary.

ParameterTypeDescription
job_name *string

read_job_file

Return the tail of a job's output file for inspection. Args: job_name: The job to inspect. extension: One of inp, sta, msg, dat, log (without the dot). max_lines: Maximum number of trailing lines to return.

ParameterTypeDescription
job_name *string
extensionstring
max_linesinteger

get_spec_template

Return an example simulation spec (JSON) showing every field the model authoring pipeline accepts. Fill this in to describe a new simulation.

get_parametric_spec_template

Return an example spec that builds geometry parametrically (no CAD file). Also lists the supported shapes and their required params.

validate_simulation_spec

Check a simulation spec (JSON string) against the schema without running anything. Returns 'valid' or a list of problems to fix.

ParameterTypeDescription
spec_json *string

build_model

Build a meshed model from a simulation spec (JSON) and export an .inp deck, WITHOUT running it. Imports CAD (STEP/IGES), meshes, and applies materials/BCs/loads. Returns the deck path and mesh stats, or build errors. Args: spec_json: The simulation spec as a JSON string (see get_spec_template). job_name: Optional job name (defaults to the spec's model_name).

ParameterTypeDescription
spec_json *string
job_name

build_and_simulate

Full pipeline: build a model from a spec (CAD import + mesh + physics), then autonomously run and error-correct it. Returns build stats plus the run narrative. Args: spec_json: The simulation spec as a JSON string (see get_spec_template). job_name: Optional job name (defaults to the spec's model_name). max_iters: Maximum run/fix iterations.

ParameterTypeDescription
spec_json *string
job_name
max_itersinteger

get_results

Extract and report headline results (peak von Mises stress, peak displacement, plastic strain / yielding, net reaction force) from a finished job's .odb.

ParameterTypeDescription
job_name *string

list_jobs

List all jobs (run directories) known to the engine.

sweep_status

Summarise a parametric sweep: how many designs are valid, parked or abandoned, and where its results table lives. Args: sweep: The sweep name given when it was launched.

ParameterTypeDescription
sweep *string

list_parked_failures

List the designs a sweep could not resolve on its own. These are waiting for judgement: each either failed to converge, or converged to something the physical-validity gate rejected. Use get_parked_failure to read the diagnostics for one. Args: sweep: The sweep name.

ParameterTypeDescription
sweep *string

get_parked_failure

Full diagnostics for one parked design, to reason about before fixing. Returns the solver status, the error-level diagnostics, the tail of the .sta and .msg, any input-processor errors, the validity verdict, the fixes already attempted, and the deck itself. Args: sweep: The sweep name. design_id: Which parked design to inspect. deck_chars: How much of the .inp to include (from the start).

ParameterTypeDescription
design_id *string
sweep *string
deck_charsinteger

apply_reasoned_fix

Apply a reasoned deck edit to a parked design and re-run it. Edits are literal find/replace so the change is reviewable and lands in the fix log. Edits that remove output requests, or that delete most of the deck, are refused: a run is judged on its output, so deleting the output is not a fix. Args: sweep: The sweep name. design_id: The parked design to repair. edits_json: JSON list of {"find": ..., "replace": ...} applied in order. rationale: Why this edit should fix the diagnosed failure. Recorded. max_iters: Deterministic fix ite…

ParameterTypeDescription
design_id *string
edits_json *string
rationale *string
sweep *string
cpusinteger
max_itersinteger

get_fix_log

The record of every reasoned fix attempted in a sweep, successful or not. What failed, what was diagnosed, what changed, and whether it then converged. Args: sweep: The sweep name.

ParameterTypeDescription
sweep *string

check_validity

Judge whether a COMPLETED job is physically believable. A green solver status only means the analysis reached the end of the step. This reads the energy balance and reports whether the answer can be trusted: artificial (hourglass) energy carrying the load, kinetic energy dominating a quasi-static event, or total energy not being conserved. Args: job_name: The job to judge. quasi_static: True if the event is meant to be slow (a crush, a press). Kinetic energy is only a failure signal when it is.

ParameterTypeDescription
job_name *string
quasi_staticboolean

inspect_deck

Summarise what is actually in an Abaqus input deck. Reports the mesh, materials, sections, sets, steps, loads and boundary conditions a deck defines, plus any references pointing at names the deck never defines. Reads the file only: no solver, no licence token. Args: inp_path: Path to the .inp deck, or a job name under the runs directory.

ParameterTypeDescription
inp_path *string

start_sweep

Run a parametric sweep, parking whatever needs judgement. Each design goes through the autocorrect loop and then the validity gate. Anything that fails, or that converges to something not believable, is parked with full diagnostics rather than dropped. Resumable: re-running the same sweep name skips designs that already finished. This blocks until the sweep completes, so keep the design count small from an interactive client. For a long unattended sweep, run the sweep module as a detached process instead. Args: sweep_name: Name for this sweep; also it…

ParameterTypeDescription
designs_json *string
sweep_name *string
cpusinteger
max_itersinteger
quasi_staticboolean

whats_new

What changed in this release, and in earlier ones. Args: version: A specific version such as "0.3.0". Omit for the current release, or pass "all" for the whole history.

ParameterTypeDescription
versionstring