test-interest
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i test-interest

Weekly Downloads

11

Version

1.0.6

License

ISC

Unpacked Size

8.28 kB

Total Files

5

Last publish

Collaborators

  • thisisakansh