Home / Servers / Calculators / compound_interest

Compound interest

An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.

Future value of a lump sum and/or regular contributions with compound interest, plus total contributions and interest earned. Compounding monthly, quarterly, yearly or daily.

Name on the gateway: math__compound_interest · read-only.

Parameters

NameTypeDescription
principalnumberStarting amount. Default 0.
annual_rate requirednumberAnnual rate in percent.
years requirednumberHow long.
compoundingdaily | monthly | quarterly | yearlyDefault "monthly".
monthly_contributionnumberAdded at the end of each month. Default 0.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "math__compound_interest",
  "arguments": {
    "annual_rate": 0,
    "years": 0
  }
}

Or connect the Calculators server directly, which lists 28 tools including this one:

Run in your terminal
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the compound interest tool with principal set to ….

More from Calculators