EMI Calculator MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EMI Calculator MCP Server Calculate EMI for a $500k loan at 4.5% for 20 years"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
First Setup EMI Calculator
MCP EMI Calculator Server
Lightweight MCP server that exposes loan EMI calculation endpoints to MCP clients (for example, Claude Desktop).
Features
STDIO-based FastMCP server that proxies to the REST backend
Simple HTTP helper with JSON responses and 10 second timeout
Configurable backend base URL via environment variables
Related MCP server: mcp-finance-tools
Prerequisites
Python 3.10+
uv for environment management (pip-compatible)
Install uv if you do not already have it:
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shWindows (PowerShell):
powershell -ExecutionPolicy Bypass -Command "iwr -useb https://astral.sh/uv/install.ps1 | iex"
Quickstart (uv workflow)
Clone or download this repository.
From the project root, create a virtual environment (stored in
.venvby default):uv venvActivate the environment:
source .venv/bin/activate # macOS/Linux .venv\Scripts\Activate.ps1 # Windows (PowerShell)Install dependencies:
uv pip install -r requirements.txtCreate a
.envfile (if you do not already have one) with the backend base URL:EMI_API_BASE_URL=http://localhost:8000/apiRun the MCP server (communicates via STDIO):
uv run python emi_calculator.py
MCP Client Registration (Claude Desktop example)
Add to your claude_desktop_config.json:
"emiMcpServer": {
"command": "uv",
"args": [
"--directory",
"mcp_emi_server project path",
"run",
"emi_calculator.py"
]
},Configuration (.env)
EMI_API_BASE_URL— base URL of the backend EMI APIs (default: http://localhost:8000/api)
Tools exposed
calculate_emi—{principal, interestRate, tenure, calculation_method?}→ EMI summarycalculate_schedule—{principal, interestRate, tenure, calculation_method?}→ amortization schedulecompare_loans—{scenarios: [{name, principal, interestRate, tenure, calculation_method?}, ...]}→ side-by-side comparisoncalculate_with_prepayment—{principal, interestRate, tenure, prepayment_amount, prepayment_frequency, prepayment_start_month, calculation_method?}→ EMI with recurring prepayments
Troubleshooting
Ensure the backend EMI API is running and reachable.
Check stderr logs for detailed errors.
Available Tools
4 toolscalculate_emiA
Calculate the equated monthly instalment (EMI) for a single loan scenario.
Args: principal: Loan amount. interestRate: Annual interest rate expressed in percent (e.g. 9.5). tenure: Total tenure in months. calculation_method: Backend calculation strategy (for example, "reducing").
Returns: Backend JSON payload containing EMI details or an error structure.
Inputs: tenure (required), principal (required), interestRate (required), calculation_method. Returns: result
calculate_scheduleA
Retrieve the amortization schedule for a loan configuration.
Args: principal: Loan amount. interestRate: Annual interest rate expressed in percent (e.g. 9.5). tenure: Total tenure in months. calculation_method: Backend calculation strategy (for example, "reducing").
Returns: Backend JSON payload describing the amortization schedule or an error structure.
Inputs: tenure (required), principal (required), interestRate (required), calculation_method. Returns: result
calculate_with_prepaymentA
Calculate EMI outcomes when regular prepayments reduce the outstanding principal.
Args: principal: Loan amount. interestRate: Annual interest rate expressed in percent (e.g. 9.5). tenure: Total tenure in months. prepayment_amount: Amount paid on each prepayment event. prepayment_frequency: Frequency descriptor (for example, "monthly" or "quarterly"). prepayment_start_month: Month number when prepayment begins (1-indexed). calculation_method: Backend calculation strategy (for example, "reducing").
Returns: Backend JSON payload capturing EMI adjustments, duration changes, and savings or an error structure.
Inputs: tenure (required), principal (required), interestRate (required), prepayment_amount (required), +3 more. Returns: result
compare_loansA
Compare EMI outputs for multiple loan scenarios in a single API call.
Args:
scenarios: List of loan dictionaries with keys
name, principal, interestRate, and tenure.
Optional key calculation_method overrides the default.
calculation_method: Default strategy applied when a scenario omits it.
Returns: Backend JSON payload with comparison results or an error structure.
Inputs: scenarios (required), calculation_method. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: single EMI, full amortization schedule, multi-scenario comparison, and prepayment impact. No overlap in functionality, making tool selection straightforward for an agent.
Three tools follow the 'calculate_' prefix pattern (calculate_emi, calculate_schedule, calculate_with_prepayment), while compare_loans uses a different verb. The naming is still consistent in style (verb_noun, snake_case) and readable, but the deviation prevents a perfect score.
Four tools are well-scoped for an EMI calculator: covering single calculation, schedule generation, comparison, and prepayment scenarios. The number is neither too thin nor excessive for the domain.
The surface covers the core lifecycle of EMI computation: basic EMI, amortization schedule, loan comparison, and prepayment analysis. No obvious missing operations for a standard EMI calculator, as the tools return comprehensive backend payloads.
Related MCP Connectors
Home loan EMI, affordability, balance transfer, down payment, rent vs buy calculators.
Free home loan EMI, eligibility, stamp duty and tax benefit calculators for India.
Credit payment and amortization calculations, editorial sources and simulator discovery.
Row-by-row loan amortization schedules: monthly or daily accrual, extra principal, PMI, biweekly.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables financial calculations such as compound interest, loan EMI, and savings goal projections through natural language.-
- AlicenseAqualityDmaintenanceProvides Korean-specific financial calculators (4 insurances, salary net, severance pay, capital gains tax, DSR/DTI, FX conversion, housing subscription score) as MCP tools for AI agents.7MIT
- FlicenseNot gradedqualityDmaintenanceProvides educational fixed-rate loan estimates with mortgage and auto loan calculators.-
- AlicenseAqualityCmaintenanceProvides mortgage calculation tools, including monthly payment, amortization schedules, lump sum payments, and extra monthly payments for real estate agents and AI assistants.7MIT