curatedapi

99 exact calculators and official e-invoice validators, available over REST and MCP. Free plan with 1,000 calls a month and no card needed.

Hosted MCP Server

npx add-mcp 'https://mcp.curatedapi.com'

Installs into Claude Code, Codex, Cursor and more

Documentation

Calculator API for loans, invoices and billing

Send your numbers and get the right answer back, to the cent. Use ready-made calculations for loan payments, interest, leases, depreciation, Excel formulas and e-invoice checks, instead of building and testing them yourself.

Get a free API key Read the API docs

103 APIs with one key: 99 for calculations and 4 for e-invoice checks. Free plan: 1,000 calls a month, no card needed.

curl https://api.curatedapi.com/v1/calc/finance/loan/emi \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": "250000",
    "annual_rate_percent": "7.5",
    "term_months": 240
  }'
{
  "calculator": "finance/loan/emi@1",
  "result": {
    "emi": "2013.98",
    "total_paid": "483356.89",
    "total_interest": "233356.89",
    "last_payment": "2015.67",
    "number_of_payments": 240
  },
  "precision": {
    "rounding": "half_even",
    "decimals": 2
  }
}

Each answer also shows the formula, the sources, the inputs it used and which values were rounded.

Your numbers in, the right answer out

One request from your app, website or AI agent. Here is a real loan example.

  1. Step 1

    You send your numbers

    From your app, your website or an AI agent. Loan 250,000 Interest 7.5% a year Term 240 months
  2. Step 2

    curatedapi works it out

    Exact maths with no rounding errors along the way, using the API version you chose. Tested against 228 worked examples
  3. Step 3

    You get the answer, and how it was found

    2,013.98 monthly payment
    • Formula
    • Sources
    • What was rounded

103APIs on one key

228worked examples we test against

7ways to round, to any number of decimals

23countries' cash rounding rules

Small maths mistakes cost real money

Most programming languages store 0.1 + 0.2 as 0.30000000000000004. Over a loan schedule or a month of invoices, those tiny errors add up to cents that don't match the bank or the tax office. curatedapi does the maths without them, so the answer matches the official example exactly.

No rounding surprises

Send numbers as text and no digits are lost. The answer is rounded once, at the end, the way you choose on each call.

Tested against official examples

Worked examples from regulators, standards and Excel, each with its source, are checked before every release, and on the live API every five minutes. See the accuracy report.

Answers that don't change

Each API has a version number. When we improve one, it gets a new version and the old one keeps giving the same answers, so last year's invoice still adds up.

Shows how it got the answer

Every answer comes with the formula, the sources and which values were rounded. Add ?receipt=true to get a signed receipt that anyone can check later.

Where people use it

Anywhere a wrong number costs money or trust: invoices, loan offers, checkout totals and AI assistants.

Lending and fintech

Monthly loan payments with a full repayment schedule, APR worked out the way US Regulation Z and the EU consumer credit rules require, interest, NPV and IRR.

Invoicing and e-invoices

Check an e-invoice against the official EN 16931, Peppol, XRechnung and Factur-X rules before you send it, and work out late payment interest for the UK, EU, Germany, India and the US.

Accounting

IFRS 16 and ASC 842 lease schedules, MACRS and Indian depreciation, and Excel's XIRR, XNPV and YEARFRAC with the same answers Excel gives.

SaaS billing

Tiered and volume pricing, fair charges to the second when a customer changes plan, and stacked discounts, matching Stripe's published examples.

Payments and commerce

Round each currency correctly, follow the cash rounding rules of 23 countries, and split a total into whole-cent parts that add back up exactly.

AI agents

AI models often get APR, IRR and schedules wrong. Connect your agent to our MCP server and it calls our APIs instead, with the sources to show.

103 APIs in 14 groups

Open a group to see its APIs. Each one is free to try on this site, with no sign-up, and works the same through the API and the MCP server.

Finance22

See the Finance page

Excel functions29

See the Excel functions page

E-invoices4

See the E-invoices page

Late payments5

See the Late payments page

Accounting5

See the Accounting page

Number checks10

See the Number checks page

VAT and GST2

See the VAT and GST page

Billing and pricing3

See the Billing and pricing page

Money and currencies2

See the Money and currencies page

Dates and time7

See the Dates and time page

Math6

See the Math page

Unit conversion5

See the Unit conversion page

Everyday2

See the Everyday page

Health1

See the Health page

Let your AI agent do maths it can trust

AI models guess at maths. Add https://mcp.curatedapi.com to any app that supports MCP, and your agent can use every API as a tool. It gets the exact answer plus the formula and sources. Calls are billed the same as the API.

Connect an MCP client

{
  "mcpServers": {
    "curatedapi": {
      "url": "https://mcp.curatedapi.com",
      "headers": {
        "Authorization": "Bearer capi_live_…"
      }
    }
  }
}

Pay only for answers you get

Failed calls, test keys and retries with an idempotency key are free. Set a spend limit and a month never costs more than you decide. Most calculations count as one call; an e-invoice check counts as 5.

Free

$0€0 a month

  • 1,000 calls a month included
  • Stops at the limit, so it never costs anything
  • Up to 5 calls a second
  • 1,000 free test calls a month Get a free API key

Starter

$9€9 a month

  • 50,000 calls a month included
  • Then $0.20€0.20 per 1,000 calls, or set a spend cap
  • Up to 20 calls a second
  • 10,000 free test calls a month Choose Starter

Pro

$29€29 a month

  • 500,000 calls a month included
  • Then $0.20€0.20 per 1,000 calls, or set a spend cap
  • Up to 50 calls a second
  • 50,000 free test calls a month Choose Pro

Business

$99€99 a month

  • 2,000,000 calls a month included
  • Then $0.20€0.20 per 1,000 calls, or set a spend cap
  • Up to 100 calls a second
  • 100,000 free test calls a month Choose Business

You choose US dollars or euros when you pick a paid plan, and you are charged exactly that amount. VAT or sales tax is added where your country charges it. Every response carries your usage so far this month, and you can download every recorded call as CSV. See the billing terms.

Common questions

What does "exact" mean here?

No rounding errors along the way. You send numbers as text, we keep every digit while working, and round once at the end, the way you ask. Roots, logarithms and similar functions are worked out to a guaranteed high precision. Each answer says which values were rounded.

Which APIs are checked against published values?

84 of the 99 calculation APIs have published reference values so far, 215 values in all, from regulators, standards bodies and software makers. They are also tested against independent implementations, such as mpmath and QuantLib, and with property tests on thousands of random inputs. The accuracy report lists every case and its source.

Will my results ever change?

Not for a version you use. Any change in behaviour gets a new version (such as finance/loan/emi@2), and the old version keeps answering exactly as before. Each response names the version that ran.

Do you store my inputs?

No. Calculation inputs and results are never written to disk or to a log. The server may keep a recent answer in memory for a short time, so the same request is answered faster. The usage ledger records which API was called, when, and whether it succeeded, which is what billing needs. See security and the privacy policy.

What happens when I reach my plan's limit?

On the free plan, calls stop at the limit and you are never billed. On a paid plan, calls beyond what it includes are billed per 1,000, unless you set a spend cap, which stops calls at the amount you choose. With a cap, or on the free plan, we email you when 80% of the month's limit is used and when it is reached.

Can I put a calculator on my own website?

Yes. Each calculator is also a widget: two lines of HTML and a public key limited to your sites. How widgets work.

Where does it run?

On a server we run at Leaseweb in Germany, behind Cloudflare, with no inbound ports open to the internet. The status page shows whether the live API is up and answering correctly, measured with the same reference checks.

Can you add an API we need?

Yes. Tell us what you need and the source you trust, such as a regulator's worked example, a spreadsheet or a standard. Most new APIs go live within a week, checked against that source. Write to hello@curatedapi.com.

Who runs curatedapi?

curatedapi is built and run by Sagar, at Craft Vision Ventures. Write to hello@curatedapi.com and Sagar answers, usually within a day.

Try it on your own numbers

Get a free key and try any of the 103 APIs. The free plan includes 1,000 calls a month.