Structural analysis in Python
Build a beam or a frame in a few lines, solve it with a Rust finite-element engine, and get reactions, internal forces, deflections and a Eurocode member check back as ordinary data you can loop over, assert on and put in a report. Run the solver locally with pip install FERS — the same engine that solves in your browser on the free calculators, with no server in between.
Two ways to run it
Locally
pip install FERS gives you the model-building layer and pulls in the compiled solver as a binary wheel. Nothing leaves your machine, there is no request round-trip, and it works offline and inside a locked-down network. The right choice for batch work, notebooks and CI.
Over HTTP
POST /api/sdk/solve takes a model as JSON from any language, validates it and returns a link that solves it in the browser. FERS Cloud runs no solver itself, so the results reach whoever opens the link, not your code; for numbers in a script, use the package. The hosted MCP server answers the same way.
Quick start
1. Install
pip install FERSThe package needs Python 3.11 or newer. It installs the model-building layer plus the compiled solver.
2. Build a beam, solve it, and check it by hand
from fers_core import (
FERS, Node, Member, Section, Material, MemberSet, NodalSupport, NodalLoad,
)
model = FERS()
node1 = Node(0, 0, 0) # fixed end
node2 = Node(5, 0, 0) # free end, 5 m span
steel = Material(name="Steel S235", e_mod=210e9, g_mod=80.769e9,
density=7850, yield_stress=235e6)
# i_z is the strong axis, i_y the weak one — the convention that catches
# everyone exactly once.
section = Section(name="IPE 180", material=steel,
i_y=1.009e-6, i_z=13.17e-6, j=0.0477e-6, area=0.00240)
beam = Member(start_node=node1, end_node=node2, section=section)
node1.nodal_support = NodalSupport() # fully fixed
model.add_member_set(MemberSet(members=[beam]))
load_case = model.create_load_case(name="End Load")
NodalLoad(node=node2, load_case=load_case, magnitude=-1000, direction=(0, 1, 0))
model.run_analysis()
dy = model.resultsbundle.loadcases["End Load"].displacement_nodes["2"].dy
print(f"Tip deflection: {dy * 1000:.3f} mm")
# Tip deflection: -15.065 mm
# Hand check: PL^3 / 3EI_z = 1000 * 5**3 / (3 * 210e9 * 13.17e-6) = 15.0655 mmThat is the whole point of the exercise: a number you can verify with a formula you already know, before you trust the solver with a model you cannot check by hand. The same closed-form comparisons are published on the accuracy page, and the standard NAFEMS benchmarks are re-solved live in the browser.
Eurocode 3 checks from a script
A plain model gives you forces. check_beam goes one step further: it adds a ULS combination and an EN 1993-1-1 member check over the span, so one call returns bending, shear, combined N+M and lateral-torsional buckling utilizations with the per-clause trace behind each.
from fers_core import check_beam
# 7.5 m simply supported IPE400 in S275, 12 kN/m characteristic, ULS factor 1.35
beam = check_beam(7.5, "IPE400", material="S275", udl=12_000, uls_factor=1.35)
beam.run_analysis()
for row in beam.unity_check_results():
print(row["governing"]["demand"])
# 0.8002749049232664Buckling lengths default to the full span for a single-member model, so if the compression flange is restrained along its length — by decking, by a slab, by purlins — that is a modelling decision you make explicitly rather than one the default quietly makes for you. The worked EC3 example shows the same check with every clause written out.
The thing a web form cannot do
Five sections, five solves, one loop:
from fers_core import check_beam
for section in ["IPE300", "IPE330", "IPE360", "IPE400", "IPE450"]:
beam = check_beam(7.5, section, material="S275", udl=12_000, uls_factor=1.35)
beam.run_analysis()
uc = beam.unity_check_results()[0]["governing"]["demand"]
print(f"{section:<8} UC {uc:.3f}")That is the argument for scripting a structural calculation. The marginal cost of the sixth variant is one more entry in a list, not another twenty clicks — and the same loop works over spans, load cases, steel grades, or a CSV of members exported from your model. What it reports is which limit state governs and by how much; which section you then choose is your call, not the script's.
Every iteration runs in your Python process, with no solve quota and no per-solve cost.
Call it from any language
curl -s https://ferscloud.com/api/sdk/solve \
-H "X-API-Key: keyId.secret" \
-H "Content-Type: application/json" \
-d '{ "model": { /* FERS model JSON */ } }'
# The server runs no solver. It validates the model and answers with a link
# that solves it in the browser:
# { "status": "solve_in_browser", "open_url": "https://ferscloud.com/share/…", … }Endpoints: solve, validate, check-beam, create-beam, sections, schema, models and me, all under /api/sdk/. The full machine-readable spec is at ferscloud.com/api/openapi.json. solve and check-beam answer with open_url, a link valid for 24 hours that solves the model in the browser, rather than with results.
Two habits save a lot of grief. Ask schema for the contract rather than guessing field names, and call validate while you build: it catches broken references and misspelled keys that the solver would otherwise silently resolve to a default. solve runs the same validation and answers 422 instead of a link when the model fails it.
Use it from an AI agent
The same engine ships as a local MCP server, so Claude Desktop, Claude Code, Cursor, VS Code, Codex and ChatGPT desktop can call it directly and solve on your machine:
{
"mcpServers": {
"fers": {
"command": "npx",
"args": ["-y", "@ferscloud/fers-mcp"]
}
}
}The other clients, the one-click installers, the hosted server for Claude and ChatGPT in a browser, and the tools are on the MCP server page.
Prefer JavaScript? The same engine is published on npm as a WebAssembly build that solves in the browser with no server round-trip — see structural analysis in JavaScript.
Units, axes and sign conventions
Metres, newtons and newtons per metre in the Python layer; elastic modulus in pascals; deflections come back in metres, so multiply by 1000 for millimetres. The REST beam helpers (check-beam, create-beam) take kN and kN/m instead, so the same 12 kN/m load is 12.0 there and 12_000 here.
The axis convention catches everyone once: i_z is the strong (major) axis and i_y the weak one. The full set of axis, sign and unit conventions is written out on the modeling conventions page, and it is the first thing to read if a result comes back an order of magnitude off.
What it costs
The Python package is free to install and the solver runs locally, with a 100-member ceiling on the free tier and 10,000 members on Pro at €49 a month. There is no solve quota and no per-solve price on any channel. See pricing.
Frequently asked questions
Can I do structural analysis in Python?
Yes. `pip install FERS` gives you a model-building layer plus a compiled finite-element solver. You build nodes, members, sections, supports and loads as Python objects, call run_analysis(), and read displacements, internal forces and reactions off the results bundle. For the standard cases the results match the closed-form solution to within solver tolerance.
Is there a REST API for structural analysis?
Yes, at https://ferscloud.com/api/sdk/, authenticated with an X-API-Key header. It validates a model sent as JSON and returns a link that solves it in the browser; FERS Cloud runs no solver itself, so for results in code, solve locally with this package. The machine-readable OpenAPI spec is at /api/openapi.json, so most HTTP clients can generate bindings from it.
Do I need an API key to use the Python package?
No. The local package solves on your machine with no account and no network call. A key is only needed for Pro limits, for the hosted REST API, and for saving models to your account.
Can I run a Eurocode 3 steel check from Python?
Yes. check_beam adds an EN 1993-1-1 member check to a single-span model and returns bending, shear, combined N+M and lateral-torsional buckling utilizations, together with the per-clause trace behind each one. Over HTTP, /api/sdk/check-beam builds the same check and returns a link that evaluates it in the browser.
Does it work offline?
The local Python package does — the solver ships as a compiled wheel, not a service call, so it works with no network and inside a locked-down corporate environment. The hosted REST API naturally does not.
What size of model can I solve?
The free tier is for non-commercial use and caps a model at 100 members. Pro covers commercial use and raises the cap to 10 000.
Is there a solve quota?
No. The package solves on your machine, so there is no quota and no per-solve price; the tier only caps model size. The hosted REST endpoints do not solve at all: they return a link that solves the model in the browser.
How accurate is it?
For the cases with a closed-form solution it matches to within solver tolerance — the cantilever example on this page agrees with PL³/3EI to four significant figures. The accuracy page lists the comparisons, and the applicable NAFEMS benchmarks are re-solved live in the browser on the validation page rather than quoted from a table.
Start with the free tier
The package installs without an account. Create a free account when you want an API key for the hosted endpoints, or to move up to Pro.
Prefer not to write code? Try the free 2D frame calculator or the Eurocode 3 steel beam check in your browser.