Skip to content
MCP server
Registry

AgentFEM MCP Server

Build, run, inspect, and verify finite-element simulations with AgentFEM.

AgentFEM scores 64 (Good), licensed Apache 2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under Version control. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by haoming-luoApache 2.0Python1 stars
Trust score
64Good
Trust score 64 of 100, Good

Good trust

64 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 64 comes from

22 + 20 + 1 + 10 + 4 + 7 = 64. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "haoming-luo-agentfem-mcp": {      "command": "uvx",      "args": [        "agentfem-mcp"      ],      "env": {        "AGENTFEM_MCP_ROOTS": "",        "AGENTFEM_COMMAND": ""      }    }  }}

Environment variables

NameRequiredNotes
AGENTFEM_MCP_ROOTSOptionalApproved AgentFEM project roots, separated by the platform path separator.
AGENTFEM_COMMANDOptionalAbsolute path to the AgentFEM executable when it is not on PATH.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

AgentFEM MCP

CI PyPI MCP Registry AgentFEM MCP server ToolSDK MCP Registry

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

Already using an AI assistant in the terminal? You can use AgentFEM directly through its CLI. Choose between CLI, MCP, and skills →

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:

ToolPurpose
describe_systemInspect the installed runtime and a compact capability map
create_projectStart from a version-matched AgentFEM template
validate_projectReport process success and scientific acceptance separately
inspect_projectRead project and recent-run identity
submit_runLaunch an isolated serial or MPI process
get_run_statusObserve a durable background job
get_result_summaryRead a compact result and trust state; request full evidence only when needed

Bring it to life

Want to see the underlying workflow before installing?

AgentFEM must already be installed. With uvx, Codex needs one command and the adapter remains isolated from the numerical environment:

codex mcp add agentfem \
  --env AGENTFEM_MCP_ROOTS=/absolute/path/to/AgentFEMProjects \
  -- uvx --from agentfem-mcp agentfem-mcp

Or install the lightweight adapter in the active environment:

python -m pip install agentfem-mcp

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 mcp add agentfem --scope user \
  --env AGENTFEM_MCP_ROOTS=/absolute/path/to/AgentFEMProjects \
  -- uvx --from agentfem-mcp agentfem-mcp

Claude Desktop configuration:

{
  "mcpServers": {
    "agentfem": {
      "command": "agentfem-mcp",
      "env": {
        "AGENTFEM_MCP_ROOTS": "/absolute/path/to/AgentFEMProjects"
      }
    }
  }
}

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:

{
  "servers": {
    "agentfem": {
      "type": "stdio",
      "command": "uvx",
      "args": ["--from", "agentfem-mcp", "agentfem-mcp"],
      "env": {
        "AGENTFEM_MCP_ROOTS": "${workspaceFolder}"
      }
    }
  }
}

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

Focused discovery (unreleased)

Use describe_system() once when runtime readiness is unknown. On a runtime with scoped discovery, request describe_system(topic="workflow") or describe_system(api="fields.displacement") for a specific question; these make one read-only CLI call and do not run environment diagnostics or a simulation. Use detail="full" only when the full catalog is needed. A scoped result is not a complete list of supported physics. Concrete Step option compatibility remains the solver's responsibility.

Check the connected tool schema before using these new arguments: they are not in 0.1.0. An older runtime that cannot answer a focused query gets an explicit error, not an automatic upgrade or silent full-catalog substitute.

Tool failures set MCP isError and preserve structured error details. Reading a failed simulation's status is a successful inspection, not a request to retry. submit_run already performs preflight; use validate_project separately when editing, without repeating it as a mandatory submission ritual.

Same public execution path

AI agent
   │  seven typed MCP tools
   ▼
AgentFEM MCP ── process + path boundary
   │  versioned JSON contracts
   ▼
AgentFEM CLI → Study → Model → Step → SimulationResult
   ▼
FEniCSx / PETSc / MPI
  • 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, and validated remain 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

VariableMeaning
AGENTFEM_MCP_ROOTSApproved project roots separated by the platform path separator
AGENTFEM_COMMANDAbsolute path to a specific agentfem executable

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

python -m pip install -e '.[test]'
ruff check .
pytest
python -m build

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.

Frequently asked questions

What is AgentFEM MCP Server?

Build, run, inspect, and verify finite-element simulations with AgentFEM.

How do I install AgentFEM MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. AgentFEM MCP Server runs locally from the PyPI package agentfem-mcp with the command uvx agentfem-mcp.

Is AgentFEM MCP Server free and open source?

AgentFEM MCP Server is released under the Apache 2.0 license, which is not on MCPpedia's list of OSI-approved open-source licenses. Read the license terms before using it, especially commercially.

Does AgentFEM MCP Server support remote (HTTP) connections?

No remote endpoint is listed for AgentFEM MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is AgentFEM MCP Server's trust score calculated?

AgentFEM MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server