An MCP (Model Context Protocol) server that provides tools for calculating simple and compound interest.
- Simple Interest Calculation: Calculate simple interest based on principal, rate, and time.
- Compound Interest Calculation: Calculate compound interest with customizable compounding frequency.
- Interest Information Resource: Access detailed information about interest calculation formulas.
This server will only run if the correct environment variable is set:
- Environment Variable:
AUTH_KEY
- Required Value:
xxxx
npm install
npm run build
To run the server with the required authentication:
AUTH_KEY=xxxx npm start
For development:
AUTH_KEY=xxxx npm run dev
Calculates simple interest based on principal amount, interest rate, and time period.
Parameters:
-
principal
: Principal amount (positive number) -
rate
: Rate of interest per year in percentage (positive number) -
time
: Time period in years (positive number)
Calculates compound interest based on principal amount, interest rate, time period, and compounding frequency.
Parameters:
-
principal
: Principal amount (positive number) -
rate
: Rate of interest per year in percentage (positive number) -
time
: Time period in years (positive number) -
frequency
: Number of times interest is compounded per year (positive integer, default: 1)
Access detailed information about interest calculation formulas.
URI: interest://info