ansys-workbench-mcp
Provides tools for interacting with Ansys Workbench, including running Workbench journals, creating Steady-State Thermal systems, running MAPDL input files, and a demo thermal bar simulation.
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., "@ansys-workbench-mcpCreate a new steady-state thermal analysis project."
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.
Ansys Workbench MCP
This is a local MCP server for Codex, used to control Ansys Workbench, Mechanical, and MAPDL via scripting.
It is not an official Ansys project, nor does it simulate mouse clicks on the Workbench interface. It encapsulates the automation entry points already supported by Ansys:
RunWB2.exe -B -R <journal.wbjn>: Batch processing for running Workbench journals.Workbench scripting: Creating real
Steady-State Thermalproject systems.MAPDL batch: Running Mechanical APDL input files for solver-level automated verification.
Current Status
The current version is a minimum viable product (MVP) that can verify the control link from Codex to Workbench:
Check Workbench, Mechanical, and MAPDL paths.
Run arbitrary Workbench journals.
Create a real Workbench
Steady-State Thermalsystem.Run MAPDL input files.
Create and solve a simple steady-state thermal rectangular bar example.
It is not yet a full dual-end structure like Abaqus MCP. Abaqus MCP includes Abaqus/CAE plugins, command directories, result directories, and more in-session query tools; this Workbench version currently uses journal / batch interfaces. Future extensions could include Mechanical script execution, model tree queries, mesh/load encapsulation, and result export tools.
Related MCP server: fluent-research-mcp
Installation
Recommended installation location:
D:\ansys-workbench-mcpCreate a virtual environment and install dependencies:
cd D:\ansys-workbench-mcp
py -3.13 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txtAnsys Paths
The local machine is currently configured for Ansys 2025 R1:
Workbench: D:\Program Files\ANSYS Inc\v251\Framework\bin\Win64\RunWB2.exe
Mechanical: D:\Program Files\ANSYS Inc\v251\aisol\bin\winx64\AnsysWBU.exe
MAPDL: D:\Program Files\ANSYS Inc\v251\ansys\bin\winx64\ANSYS251.exeIf your installation path is different, you can override it using environment variables:
ANSYS_RUNWB2ANSYS_MECHANICALANSYS_MAPDL
Codex Configuration
Add the following content to your Codex configuration file:
%USERPROFILE%\.codex\config.toml[mcp_servers.ansys-workbench]
command = 'D:\ansys-workbench-mcp\.venv\Scripts\python.exe'
args = ['D:\ansys-workbench-mcp\mcp_server.py']
cwd = 'D:\ansys-workbench-mcp'
startup_timeout_sec = 30
tool_timeout_sec = 600
enabled = true
[mcp_servers.ansys-workbench.env]
ANSYS_RUNWB2 = 'D:\Program Files\ANSYS Inc\v251\Framework\bin\Win64\RunWB2.exe'
ANSYS_MECHANICAL = 'D:\Program Files\ANSYS Inc\v251\aisol\bin\winx64\AnsysWBU.exe'
ANSYS_MAPDL = 'D:\Program Files\ANSYS Inc\v251\ansys\bin\winx64\ANSYS251.exe'Restart Codex after modifying the configuration to allow the MCP server to reload.
MCP Tools
check_ansys_installation
Checks if the Workbench, Mechanical, and MAPDL executable paths exist.
run_workbench_journal
Executes a specified .wbjn Workbench journal via RunWB2.exe.
create_steady_state_thermal_system
Creates a real Workbench Steady-State Thermal system and saves the .wbpj project file. This action is equivalent to placing a "Steady-State Thermal" analysis system from the Workbench toolbox.
run_mapdl_input
Runs a Mechanical APDL input file using MAPDL batch processing.
create_and_run_thermal_bar_demo
Creates and solves a simple steady-state thermal rectangular bar example to verify if the Workbench / MAPDL automation link is functional.
Verified
The following have been verified on the local machine:
MCP stdio handshake can list tools.
check_ansys_installationcan detect Ansys 2025 R1 paths.create_steady_state_thermal_systemcan create a real Workbench steady-state thermal project.create_and_run_thermal_bar_democan complete a simple steady-state thermal solution and export nodal temperature results.
Future Plans
Add an entry point for Mechanical script execution.
Add advanced tools for importing geometry, setting materials, generating meshes, and applying temperature/convection boundary conditions.
Add exports for result images, temperature extremes, and node/element tables.
Add more complete examples and test scripts.
This server cannot be deployed
Maintenance
Related MCP Connectors
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Unified AEC tools: ACC, Revit, Navisworks, Twinmotion, and APS from one endpoint.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables natural language-driven ANSYS simulations (Fluent, Mechanical, Geometry) with automatic TUI script generation for reproducibility.416MIT
- AlicenseNot gradedqualityDmaintenanceAutomates Ansys Fluent simulation workflows, enabling environment checks, case execution, UDF management, and result export through MCP tools.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Ansys simulation software (Fluent, MAPDL, Mechanical, Geometry) through the Model Context Protocol.61MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to control Ansys engineering simulations (CFD, FEA, meshing, post-processing) through natural language commands via PyAnsys.11MIT