Interest Calculator MCP Server
An MCP (Model Context Protocol) server that provides tools for calculating simple and compound interest.
Features
- 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.
Security
This server will only run if the correct environment variable is set:
- Environment Variable:
AUTH_KEY
- Required Value:
xxxx
Installation
npm install
Building
npm run build
Running
To run the server with the required authentication:
AUTH_KEY=xxxx npm start
For development:
AUTH_KEY=xxxx npm run dev
Tools
Calculate Simple Interest
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)
Calculate Compound Interest
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)
Resources
Interest Information
Access detailed information about interest calculation formulas.
URI: interest://info