Skip to main content

PyAnsys Common MCP

PyAnsys Python Apache

PyAnsys Common MCP provides the infrastructure for building Model Context Protocol (MCP) servers for PyAnsys libraries.

Overview

This package provides the foundation for creating MCP servers that enable AI assistants (like Claude, ChatGPT) to interact with Ansys products through PyAnsys libraries.

Key features:

  • Persistent Python sessions: Maintains stateful code execution across multiple AI requests.
  • Lifecycle management: Handles startup, cleanup, and errors automatically.
  • Extensible architecture: Uses base classes and patterns for product-specific implementations.
  • Logging infrastructure: Uses pre-configured logging that does not interfere with the MCP protocol.

Installation

For users

The ansys.common.mcp package currently supports Python 3.12 through Python 3.14 on Windows, Mac OS, and Linux.

Install the latest package for use with this command:

pip install ansys-common-mcp

Alternatively, install the latest PyAnsys Common MCP GitHub package with this command:

pip install git+https://github.com/ansys/pyansys-common-mcp.git

For developers

If you are contributing to PyAnsys Common MCP or creating custom servers, install the package in developer mode:

# Clone the repository
git clone https://github.com/ansys/pyansys-common-mcp.git
cd pyansys-common-mcp

# Install in editable mode with development dependencies
pip install -e .[dev]

# Or install documentation dependencies for building documentation
pip install -e .[doc]

Quick start

To create an MCP server for your PyAnsys library, follow these three main steps:

  1. Define your custom context: Extend the PyAnsysBaseAppContext dataclass to store the product-specific state.
  2. Implement your MCP server: Extend the PyAnsysBaseMCP base class with startup and cleanup logic.
  3. Create MCP tools: Define tools that interact with your product.

Real-world example

For a complete, production-ready implementation, see the PyMAPDL-MCP repository.

Resources

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

Metadata

Release files for ansys-common-mcp 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansys-common-mcp 0.3.5
File Size Uploaded
ansys_common_mcp-0.3.5.tar.gz 24.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansys-common-mcp 0.3.5
File Interpreter ABI Platform
ansys_common_mcp-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 52.7 kB

Release files / ansys_common_mcp-0.3.5.tar.gz

Download URL ansys_common_mcp-0.3.5.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
992109578c8b3905d9e6561fefdaa8bfe88e97533f590ca31a1e48836e1cadab
BLAKE2b-256 checksum
How to use checksums
cc2d250c5333192eab68c8cac7b5df1574de5b79a0009a8f5bf199833a47f579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / ansys_common_mcp-0.3.5-py3-none-any.whl

Download URL ansys_common_mcp-0.3.5-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79d5b175ef5797abeb3dd8b1a863468387bff5f67b82cbf69e8067b746c4e934
BLAKE2b-256 checksum
How to use checksums
dc2998608d1e1a179f1f4cdebcea5fe8596fffd6687ac60dc3050cd07d66f47b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.6

2 release files

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page