Logo di Pyfluent MCP

Pyfluent MCP

Organizzazione
ansys

PyFluent MCP server

Autoreansys
Repositorypyfluent-mcp
LinguaPython
Fork
6
Stelle
59
Strumenti disponibili
0
Tipo di trasportostdio
LicenzaApache-2.0
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Pyfluent MCP mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    59 stelle e 6 fork nel repository collegato.

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.

Usa MCP Pyfluent MCP con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Pyfluent MCP, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Pyfluent MCP come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Pyfluent MCP.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "pyfluent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Pyfluent MCP, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Pyfluent MCP.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Pyfluent MCP per aiutarmi con questa attività?
Pyfluent MCP
Certo. Ho letto.
Ecco cosa ho trovato con Pyfluent MCP.

Domande frequenti

A cosa serve il server MCP Pyfluent MCP?

Pyfluent MCP è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Pyfluent MCP MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Pyfluent MCP con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Pyfluent MCP con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Pyfluent MCP, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Pyfluent MCP MCP a TypingMind?

Pyfluent MCP funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Pyfluent MCP MCP in TypingMind?

Pyfluent MCP mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Pyfluent MCP MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Pyfluent MCP richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇