
AgentFEM
io.github.haoming-luo由 GitHub 帳號 haoming-luo 發布v0.1.0更新於 Oct 24, 2026
Build, run, inspect, and verify finite-element simulations with AgentFEM.
概覽
AgentFEM MCP 讓 AI 助理透過 AgentFEM 科學引擎建立、驗證、執行並檢視有限元素模擬專案。
- 可以做什麼
- 檢視已安裝的 AgentFEM 執行環境與其能力概況,並依版本相符的範本建立專案。驗證專案,分別回報程序成功與科學驗收結果。讀取專案及最近一次執行的識別資訊。啟動隔離的序列或 MPI 模擬執行,並查詢其持久背景工作狀態。讀取精簡的結果摘要與可信狀態,僅在需要時要求完整證據。
- 適用情境
- 當你希望助理用 AgentFEM 建立並執行有限元素研究,同時讓專案、執行紀錄與數值證據保持可檢視,而不是手動操作求解器命令列時使用。
- 執行需求
- 透過 uvx 從 PyPI 套件 agentfem-mcp 以 stdio 在本機執行(也可 pip install)。必須已安裝 AgentFEM 本體;可用 AGENTFEM_COMMAND 指定其執行檔路徑。應以 AGENTFEM_MCP_ROOTS 列出核准的專案根目錄,未設定時僅限工作目錄。macOS 或 Linux 桌面用戶端可用 .mcpb 套件;Windows 需依 WSL2 方式設定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 AgentFEM,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
AgentFEM MCP
[CI] [PyPI] [MCP Registry] [AgentFEM MCP server]
One finite-element platform. Any compatible agent. Evidence intact.
AgentFEM MCP gives Codex, Claude, and other MCP-compatible agents a small, stable tool surface for building and running inspectable finite-element projects. AgentFEM remains the deterministic scientific engine; the agent interprets intent and explains evidence.
Install from PyPI · Discover in the official MCP Registry · Read the AgentFEM agent guide
For a supported desktop client on macOS or Linux, download the tiny
AgentFEM-0.1.0.mcpb connection bundle from the
0.1.0 release.
It installs only the interface; the AgentFEM scientific runtime remains the
single source of solver capabilities, upgrades, and results.
It exposes seven tools—not hundreds of solver internals:
Bring it to life
Want to see the underlying workflow before installing?
- Explore a 3D structural-design case: compare support weight and deflection under the same load. The public browser edition uses precomputed candidates.
- Try the simulation-to-surrogate mini-lab: ten real FEM outputs, a small NumPy model, and an interactive notebook.
- Follow the AI-assisted cantilever quick start: create a readable project, run it, and inspect its numerical result.
AgentFEM must already be installed. With uvx, Codex needs one command and the
adapter remains isolated from the numerical environment:
Or install the lightweight adapter in the active environment:
The 0.1.0 lifecycle is acceptance-tested with the public AgentFEM 0.3.3 CLI contracts and the current 0.3.7 development line.
Give your agent a project root, not your whole home directory.
Codex
Codex officially supports local stdio MCP servers. Confirm the connection with
codex mcp list, then begin with:
Use AgentFEM to create, validate, run, verify, and briefly explain a 2D cantilever. Keep the project and result paths visible.
Claude Desktop and compatible clients
On macOS or Linux, open the release's .mcpb file in a supporting desktop
client and choose the one project folder the connection may access. AgentFEM
must already be installed. Windows support currently uses the explicit WSL2
configuration from the AgentFEM guide rather than claiming a native bridge.
Claude Code:
Claude Desktop configuration:
If a desktop app cannot see the activated conda environment, set
AGENTFEM_COMMAND to the absolute agentfem executable. The official macOS
runtime, AgentFEM WSL2 runtime, and common agentfem-env/fenicsx-env layouts
are also detected automatically.
VS Code and other models
VS Code can place the same local server in .vscode/mcp.json:
The server is model-neutral. A DeepSeek or other model can use it through any host that implements local MCP tools. ChatGPT connectors require a public HTTPS server; AgentFEM will add that route only with a real authenticated compute and artifact boundary, rather than silently uploading local models through this adapter.
Directory health image
The repository's minimal, unprivileged Dockerfile exists for MCP directory
startup and tool-introspection checks. It intentionally contains the public MCP
adapter, not a second AgentFEM solver distribution. Real simulations should use
the installed AgentFEM runtime and an explicit local project root.
Local Codex plugin
This repository contains a portable AgentFEM workflow skill and a local Codex
marketplace under .agents/plugins/. It combines scientific operating guidance
with the same MCP server; it does not create a second solver interface.
The contract
- No language model or API key is embedded in AgentFEM MCP.
- No shell command or arbitrary Python string is accepted from a tool call.
- All project paths must remain under explicitly approved roots.
- Numerical runs occur in child processes, isolating PETSc/MPI lifetime from the MCP server.
completed,verified, andvalidatedremain different scientific states.- Compact system discovery preserves AgentFEM's website, repository, citation, and its consent-first, once-per-release-series community invitation. The MCP server never performs an account action for the user.
Environment controls
With no root configured, the server restricts access to its working directory. The default maximum is 16 MPI ranks and can only be changed by the server operator, not by an agent tool call.
Development
See SECURITY.md for the trust boundary and CONTRIBUTING.md for contribution expectations. The first release evidence records protocol, package, and real-solver acceptance separately.
AgentFEM MCP is Apache-2.0 licensed and maintained as an official companion to AgentFEM.
來源:README.md,提交 5d17b48
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。