Pyfluent MCPのロゴ

Pyfluent MCP

組織
ansys

PyFluent MCP server

公開者ansys
リポジトリpyfluent-mcp
言語Python
フォーク
6
スター
59
利用可能なツール
0
通信方式stdio
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    Pyfluent MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには59件のスターと6件のフォークがあります。

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で「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  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モデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Pyfluent MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Pyfluent MCPを使ってこのタスクを手伝ってもらえますか?
Pyfluent MCP
はい、読みました。
Pyfluent MCPで調べた結果をお伝えします。

よくある質問

Pyfluent MCP MCPサーバーは何に使いますか?

Pyfluent MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでPyfluent MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでPyfluent MCPを利用できます。

TypingMindでPyfluent MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Pyfluent MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Pyfluent MCP MCPをTypingMindに接続するにはどうすればよいですか?

Pyfluent MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでPyfluent MCP MCPのどのようなツールを利用できますか?

Pyfluent MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Pyfluent MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Pyfluent MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇