API & MCP
Everything a person can do on One-Rep-Max & Plate Loader, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://onerepmaxcalculator.usefulweb.site/api/v1/calculate– run One-Rep-Max & Plate LoaderGET https://onerepmaxcalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
One-Rep-Max & Plate Loader
Estimates your one-repetition maximum from the weight and reps of a set to failure (or with an RPE) with the Epley, Brzycki, Lander, Lombardi, Mayhew, O'Conner and Wathan equations and their average, prints a percentage table and an RPE table, and tells you which plates to put on each side of a kg or lb bar using only the plates you actually have.
| Field | Type | Default | Description |
|---|---|---|---|
weight (required) | number | 100 | Weight lifted |
reps (required) | integer | 5 | Repetitions. Reps completed in the set. Estimates are most reliable up to about 10 reps. |
unit | select (kg, lb) | "kg" | Unit |
rpe | number | — | RPE of the set. Optional (6–10). 10 = to failure; 8 = two more reps were possible. Reps in reserve are added before estimating. |
targetWeight | number | — | Weight to load. Optional total bar weight for the plate loader. |
targetPercent | number | — | Or: percentage of 1RM to load. Used when no weight to load is given; default 100% of the average estimate. |
barWeight | number | — | Bar weight. Default 20 kg or 45 lb. |
collarWeight | number | 0 | Collars (both together) |
plates | table | — | Plates available. Plate weight and how many you have in total (both sides). Empty = a standard set (kg: 25–1.25, lb: 45–2.5). |
Example request
100 kg × 5 reps, load 85%
curl -X POST https://onerepmaxcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"weight":100,"reps":5,"unit":"kg","targetPercent":85}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://onerepmaxcalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
one_rep_max_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=one-rep-max-calculator
{
"mcpServers": {
"one-rep-max-calculator": { "type": "http", "url": "https://onerepmaxcalculator.usefulweb.site/mcp" }
}
}