EMI Calculator MCP Server
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
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ramakrishna-Gedala/mcp_emi_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server