Skip to content
Fourohtwo

mtfit-mcp.mtfit-mcp.workers.dev/api/calculate_macros

Calorie and macro calculator from a real personal trainer's rules (MTFIT): daily calories, protein, carbs and fat for fat loss / weight loss, recomp or muscle gain, with example meals and safe limits (calorie floors, capped deficits). No workout plan: use build_program for that. Metric or US units. Text plus structured JSON. For adults 18+. Not medical or dietary advice.

BaseAnswering
POSThttps://mtfit-mcp.mtfit-mcp.workers.dev/api/calculate_macros

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://mtfit-mcp.mtfit-mcp.workers.dev/api/calculate_macros", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"activity":"on_feet","age":28,"goal":"muscle_gain","height_cm":180,"sex":"male","training_days_per_week":4,"weight_kg":78}),
});
console.log(await res.json());

Example input

{
  "activity": "on_feet",
  "age": 28,
  "goal": "muscle_gain",
  "height_cm": 180,
  "sex": "male",
  "training_days_per_week": 4,
  "weight_kg": 78
}

More from MTFIT ProgrammingProvider status