Skip to main content
Glama
Ansys Research Runner MCP

Ansys Research Runner MCP

by miziyo

ansys-mcp

English 한국어 日本語

A local, closed-surface MCP and command-line runner for bounded thermal workflows on an installed Ansys system. The public repository contains project-owned source, schemas, generated test geometry, and tests only. It does not redistribute Ansys or PyAnsys tutorials, example datasets, product files, documentation, solver output, or qualification archives.

This is an independent project and is not an official Ansys product.

Supported core

The current implementation was validated against the following local generation. Discovery is version-dynamic, but a newly discovered release must be qualified before it is treated as supported.

Component

Validated version

Purpose

Ansys Student

2026 R1 (261)

Local product installation

ansys-common-mcp

0.3.3

MCP base

ansys-geometry-core

0.17.1

Confined CAD inspection

ansys-meshing-prime

0.10.4

Thermal mesh generation

MAPDL

2026 R1

Batch thermal solve

ansys-dpf-core

0.16.1

Result extraction

ansys-workbench-core

0.14.0

Optional lifecycle capability

ansys-mechanical-core

0.13.2

Optional capability probe

Python

3.12

Runtime

Fluent, CFX, ACP, optiSLang, System Coupling, AEDT, EDB, LS-DYNA, Twin Runtime, Rocky, Speos, EnSight, TurboGrid, and Dynamic Reporting are not public execution surfaces in this repository. Previous compatibility research for those products is not distributed here.

Related MCP server: flameox

What the runner does

  • discovers a standard Ansys installation without a fixed drive, profile, or checkout path;

  • confines model and recipe inputs to a configured root;

  • validates strict Pydantic/YAML contracts with explicit units;

  • resolves regions through a closed semantic selector AST;

  • compiles immutable solver-neutral CAE-IR;

  • enqueues work in a local SQLite WAL registry;

  • executes a fixed Prime → MAPDL → DPF thermal worker;

  • records bounded summaries and artifact hashes while keeping field arrays out of MCP responses;

  • owns and cleans only process trees identified by PID and creation time.

The activated v0.x physics envelope is intentionally narrow: one solid, isotropic thermal material, steady or transient conduction, prescribed temperature, convection, and uniform or bounded time-series volumetric heat generation. Unsupported geometry, selectors, physics, and lifecycle states fail closed.

MCP tools

The local STDIO server exposes ten tools:

  • doctor

  • inspect_model

  • resolve_regions

  • validate_run

  • plan_run

  • start_run

  • get_run_status

  • cancel_run

  • get_run_summary

  • list_run_artifacts

There is no tutorial catalog or tutorial runner. No tool accepts Python, APDL, Scheme, journals, Workbench scripts, shell commands, executable paths, RPC endpoints, or caller-selected solver switches.

Installation

git clone https://github.com/miziyo/ansys-mcp.git
cd ansys-mcp
uv sync --frozen
uv run ansys-research doctor --json

Standard installations are discovered automatically. A nonstandard installation can be selected for the current process:

$env:ANSYS_RESEARCH_ANSYS_ROOT = "<installation-root>"

No machine-level Ansys configuration is changed.

MCP configuration

After installing the package or tool so that ansys-research-mcp is on PATH:

{
  "command": "ansys-research-mcp",
  "args": ["--transport", "stdio"]
}

Only local STDIO is accepted.

Pi integration

Pi intentionally has no built-in MCP client. This repository therefore includes a reviewed Pi extension that bridges the same ten tools through the official MCP TypeScript SDK; it does not add another product execution surface.

Install the v0.13.0 release:

uv tool install "ansys-research-runner @ git+https://github.com/miziyo/ansys-mcp.git@v0.13.0" --python 3.12
pi install git:github.com/miziyo/ansys-mcp@v0.13.0

Restart Pi or run /reload, then use /ansys-mcp-status. The extension launches only the fixed ansys-research-mcp --transport stdio command, verifies that the server exposes exactly the expected ten tools, confines inputs to the current Pi project, and stores mutable MCP state under Pi's user configuration directory.

CLI

ansys-research doctor
ansys-research geometry-doctor
ansys-research solver-doctor --live
ansys-research inspect <model>
ansys-research resolve <recipe>
ansys-research validate <recipe>
ansys-research plan <recipe> [--run-id ID]
ansys-research run <recipe> [--run-id ID]
ansys-research status <run_id>
ansys-research cancel <run_id>
ansys-research results <run_id>
ansys-research artifacts <run_id>
ansys-research recover

See CLI documentation, architecture, and the supported envelope.

Public-content boundary

The following are deliberately absent from the public repository and release artifacts:

  • official or third-party tutorial source and notebooks;

  • tutorial inventories, qualification matrices, and copied narrative;

  • upstream example models, media, and datasets;

  • installed-product Help content or sample projects;

  • solver projects, meshes, results, logs, license data, and process snapshots;

  • generated runtime/, artifacts/, workspace/, environment, and cache directories.

The STEP files under src/ansys_research_runner/resources/geometry/ are generated from adjacent project-owned Python sources with documented dimensions. They are not copied Ansys examples.

Run the publication gate before a release:

uv run python scripts/sanitize_tracked_paths.py
uv run python scripts/audit_public_repository.py --tree-only

Development

uv sync --frozen
uv run ruff check .
uv run ruff format --check .
uv run mypy src/ansys_research_runner
uv run python -m pytest tests/unit tests/property tests/contract tests/integration tests/fault_injection -q
uv build

Live tests require an installed product and license and are not run by default.

License and trademarks

Project-owned source is licensed under the MIT License. Runtime dependencies are not vendored and remain under their respective licenses. See third-party notices.

Ansys and Ansys product names are trademarks or registered trademarks of Ansys, Inc. or its affiliates. Their use here identifies compatible separately installed products only and does not imply endorsement.

Available Tools

10 tools
cancel_runC

Request safe cancellation through the Job Registry.

Inputs: run_id (required). Returns: object

doctorC

Report installed host and PyAnsys capabilities.

Inputs: live, timeout_seconds. Returns: object

get_run_statusC

Return a job snapshot and its append-only event history.

Inputs: run_id (required). Returns: object

get_run_summaryC

Return bounded scalar results without any field arrays.

Inputs: run_id (required). Returns: object

inspect_modelC

Inspect one confined supported CAD model into a Geometry Graph.

Inputs: model_path (required). Returns: object

list_run_artifactsB

List artifact paths, hashes, media types, and sizes only.

Inputs: run_id (required). Returns: object

plan_runC

Compile a supported recipe into immutable reviewed CAE-IR.

Inputs: recipe_path (required), run_id. Returns: object

resolve_regionsC

Resolve semantic regions referenced by one Run Recipe.

Inputs: recipe_path (required). Returns: object

start_runA

Enqueue a run and immediately return its durable QUEUED snapshot.

Inputs: recipe_path (required), run_id. Returns: object

validate_runB

Validate one Run Recipe and all referenced contracts.

Inputs: recipe_path (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool maps to a distinct stage of the research-run lifecycle: environment check, geometry inspection, region resolution, validation, planning, execution, status, cancellation, summary, and artifact listing. Even adjacent tools like validate_run and plan_run are separated by validation versus immutable CAE-IR compilation.

    Naming Consistency4/5

    Tool names overwhelmingly follow a clear imperative snake_case verb_noun pattern (inspect_model, start_run, cancel_run, list_run_artifacts). The lone exception is doctor, a single-word diagnostic command that is conventional but breaks the pattern.

    Tool Count5/5

    Ten tools is well-scoped for the pipeline: four pre-execution/setup tools, three run-control tools, and three result/artifact tools. No tool feels redundant or out of place.

    Completeness5/5

    The set covers the full lifecycle from environment/model inspection through recipe validation and planning, run execution/status/cancellation, and post-run summary/artifact discovery. It deliberately avoids field-array transfer and recipe editing, which are likely outside the runner's scope.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Provides MCP access to plan and execute reproducible computational experiments with immutable execution plans, artifact provenance, verification checks, and support for direct, Slurm, and PBS backends.
      17
      Apache 2.0
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables agents to gather bounded, reproducible runtime evidence by coordinating local profilers, benchmark tools, and trace processors against explicit artifacts or captured commands. It exposes typed analysis and capture operations over MCP that return provenance-tracked results inline, with optional durable preservation and replay of prior evidence.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables coding agents to coordinate local profilers, benchmark tools, trace processors, and direct targets, turning explicit artifacts or commands into bounded runtime evidence with provenance, coverage, and limitations. Exposes named analysis and capture tools through MCP without workspace setup, with optional durable preservation.
      -
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to run bounded local profiling, tracing, benchmarking, and capture operations from explicit artifacts or commands, then inspect typed evidence, provenance, coverage, limitations, and preserved replay sources through MCP tools.
      -