Finance Utilities

Mortgage Calculator

Calculate monthly payments, total interest, and amortization schedules for mortgages. Use via MCP in Cursor or Windsurf, or call GET /v1/finance/mortgage with principal, rate, and term parameters. Returns precise payment breakdown including principal/interest split per month. Essential for real estate analysis and loan comparisons.

API Endpoint

GET /v1/finance/mortgage

Code Examples

curl "https://tinyfn.io/v1/finance/mortgage" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/finance/mortgage', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/finance/mortgage',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's finance tools:

{
  "mcpServers": {
    "tinyfn-finance": {
      "url": "https://tinyfn.io/mcp/finance",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I calculate monthly mortgage payments with principal, interest, taxes, and insurance?

Pass principal amount, annual interest rate, and loan term in years. The tool returns monthly payment breakdown including principal, interest portions, and total payment amount.

Can I get a full amortization schedule showing how much principal vs interest I pay each month?

Yes, the calculator provides month-by-month breakdowns showing remaining balance, principal paid, interest paid, and cumulative totals throughout the loan term.

What's the difference between using this MCP tool vs online mortgage calculators?

MCP integration lets AI agents perform mortgage calculations directly in your code editor, enabling automated comparisons and integration with other financial analysis without manual data entry.

How do I compare different loan scenarios like 15-year vs 30-year mortgages?

Make multiple API calls with different term parameters. Compare total interest paid, monthly payments, and payoff timelines to determine optimal loan structure.

Does the calculator handle different compounding periods or just monthly payments?

The tool uses standard mortgage calculations with monthly compounding and payments. For other compounding frequencies, use specialized financial calculation tools.

Try Mortgage Calculator Now

Get your free API key and start using Mortgage Calculator in seconds.

Get Free API Key