Install
$ agentstack add mcp-ansys-pyaedt-mcp ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
[](https://docs.pyansys.com/) [](https://www.python.org/) [](https://opensource.org/licenses/Apache-2.0) [](https://github.com/astral-sh/ruff)
PyAEDT-MCP is an MCP (Model Context Protocol) server for Ansys Electronics Desktop (AEDT). It gives you reliable AEDT tools and a persistent PyAEDT-backed Python session for tasks that do not fit a dedicated tool.
What PyAEDT-MCP does
PyAEDT-MCP supports this runtime loop:
- Check whether AEDT is installed or already reachable.
- Launch AEDT or connect to an existing gRPC session.
- Open projects, create designs, run analyses, inspect the model, and export results.
- Use
run_python_codeorrun_python_scriptfor custom PyAEDT work.
Supported AEDT applications include HFSS, Maxwell 2D/3D, Q2D, Q3D, Icepak, Circuit, TwinBuilder, Mechanical, EMIT, RMXprt, and HFSS 3D Layout.
Install
Run without cloning
uvx --from git+https://github.com/ansys/pyaedt-mcp.git ansys-aedt-mcp
Install locally
pip install git+https://github.com/ansys/pyaedt-mcp.git
Or use uv:
uv pip install git+https://github.com/ansys/pyaedt-mcp.git
Install for development
git clone https://github.com/ansys/pyaedt-mcp.git
cd pyaedt-mcp
pip install -e .
pre-commit install
Or use uv:
git clone https://github.com/ansys/pyaedt-mcp.git
cd pyaedt-mcp
uv pip install -e .
pre-commit install
Requirements
- Python 3.11 or later
- AEDT 2022 R2 or later for gRPC workflows
- A local AEDT installation or a reachable remote AEDT gRPC endpoint
Quick start
- Start AEDT in gRPC mode when connecting to an existing session:
``bash "C:\Program Files\ANSYS Inc\v261\AnsysEM\ansysedt.exe" -grpcsrv 50051 ``
Or, just launch AEDT normally. It automatically starts a gRPC server.
> PyAEDT-MCP can also launch AEDT for you if it is not already running.
- Start PyAEDT-MCP:
``bash ansys-aedt-mcp ``
You can also use one of these common variants:
```bash # Connect on startup ansys-aedt-mcp --connect --machine localhost --port 50051
# Expose HTTP transport instead of STDIO ansys-aedt-mcp --transport http --http-host 127.0.0.1 --http-port 8080
# Register optional context helper tools ansys-aedt-mcp --include-context
# Hide AEDT-only tools until a connection exists ansys-aedt-mcp --dynamic-tool-discovery ```
- Point an MCP client at the server:
*Visual Studio Code
``json { "mcp": { "servers": { "pyaedt-mcp": { "command": "uvx", "args": [ "--index-strategy", "unsafe-best-match", "--from", "git+https://github.com/ansys/pyaedt-mcp.git", "ansys-aedt-mcp" ] } } } } ``
Claude Desktop
``json { "mcpServers": { "pyaedt-mcp": { "command": "uvx", "args": [ "--from", "git+https://github.com/ansys/pyaedt-mcp.git", "ansys-aedt-mcp" ] } } } ``
Tool reference
For information on the available tools, see Tools and capabilities in the PyAEDT-MCP documentation.
How the repository is organized
The core package is in src\ansys\aedt\mcp:
| File | Role | | --- | --- | | __main__.py | Module entry point that forwards to the CLI launcher | | server.py | CLI parsing, app setup, context creation, startup cleanup, and transport selection | | tools.py | Runtime tool implementations for AEDT lifecycle, project, scripting, and export workflows | | helpers.py | Small utilities for probing endpoints, normalizing versions, and extracting model data | | prompts.py | System prompt content shown to MCP clients | | contexts.py | Optional context helper tools enabled by --include-context | | toolsets.py | toolsets://definition resource used for logical tool discovery | | aedt_helper\startup_code.py | Startup code loaded into the persistent Python session |
Other top-level folders include:
doc\source: Sphinx documentationtests: Unit and integration coveragedocker: Container assetsexamples: Sample assets used by the project
Development workflow
To contribute, see Contribute in the PyAEDT-MCP documentation.
Add a new tool
Most tools require a live AEDT connection. Tag those tools with REQUIRES_AEDT_TAG in src\ansys\aedt\mcp\tools.py so they can be hidden until the session exists when dynamic discovery is enabled.
For more information, see Add a new tool in the PyAEDT-MCP documentation.
License
Apache 2.0 license. See [LICENSE](LICENSE).
Related projects
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ansys
- Source: ansys/pyaedt-mcp
- License: Apache-2.0
- Homepage: https://aedt-mcp.docs.pyansys.com/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.