Pyfluent MCP 标志

Pyfluent MCP

组织
ansys

PyFluent MCP server

发布者ansys
代码仓库pyfluent-mcp
语言Python
复刻数
6
星标数
59
可用工具
0
传输类型stdio
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    Pyfluent MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 59 个 Star 和 6 个 Fork。

PyFluent-MCP

PyAnsys Python Apache

PyFluent-MCP (ansys-fluent-mcp) gives you a Model Context Protocol (MCP) server that lets AI assistants interact with Ansys Fluent through PyFluent.

PyFluent-MCP is built on PyAnsys Common MCP (ansys-common-mcp), the shared PyAnsys MCP foundation.

You can run this package as a standalone MCP server. It also serves as the open-source core + solve foundation for higher-level products. Those products depend on this package and call solve tools over MCP. Dependency direction stays one-way. This package never depends on, imports, or references products that consume it.

For architecture details, diagrams, and full tool references, see the PyFluent-MCP documentation. For contribution information, including how to build documentation locally, see Contribute.

Overview

The server is a stateless MCP leaf. Your MCP host (VS Code Copilot, Claude Desktop, Cursor, or a custom agent) calls a focused tool set. Fluent mutations run only through validated MCP tools, and Python executes only through a validated, sandboxed execution path.

Key features include:

  • Manage connections dynamically: Launch a new Fluent session, attach to an existing session (local or remote), or disconnect on demand.
  • Inspect the live settings tree: Explore the active Fluent settings API, named objects, allowed values, and targeted context.
  • Run code through a validated execution path: Run or precheck Python in a persistent session behind an AST sandbox.
  • Review results and diagnostics: Summarize setup, build a simulation report, inspect mesh quality, list fields, compare case files, and capture screenshots.
  • Extend with pluggable backends: Use the local PyFluent backend by default and add execution backends through separately installed entry-point packages.

PyFluent-MCP itself is deterministic infrastructure. It does not own model runtime selection, provider orchestration, transport policy, retries, or agent loops. Those concerns live in higher-level host products such as fluids-mcp, which consume this package over the MCP wire.

Tool surface

You can use 20 tools exposed by the server:

GroupTools
Connection and sessionconnect, disconnect, session_status, solver_status
Schema discoveryfind_api, get_help, get_state, get_targeted_context
Named objectslist_named_objects, find_named_object, select_named_objects
Execution and validationrun_code, validate_code
Reporting and inspectionsummarize_setup, simulation_report, screenshot
Mesh/fields/comparemesh_quality, list_fields, compare_files

Requirements

RequirementWhen neededNotes
Python 3.12 or laterAlways3.12, 3.13, and 3.14 supported
Core runtime dependenciesAlways (installed automatically)ansys-common-mcp, fastmcp, httpx, pydantic
PyFluent (ansys-fluent-core 0.27 or later)To drive a live Fluent session (connect, run_code, get_state, mesh_quality, …)Installed automatically as a required dependency
A licensed local ANSYS Fluent installationTo actually launch/attach a solverPyFluent talks to this Fluent installation over gRPC
h5py 3.0 or laterOnly for compare_files on .h5/.cas.h5 filesThe file-probe extra

PyFluent is required for live-session tools and is installed automatically. Offline-only tools such as find_api, get_help, and validate_code still work without a local Fluent installation. Any tool that touches a solver, including connect, run_code, get_state, summarize_setup, mesh_quality, and screenshot, requires a licensed Fluent installation on your machine.

Installation

Install the latest release:

bash
pip install ansys-fluent-mcp

To add the optional HDF5 file-probe support used by compare_files:

bash
pip install "ansys-fluent-mcp[file-probe]"

If you want an editable developer installation with test dependencies:

bash
git clone https://github.com/ansys/pyfluent-mcp.git
cd pyfluent-mcp
pip install -e ".[tests]"

Usage

Use STDIO for desktop MCP clients that launch the server process. Use HTTP only on trusted networks or behind infrastructure that provides authentication and TLS.

Run the server over STDIO (the default MCP transport):

bash
ansys-fluent-mcp

Or run the server over streamable HTTP:

bash
ansys-fluent-mcp --transport http --host 127.0.0.1 --port 8000

Starting the MCP server only makes the tools available. You still need an MCP-compatible client, such as VS Code Copilot, Claude Desktop, Cursor, or another assistant host, to connect to it and call those tools. Register the server in the client's MCP configuration after choosing a transport.

If you run a local Windows checkout, point your client at the virtual environment entry point. For VS Code MCP support, add a server entry like this to your VS Code MCP configuration:

json
{
  "servers": {
    "ansys-fluent-mcp": {
      "type": "stdio",
      "command": "D:\\Development\\fluent\\pyfluent-mcp\\.venv\\Scripts\\ansys-fluent-mcp.exe"
    }
  }
}

Configuration

You configure the server through FLUIDS_MCP_* environment variables. Common variables are listed here:

VariableEffect
FLUIDS_MCP_SETTINGS_JSONOverride the bundled settings schema with an external file
FLUIDS_MCP_LOG_LEVELSet the log level (default INFO)
FLUIDS_MCP_DISABLE_SESSION_LOGSSet to 1 to disable session logs
FLUIDS_MCP_MAX_STEPSSet a cap on MCP tool-loop iterations (default 30)

Host ownership and architecture boundaries

ansys-fluent-mcp is the deterministic MCP substrate and solve leaf. It intentionally does not own:

  • model provider selection
  • model routing
  • transport orchestration
  • caching policy
  • retry management
  • agent loops
  • workflow reasoning

Those capabilities belong in higher-level orchestration products such as fluids-mcp, VS Code Copilot agents, Claude Desktop workflows, or other external MCP hosts.

This package focuses on:

  • Fluent tool execution
  • schema retrieval and grounding
  • settings introspection
  • validated Python execution
  • deterministic MCP tooling
  • backend abstractions

The architecture intentionally keeps dependency flow one-way:

text
agent/orchestrator/runtime
            ↓
     ansys-fluent-mcp

The substrate never depends on the orchestration layer.

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.

将 Pyfluent MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Pyfluent MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Pyfluent MCP 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Pyfluent MCP MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "pyfluent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Pyfluent MCP MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Pyfluent MCP MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Pyfluent MCP 帮我完成这项任务吗?
Pyfluent MCP
当然。我已阅读。
以下是我使用 Pyfluent MCP 得到的结果。

常见问题

Pyfluent MCP MCP 服务器有什么用途?

Pyfluent MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Pyfluent MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Pyfluent MCP,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Pyfluent MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Pyfluent MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Pyfluent MCP MCP 连接到 TypingMind?

Pyfluent MCP 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Pyfluent MCP MCP 在 TypingMind 中提供哪些工具?

Pyfluent MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Pyfluent MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Pyfluent MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇