Free · No API key

Build with live U.S. economic data

A free JSON API and an MCP server give your app — or any AI assistant — real-time inflation, mortgage rates, prices and wages, plus our tested calculation engines. Sourced from the BLS and Freddie Mac (FRED), refreshed daily.

No key, no signup

Call it from a browser, a notebook or an AI client. Nothing to provision.

CORS-open

Cross-origin requests are allowed, so it works straight from front-end code.

Sourced & cited

Every response carries its data source and an attribution URL.

JSON API

One endpoint serves everything. Add a ?dataset= query to narrow it down, or request a single occupation by its BLS SOC code. No authentication.

GETBase endpoint
https://www.mycalculators.app/api/public/economic-data

Datasets

QueryDatasetReturns
?dataset=inflationInflation (CPI)Current CPI level + 12-month change, with a category breakdown.
?dataset=categoriesCategory inflation12-month price change by spending category.
?dataset=pricesAverage pricesEveryday goods — gas, eggs, milk, electricity — with YoY change.
?dataset=wagesWagesMedian, mean and 10th–90th percentile pay by occupation.
?dataset=ratesMortgage rates30- and 15-year fixed averages (Freddie Mac via FRED).
?occupation=151252One occupationFull wage distribution for a single BLS SOC code.

Calling the base endpoint with no query returns the full snapshot. An unknown dataset returns a400 with a helpful message; an unknown SOC code returns 404.

Example request

curl "https://www.mycalculators.app/api/public/economic-data?dataset=inflation"

Example response (trimmed)

{
  "meta": {
    "source": "U.S. Bureau of Labor Statistics (BLS); Freddie Mac via FRED",
    "attribution": "Data: U.S. BLS & Freddie Mac (FRED). Provided free by mycalculators.app.",
    "generatedAt": "…"
  },
  "cpi": { "index": 335.123, "yoy": 4.2, "asOf": "May 2026" },
  "categoryInflation": [ /* … by category … */ ]
}

MCP Server

Our Model Context Protocol server lets assistants like Claude, ChatGPT and Cursor call our data and our tested calculation engines directly in a chat. It speaks Streamable HTTP (JSON-RPC 2.0) at a single URL — no key.

Server URL
https://www.mycalculators.app/api/mcp

Add to a client (config)

{
  "mcpServers": {
    "mycalculators": {
      "url": "https://www.mycalculators.app/api/mcp"
    }
  }
}

…or one command (Claude Code)

claude mcp add --transport http mycalculators https://www.mycalculators.app/api/mcp

Already listed & verified on the Stork MCP directory.

Available tools

calc
mortgage_payment

Full PITI monthly payment + loan totals.

calc
biweekly_savings

Interest saved and time cut by biweekly payments.

calc
rent_vs_buy

Buy-vs-rent net worth and break-even year.

calc
refinance_breakeven

Refi monthly savings and break-even months.

calc
tdee_and_macros

Calories (BMR/TDEE), goal target and macros.

data
current_mortgage_rates

Latest 30- & 15-year fixed mortgage rates.

data
current_inflation

Latest CPI inflation + category breakdown.

data
average_prices

Average prices of everyday goods.

data
salary_by_occupation

Wage distribution + percentile placement.

List tools over HTTP

curl -X POST https://www.mycalculators.app/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Call a tool

curl -X POST https://www.mycalculators.app/api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "mortgage_payment",
      "arguments": { "homePrice": 450000, "downPayment": 90000, "ratePct": 6.5, "years": 30 }
    }
  }'

Usage & attribution

Both the API and the MCP server are free to use with no key. The underlying figures come from public-domain U.S. government releases — the Bureau of Labor Statistics and Freddie Mac via FRED — and are refreshed daily.

When you display the data, please credit MyCalculators.app and the original source (each response includes an attribution string and citation URL). Results are educational estimates, not financial or medical advice. Please be reasonable with request volume; there are no hard rate limits today.

See our Terms of Use.

Building something with it?

We'd love to hear about it — and we take requests for new datasets and tools.

pr@mycalculators.app