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.

Download files

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

Source Distribution

ansys_common_mcp-0.3.3.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

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

ansys_common_mcp-0.3.3-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file ansys_common_mcp-0.3.3.tar.gz.

File metadata

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

File hashes

Hashes for ansys_common_mcp-0.3.3.tar.gz
Algorithm Hash digest
SHA256 33b9a4a8a8b19d7bcaea6e43581d317c6bf25da2a8db260a9b06aa4d3adb593c
MD5 e2f0ff0727123259e8b08767fcead06a
BLAKE2b-256 89e4539b5a2cddbae173af1d5b314e45cba29fdb5d3c568103255af4d04f40c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_common_mcp-0.3.3.tar.gz:

Publisher: ci.yml on ansys/pyansys-common-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_common_mcp-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_common_mcp-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c810c5de4fc8004c3421919c3cab687b515930fd1d46029103177faf14825b
MD5 bd1b343f8aa7259865c2359932137c63
BLAKE2b-256 677ce0e2e49d5a0b06bdbf7af4e812e6ee907773382d1be197a7d34a58ce8f2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_common_mcp-0.3.3-py3-none-any.whl:

Publisher: ci.yml on ansys/pyansys-common-mcp

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

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 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