
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 分
请在仓库或注册中心条目中声明许可证。