calcnook
calcnook-mcp
MCP server wrapping the calcnook financial engine. Gives any MCP-compatible AI agent (Claude Code, Cursor, Goose, Continue, etc.) native access to 17 calculation tools across compound interest, SIP/DCA, loans, retirement planning, BMI/BMR, Islamic finance, income tax (US/UK/CA/AU/India), VAT, End of Service Gratuity, and more.
Install
Preferred — zero setup via uvx:
uvx calcnook-mcpOr pip:
pip install calcnook-mcp
calcnook-mcpRelated MCP server: calcfi-mcp
Configure your AI agent
Claude Desktop / Claude Code
Add to claude_desktop_config.json (or your MCP settings):
{
"mcpServers": {
"calcnook": {
"command": "uvx",
"args": ["calcnook-mcp"]
}
}
}Cursor
{
"mcpServers": {
"calcnook": {
"command": "uvx",
"args": ["calcnook-mcp"]
}
}
}Goose / Continue
Use the same JSON block in the respective mcp_servers config section.
Tools
Tool | What it does | Example query |
| Future value of a lump-sum at compound interest | "What will ₹1L grow to in 10 years at 7%?" |
| SIP (India) / DCA (global) with optional annual step-up | "SIP ₹5000/month for 15 years at 12%" |
| EMI / mortgage amortization with optional extra payment | "EMI for ₹30L home loan at 8.5% for 20 years" |
| Corpus needed, monthly SIP to reach corpus, safe withdrawal (4% rule) | "How much SIP to reach 2Cr in 20 years?" |
| BMI + WHO category, BMR (Mifflin-St Jeor), TDEE | "BMI for 70kg 175cm" |
| Convert between any currencies using caller-supplied rates | "Convert $1000 to INR at 83.5" |
| Format amount as currency string; INR supports lakh/crore | "Show 25000000 as crores" |
| Zakat al-Mal (2.5% wealth obligation): all asset categories, nisab check | "Zakat on $25k savings + $5k stocks" |
| Murabaha, Ijarah, or Mudarabah financing calculator | "Murabaha for $100k house at 30% markup over 5 years" |
| Monthly savings needed to fund Hajj by target year | "Save monthly for Hajj costing $8000 in 5 years" |
| AAOIFI Sharia compliance screen (debt, cash, receivables, haram revenue ratios) | "Is this tech stock halal given these financials?" |
| Federal/national income tax for US, UK, CA, AU, India (2026) | "India income tax on ₹12L new regime" |
| Traditional 401(k) contribution analysis or Roth IRA phase-out check | "Am I eligible for Roth IRA at $155k income?" |
| End of Service Gratuity for UAE or Saudi Arabia | "UAE gratuity for 7 years at AED 8000 basic salary" |
| VAT for UAE (5%) or Saudi Arabia (15%) | "UAE VAT on AED 1000 product" |
| ZATCA-collected Zakat estimate for Saudi/GCC nationals (2.5% of base) | "Saudi corporate zakat on SAR 1M base" |
| India electricity bill with BESCOM/MSEB/BSES presets or custom slabs | "BESCOM bill for 250 units in Bangalore" |
Built on
calcnook engine — the open-source personal finance calculation library.
DISCOM presets (BESCOM_RESIDENTIAL, MSEB_RESIDENTIAL, BSES_RESIDENTIAL) are importable directly from calcnook.countries.india.electricity_bill for custom slab configuration.
License
MIT
Available Tools
17 toolscalculate_bmi_bmr_tdeeA
Health metrics in three modes: (1) bmi — Body Mass Index and WHO category; (2) bmr — Basal Metabolic Rate (Mifflin-St Jeor); (3) tdee — Total Daily Energy Expenditure from BMR and activity level. Example queries: 'BMI for 70kg 175cm', 'BMR for 30-year-old male 80kg 180cm', 'TDEE for moderately active person with BMR 1700'.
Inputs: mode (required), weight_kg, height_cm, age_years, +3 more.
calculate_compound_interestA
Compute the future value of a single lump-sum investment at compound interest. Universal — no country specifics. Example queries: 'What will ₹1L grow to in 10 years at 7%?', 'future value of $5000 invested at 8% annually for 20 years compounded monthly'.
Inputs: principal (required), annual_rate (required), years (required), compounding_per_year.
calculate_eosgA
Calculate End of Service Gratuity (EOSG) for UAE or Saudi Arabia. UAE: Federal Decree-Law 33/2021 — 21 days/year for first 5 years, 30 days/year after. Saudi: Saudi Labour Law Articles 84-87 — ½ month/year first 5 years, 1 month/year after; resignation factor applies. Example queries: 'UAE gratuity for 7 years service at AED 8000 basic salary', 'Saudi EOSG if I resign after 6 years on SAR 5000 salary'.
Inputs: country (required), monthly_basic_salary (required), years_of_service (required), contract_type, +1 more.
calculate_hajj_savingsB
Calculate the monthly savings needed to fund a Hajj pilgrimage by a target year. Accounts for existing savings and halal investment returns (sukuk/equity). Example queries: 'how much to save monthly for Hajj costing $8000 in 5 years', 'hajj savings plan with ₹50000 already saved, 6% return, 3 years'.
Inputs: hajj_cost_target (required), years_to_hajj (required), current_savings, expected_annual_return.
calculate_income_taxA
Calculate income tax for US, UK, Canada, Australia, or India (2026 / FY 2025-26). country='us': federal tax with brackets by filing_status. country='uk': income tax + National Insurance (2025/26). country='ca': federal tax with Basic Personal Amount credit. country='au': income tax + Medicare Levy + optional HECS-HELP. country='in': India new/old regime with 87A rebate + cess. Example queries: 'US tax on $85000 income married filing jointly', 'UK income tax on £50000 salary', 'India income tax ₹12L new regime'.
Inputs: country (required), income (required), filing_status, has_hecs_debt, +3 more.
calculate_india_electricity_billA
Calculate an Indian electricity bill using progressive slab tariffs. Use a built-in DISCOM preset ('BESCOM' for Karnataka, 'MSEB' for Maharashtra, 'BSES' for Delhi) or supply custom slabs. The constants BESCOM_RESIDENTIAL, MSEB_RESIDENTIAL, BSES_RESIDENTIAL are importable from calcnook.countries.india.electricity_bill for custom use. Example queries: 'electricity bill for 250 units in Bangalore (BESCOM)', 'Delhi BSES bill for 400 units with ₹100 fixed charge'.
Inputs: units_consumed (required), preset, slabs, fixed_charges, +2 more.
calculate_islamic_financingA
Calculate Islamic financing arrangements — Sharia-compliant alternatives to conventional loans. Three instruments: (1) murabaha — cost-plus sale (Sharia mortgage/asset purchase); (2) ijarah — lease-to-own (Sharia auto-loan/equipment); (3) mudarabah — profit-sharing investment (Sharia FD alternative). Example queries: 'murabaha financing for $100k house at 30% markup over 5 years', 'ijarah lease for car worth $30k at $600/month for 5 years', 'mudarabah: investor puts $100k, profit $20k split 70/30'.
Inputs: instrument (required), asset_cost, markup_percent, tenure_years, +8 more.
calculate_loan_paymentA
Calculate monthly EMI / mortgage payment for a fixed-rate loan. Returns total interest, total payment, and optional full amortization schedule. Works for home loans, car loans, personal loans, mortgage. Example queries: 'EMI for ₹30L home loan at 8.5% for 20 years', '$300k mortgage at 6.5% for 30 years', 'what if I pay $200 extra per month on my car loan'.
Inputs: principal (required), annual_rate (required), years (required), extra_monthly_payment, +1 more.
calculate_retirementA
Retirement planning in three modes: (1) corpus_needed — how much lump-sum do I need at retirement? (2) monthly_contribution_for — how much SIP to hit a target corpus? (3) safe_withdrawal — how much can I safely withdraw (4% rule)? Example queries: 'how much corpus to retire with ₹50k/month for 30 years', 'SIP needed to build 2 crore corpus in 20 years', 'safe monthly withdrawal from $1M at 4% rule'.
Inputs: mode (required), annual_expense, years_in_retirement, post_retirement_return, +7 more.
calculate_saudi_zakat_citizenA
Estimate ZATCA-collected Zakat for Saudi / GCC nationals (simplified 2.5% estimator). Caller supplies the pre-computed zakat base. Returns zakat due with a disclaimer that actual ZATCA computation requires full financial statements. Example query: 'estimate Saudi corporate zakat on SAR 1M zakat base'.
Inputs: zakat_base (required).
calculate_sip_dcaA
Compute the future value of periodic contributions (SIP in India, DCA globally). Supports annual step-up of monthly contributions. Example queries: 'SIP ₹5000/month for 15 years at 12%', 'how much SIP to reach 1 crore in 10 years', 'DCA $500/month into index fund for 30 years', 'step-up SIP with 10% annual increase'.
Inputs: monthly_amount (required), annual_return (required), years (required), step_up_percent.
calculate_us_retirement_accountA
Analyse US retirement account contributions for 2026. account_type='traditional_401k': employee deferral, employer match, §415 cap, tax savings. account_type='roth_ira': eligibility check and MAGI phase-out calculation. Example queries: 'how much do I save in taxes with 401k contribution', 'am I eligible for Roth IRA at $155k income'.
Inputs: account_type (required), contribution (required), age (required), salary, +5 more.
calculate_vatA
Calculate VAT for UAE (5%) or Saudi Arabia (15%). Works for both ex-VAT and VAT-inclusive amounts. Example queries: 'UAE VAT on AED 1000 product', 'what is the VAT-exclusive price of SAR 1150 including 15% VAT'.
Inputs: country (required), amount (required), is_inclusive.
calculate_zakatA
Compute Zakat al-Mal (annual 2.5% Islamic wealth obligation). Sums all zakatable assets, deducts debts, checks nisab threshold (gold or silver basis), and returns the zakat due. Cross-cutting — any Muslim, any country. Example queries: 'how much Zakat do I owe on $25000 savings and $5000 stocks', 'zakat calculation with gold and silver holdings'.
Inputs: cash, gold_grams, silver_grams, stocks_value, +7 more.
convert_currencyA
Convert an amount between any two currencies using a caller-supplied USD-based rate dict. The caller must provide current exchange rates (USD=1.0 base). Example: convert 1000 USD to INR with rates={'USD':1.0, 'INR':83.5}.
Inputs: amount (required), from_currency (required), to_currency (required), rates (required).
format_currency_amountA
Format a numeric amount as a human-readable currency string. For INR, optionally use Indian lakh/crore notation (₹15.00 L, ₹2.50 Cr). Example queries: 'format 83500 in INR', 'display 25000000 as crores'.
Inputs: amount (required), currency (required), lakh_crore_format.
screen_halal_stockA
Screen a stock for Sharia compliance using AAOIFI standard financial ratios. Checks: business sector (haram/halal), debt ratio, cash ratio, receivables ratio, haram revenue ratio. Returns compliance verdict, failed checks, and purification ratio. Example queries: 'is this tech stock halal?', 'AAOIFI screen for Apple with these financials'.
Inputs: sector (required), market_cap (required), debt_interest_bearing (required), cash_and_interest_securities (required), +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Tools are generally distinct, but there is potential overlap between 'calculate_retirement' and 'calculate_sip_dca' (both deal with savings targets) and between the two zakat tools. However, descriptions clarify these differences well.
All tools follow a consistent verb_noun pattern using snake_case (e.g., calculate_bmi_bmr_tdee, convert_currency, screen_halal_stock). No mixed conventions or irregular naming.
With 17 tools, the server covers a broad but focused range of financial and Islamic calculations. The count is slightly heavy but still appropriate given the breadth of the domain.
The tool set covers key financial calculations (tax, loans, retirements, zakat, etc.) with minor gaps like missing investment portfolio tools or exchange rate fetching. Overall, it is sufficiently complete for its calculator purpose.
Maintenance
Related MCP Connectors
90+ pure finance calculators: loans, investing, bonds, options, tax. Stateless, stores nothing.
SmartMoney77 MCP v0.6.0 — 14 public tools that turn financial questions into exact numbers and citable links. New: historical_investment_return and compare_investments, which compute "what if I had invested" results from real yearly price data. Also compound interest, FIRE number, credit-card payoff, emergency fund, inflation, latte factor, investment fees, cost of waiting, plus discovery/deep-link/share-pack tools for a catalog of calculators in 6 languages (he/en/ar/es/pt/in). Public, no login. Endpoint: https://smartmoney77.com/mcp
55 stateless calculators for AI agents: loans and mortgage amortization, income and sales tax, retirement and FIRE, BMI and health, date and planning, and unit conversions, returned as clean JSON. Nothing is stored. Part of FreeDailyPro's 211+ MCP tools; trial key with 20,000 calls/month at freedailypro.com/developers.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenance63 deterministic quant computation tools for autonomous financial agents. Options pricing, derivatives, risk metrics, portfolio optimization, statistics, crypto/DeFi, macro/FX, time value of money. 1,000 free calls/day, no signup required.7414MIT
- FlicenseNot gradedqualityBmaintenance24 free personal-finance and macro tools (mortgage, paycheck, tax, FRED, BLS) for LLM agents. Zero API keys, stdio transport, source-cited from IRS, Federal Reserve, BLS, Treasury, and Freddie Mac.-
- AlicenseBqualityCmaintenanceProvides 77 deterministic financial calculators, live market data, and a meta-advisor that chains tools into prioritized plans from plain-language descriptions.7722 PyPI7MIT
- AlicenseAqualityCmaintenanceProvides real tax calculations for US, Canada, Australia, and UK income, property, and dividend taxes using up-to-date local data with no API keys required.771 npmMIT