PyMAPDL MCP Server

July 7, 2026 ยท View on GitHub

PyAnsys Python Apache

PyMAPDL MCP Server provides a Model Context Protocol (MCP) server that enables AI assistants to interact with Ansys MAPDL (Mechanical APDL) through PyMAPDL. This server enables natural language interaction with MAPDL for finite element analysis tasks.

Overview

Key features:

  • Dynamic connection management: Launch new MAPDL instances, connect to existing ones, or disconnect on demand
  • Execute MAPDL commands: Run single commands or batch multiple commands for efficiency
  • Custom Python execution: Run arbitrary Python and PyMAPDL code in a persistent session
  • Advanced visualization: Create custom matplotlib and pyvista plots, or capture MAPDL native plots
  • Workflow guidance: Access comprehensive context and best practices for all phases of MAPDL simulations
  • Flexible deployment: Works with MAPDL running locally, remotely, or in Docker containers

https://github.com/user-attachments/assets/99b68fbd-2308-46a0-aa44-9684ae7400b7

Video 1: PyMAPDL MCP Demo

Installation

For users

Install the latest release with:

pip install ansys-mapdl-mcp

Or run directly without installing using uvx:

uvx --from git+https://github.com/ansys/pymapdl-mcp ansys-mapdl-mcp

For developers

git clone https://github.com/ansys/pymapdl-mcp.git
cd pymapdl-mcp
pip install -e .[tests]

Usage

For step-by-step setup instructions for VS Code, Claude Code, Claude Desktop, and other MCP-compatible clients, see the IDE and Client Configuration page in the documentation.

License

This project is licensed under the Apache 2.0 license agreement. See the LICENSE file for details.

Resources

For general PyAnsys questions, email pyansys.core@ansys.com.