Skip to main content

Model Context Protocol (MCP) server for Ansys MAPDL through PyMAPDL

Project description

PyMAPDL MCP Server

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

Your browser does not support the video tag.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys_mapdl_mcp-0.2.1.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_mapdl_mcp-0.2.1-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file ansys_mapdl_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: ansys_mapdl_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for ansys_mapdl_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 929a9f7bc8dd46b82646edb415100fc163df608fc0a08c69cd4658eed023a8cf
MD5 bb440c7d3867fbf47d1485fe500f88b1
BLAKE2b-256 e5aab316f66aaabdd46946af493c9e8f6994588e048a5be01f4019bf95365c3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_mapdl_mcp-0.2.1.tar.gz:

Publisher: ci.yml on ansys/pymapdl-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_mapdl_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ansys_mapdl_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for ansys_mapdl_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55f05ad91c6a448acbccdf4cb496b9ad3a0df13d02dfb740b0f4ab4af39c3d58
MD5 29e942d065f54d5cc90a824e4cde6f22
BLAKE2b-256 3163e0094a1544218283ff78b354d8079fde156f9892c2d595a1cda4c4aafb2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_mapdl_mcp-0.2.1-py3-none-any.whl:

Publisher: ci.yml on ansys/pymapdl-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page