API & MCP
Everything a person can do on Break-even Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://breakevenexplorer.usefulweb.site/api/v1/calculate– run Break-even ExplorerGET https://breakevenexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Break-even Explorer
Enter an upfront investment, subsidies and the yearly savings it brings, with optional price escalation, performance degradation and maintenance. The explorer returns simple and discounted payback (fractional years), NPV, IRR and a year-by-year cumulative cash-flow table.
| Field | Type | Default | Description |
|---|---|---|---|
preset | select (custom, solar, ev, heat-pump) | "custom" | Preset. Presets only fill in escalation, degradation and horizon when you leave those empty; the values are listed under assumptions. |
currency | text | "EUR" | Currency. Shown in results only; no conversion is performed. |
upfrontInvestment (required) | number | 10000 | Upfront investment |
subsidies | number | 0 | Subsidies / grants / tax credits. Received at the start; reduces the net investment. |
annualSavings (required) | number | 1200 | Savings in year 1 |
savingsEscalationPercent | number | — | Savings escalation (e.g. energy price inflation). Empty = preset default. |
degradationPercent | number | — | Performance degradation. Empty = preset default. |
maintenancePerYear | number | 0 | Maintenance per year |
discountRatePercent | number | 3 | Discount rate |
horizonYears | integer | — | Horizon. Empty = preset default. |
savingsByYear | table | — | Override savings for specific years (optional). Savings entered here replace the escalated/degraded value for that year (before maintenance). |
Example request
Rooftop solar with a grant
curl -X POST https://breakevenexplorer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"preset":"solar","currency":"EUR","upfrontInvestment":12000,"subsidies":1500,"annualSavings":1100,"maintenancePerYear":100,"discountRatePercent":3}'
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://breakevenexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
break_even_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=break-even-explorer
{
"mcpServers": {
"break-even-explorer": { "type": "http", "url": "https://breakevenexplorer.usefulweb.site/mcp" }
}
}