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.0.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.0-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ansys_mapdl_mcp-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 da27f1a86ef9b559acde69e0e31b62efe4b9b718b90062a92e99379a9532bc5b
MD5 6c2bab774ea9b25651f4de764aaa9e09
BLAKE2b-256 88497f902f321f095ae6c87028665db45772c742a3dfad7b0cf3312c14afaca6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_mapdl_mcp-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_mapdl_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 679d49b75f7b3ade32608a0dd66d46a6a91f55ffd6b16ba0ffd72383ba552577
MD5 31e07b3a91cfdeaaaa94d7a1dd2bdfb8
BLAKE2b-256 71c1b58e66c9527c6689d51bf14c296158dcf8c468f6c43eaa3ca802dc7396ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_mapdl_mcp-0.2.0-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