Model Context Protocol (MCP) server for Ansys MAPDL through PyMAPDL
Project description
PyMAPDL MCP Server
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
matplotlibandpyvistaplots, 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
- PyMAPDL-MCP documentation
- PyMAPDL Documentation
- Model Context Protocol
- FastMCP Documentation
- Ansys MAPDL
- Repository's Issues page
- Repository's Discussions page
For general PyAnsys questions, email pyansys.core@ansys.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
929a9f7bc8dd46b82646edb415100fc163df608fc0a08c69cd4658eed023a8cf
|
|
| MD5 |
bb440c7d3867fbf47d1485fe500f88b1
|
|
| BLAKE2b-256 |
e5aab316f66aaabdd46946af493c9e8f6994588e048a5be01f4019bf95365c3c
|
Provenance
The following attestation bundles were made for ansys_mapdl_mcp-0.2.1.tar.gz:
Publisher:
ci.yml on ansys/pymapdl-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_mapdl_mcp-0.2.1.tar.gz -
Subject digest:
929a9f7bc8dd46b82646edb415100fc163df608fc0a08c69cd4658eed023a8cf - Sigstore transparency entry: 1777574793
- Sigstore integration time:
-
Permalink:
ansys/pymapdl-mcp@15256fcb438c18595b984023114f54e0cb56d4f3 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@15256fcb438c18595b984023114f54e0cb56d4f3 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55f05ad91c6a448acbccdf4cb496b9ad3a0df13d02dfb740b0f4ab4af39c3d58
|
|
| MD5 |
29e942d065f54d5cc90a824e4cde6f22
|
|
| BLAKE2b-256 |
3163e0094a1544218283ff78b354d8079fde156f9892c2d595a1cda4c4aafb2d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_mapdl_mcp-0.2.1-py3-none-any.whl -
Subject digest:
55f05ad91c6a448acbccdf4cb496b9ad3a0df13d02dfb740b0f4ab4af39c3d58 - Sigstore transparency entry: 1777574857
- Sigstore integration time:
-
Permalink:
ansys/pymapdl-mcp@15256fcb438c18595b984023114f54e0cb56d4f3 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@15256fcb438c18595b984023114f54e0cb56d4f3 -
Trigger Event:
push
-
Statement type: