Skip to main content
Glama
wealth-engine

wealth-engine

by Jaume9

πŸ’° Wealth Engine MCP

An MCP server that helps you make more money and keep more of it β€” a complete personal-finance and business-economics toolkit your AI assistant can use to give you real, math-backed answers.

No API keys. No accounts. No network calls. Every answer is computed locally from battle-tested financial formulas, so it works the moment you install it and produces the same numbers every time.

The honest truth: software can't literally print money. But the decisions these tools inform β€” charging the right freelance rate, pricing a product at the profit-maximizing point, killing the avalanche of interest on your debt, picking the investment with the best risk-adjusted return β€” are worth a lot of money over a lifetime. That's where the leverage is.


Why this exists

Most "money" advice is vibes. This is arithmetic. Each tool implements the actual formula a financial analyst would use, returns a transparent breakdown (not just a single number), and is covered by tests that check it against known-correct values.

  • βœ… 11 financial tools, each a real engine

  • βœ… Zero setup β€” no keys, no DB, runs over stdio

  • βœ… 58 passing tests validating the math against closed-form results

  • βœ… Strict TypeScript, structured JSON output for both humans and agents

  • βœ… Works in Cursor, Claude Desktop, and any MCP client


Related MCP server: finance-calc-mcp

The tools

Tool

What it answers

compound_growth

"If I invest $X and add $Y/month at Z%, what will it become?" (with inflation-adjusted real value)

loan_amortization

"What's my mortgage payment, and how much do extra payments save me?"

debt_payoff

"What's the fastest, cheapest way out of my debts β€” avalanche or snowball?"

fire_calculator

"How big a portfolio do I need to retire, and how many years until I'm financially independent?"

freelance_rate

"What hourly rate must I actually charge to hit my income goal?"

price_optimizer

"What price maximizes my profit, given how demand responds?"

roi_compare

"Which opportunity creates the most value?" (ROI, payback, NPV, IRR)

tax_estimate

"What's my income tax, effective rate, and marginal rate?"

budget_analyzer

"Where is my money leaking vs the 50/30/20 rule?"

subscription_audit

"How much can I recover by cutting low-value subscriptions?"

side_hustle_ranker

"Which side hustle is worth my time, risk-adjusted?"


Install

1. Build it

npm install
npm run build

This produces dist/index.js, the runnable MCP server.

2. Register it with your MCP client

Cursor

Create or edit .cursor/mcp.json in your project (or ~/.cursor/mcp.json for global use):

{
  "mcpServers": {
    "wealth-engine": {
      "command": "node",
      "args": ["C:/Users/jejej/OneDrive/Escritorio/github_projects/mcp/dist/index.js"]
    }
  }
}

Then open Cursor β†’ Settings β†’ MCP and confirm wealth-engine shows 11 tools. Ask the agent something like "Use the freelance rate tool to tell me what to charge for a $150k target."

Claude Desktop

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "wealth-engine": {
      "command": "node",
      "args": ["C:/Users/jejej/OneDrive/Escritorio/github_projects/mcp/dist/index.js"]
    }
  }
}

Restart Claude Desktop. The tools appear under the πŸ”Œ menu.

Tip: During development you can skip the build step and run the TypeScript directly with "command": "npx", "args": ["tsx", "/abs/path/src/index.ts"].


Tool reference & examples

Every tool accepts a JSON object and returns both a human-readable text block and machine-readable structuredContent. Below are representative inputs and the headline outputs.

compound_growth

{
  "principal": 10000,
  "contribution": 500,
  "annualRatePct": 7,
  "years": 30,
  "periodsPerYear": 12,
  "annualInflationPct": 2.5
}

Returns futureValue, totalContributed, totalInterest, realFutureValue (today's purchasing power), growthMultiple, and a year-by-year schedule.

loan_amortization

{ "amount": 400000, "annualRatePct": 6.5, "years": 30, "extraPayment": 300 }

Returns the periodicPayment, totalInterest, payoffYears, interestSavedVsNoExtra, and a full amortization schedule.

debt_payoff

{
  "debts": [
    { "name": "Visa", "balance": 6000, "annualRatePct": 24.99, "minPayment": 150 },
    { "name": "Car",  "balance": 12000, "annualRatePct": 6.5,  "minPayment": 280 }
  ],
  "monthlyBudget": 900,
  "strategy": "compare"
}

compare (default) runs avalanche and snowball, reports monthsToDebtFree and totalInterestPaid for each, and tells you which is cheaper and by how much.

fire_calculator

{ "annualIncome": 120000, "annualExpenses": 48000, "currentInvestments": 80000, "realReturnPct": 5 }

Returns your fireNumber, savingsRate, yearsToFire, plus leanFireNumber and fatFireNumber.

freelance_rate

{
  "targetAnnualIncome": 150000,
  "annualBusinessExpenses": 12000,
  "taxRatePct": 30,
  "workingWeeksPerYear": 46,
  "billableUtilization": 0.6
}

Returns the hourlyRate and dayRate you must charge, the billableHoursPerYear, and how that compares to the naive salary / 2080 mistake (vsNaiveSalaryRate).

price_optimizer

{
  "demandPoints": [
    { "price": 29, "quantity": 420 },
    { "price": 39, "quantity": 300 },
    { "price": 49, "quantity": 190 }
  ],
  "unitCost": 8,
  "fixedCost": 2000
}

Fits a linear demand curve, then returns the optimalPrice (profit-max), revenueMaximizingPrice, the fitted demandModel with RΒ², and a transparent price sweep.

roi_compare

{
  "investments": [
    { "name": "Rental",   "cashFlows": [-50000, 6000, 6000, 6000, 6000, 76000] },
    { "name": "Business", "cashFlows": [-50000, 0, 20000, 30000, 40000] }
  ],
  "discountRatePct": 8
}

Returns per-investment roi, paybackPeriod, npv, irrPct, and the winners bestByNpv / bestByRoi / bestByIrr.

tax_estimate

{ "income": 95000, "deduction": 14600 }

Defaults to US 2024 single-filer federal brackets (override with your own brackets for any country/year). Returns totalTax, afterTaxIncome, effectiveRatePct, marginalRatePct, and the per-bracket breakdown.

budget_analyzer

{
  "monthlyIncome": 6000,
  "categories": [
    { "name": "Rent", "amount": 2200, "type": "needs" },
    { "name": "Dining", "amount": 800, "type": "wants" },
    { "name": "Index funds", "amount": 1200, "type": "savings" }
  ]
}

Compares your split to 50/30/20, finds unallocated money and overspending gaps, and returns concrete recommendations.

subscription_audit

{
  "subscriptions": [
    { "name": "Streaming A", "amount": 15.99, "cycle": "monthly", "usesPerMonth": 12, "valueRating": 4 },
    { "name": "Gym",         "amount": 60,    "cycle": "monthly", "usesPerMonth": 1,  "valueRating": 2 }
  ]
}

Annualizes every line, computes costPerUse, flags each as keep / review / cut, and totals potentialAnnualSavings.

side_hustle_ranker

{
  "hustles": [
    { "name": "Consulting", "monthlyRevenue": 4000, "hoursPerMonth": 30, "successProbability": 0.9 },
    { "name": "Print shop", "monthlyRevenue": 2500, "monthlyCost": 600, "hoursPerMonth": 60, "startupCost": 5000, "rampMonths": 4, "successProbability": 0.6 }
  ]
}

Ranks by risk-adjusted effective hourly value, with breakEvenMonths and expectedYearOneProfit for each.


Development

npm run dev        # run the server from TypeScript (tsx)
npm run typecheck  # strict type checking, no emit
npm test           # run the full vitest suite
npm run test:watch # watch mode
npm run build      # compile to dist/

Project layout

src/
  index.ts            # stdio entry point (the MCP process)
  server.ts           # registers all 11 tools with Zod schemas
  finance/            # pure, dependency-free financial engines
    compound.ts  loan.ts  debt.ts  fire.ts  freelance.ts
    pricing.ts   roi.ts   tax.ts   budget.ts  subscriptions.ts
    sideHustle.ts  money.ts
test/                 # one spec per engine + an end-to-end server test

The design rule: all math lives in src/finance/ as pure functions with no MCP or I/O dependencies. The server is a thin adapter. That keeps the logic trivially testable and reusable.


How the numbers are validated

The tests don't just check "it runs" β€” they assert against independently-derived values:

  • Compound growth is checked against the closed-form annuity future-value formula.

  • Loan amortization is checked against the standard mortgage payment (a $100k/6%/30yr loan β†’ ~$599.55/mo, ~$115,838 total interest).

  • Tax is checked bracket-by-bracket against hand-computed US 2024 figures.

  • IRR is checked against known multi-period rates and the trivial [-100, 110] β†’ 10% case.

  • Price optimization is checked against the analytic optimum of a known linear demand curve.

  • An end-to-end test spins up the server over an in-memory transport, lists the tools, and calls them through the real MCP protocol.

Run npm test to see all 58 pass.


Disclaimer

This is an educational/decision-support tool, not financial, tax, investment, or legal advice. Tax brackets and assumptions are illustrative defaults β€” verify against current rules for your jurisdiction, and consult a qualified professional before making consequential decisions.

License

MIT β€” see LICENSE.

Available Tools

11 tools
budget_analyzer50/30/20 Budget AnalyzerA

Analyze a monthly budget against the 50/30/20 rule (needs/wants/savings). Surfaces overspending, unallocated money, your actual split vs the target, and concrete recommendations to raise your savings rate.

Inputs: categories (required), monthlyIncome (required).

compound_growthInvestment Growth ProjectionA

Project how an investment grows over time with optional recurring contributions and compounding. Returns the future value, total contributed, interest earned, an inflation-adjusted 'real' value, and a year-by-year schedule. Use this to answer 'how much will my investing turn into?'.

Inputs: years (required), principal (required), annualRatePct (required), contribution, +3 more.

debt_payoffDebt Payoff Planner (Avalanche vs Snowball)A

Plan how to get out of debt fastest. Simulates month-by-month payoff of multiple debts using the avalanche (highest interest first) and/or snowball (smallest balance first) methods, rolling freed-up payments onto the next target. Reports months to debt-free, total interest, and which strategy wins.

Inputs: debts (required), monthlyBudget (required), strategy.

fire_calculatorFinancial Independence (FIRE) CalculatorA

Compute your FIRE number (the portfolio needed to live off withdrawals), your savings rate, and how many years until you reach financial independence given your income, expenses, current investments, and expected real return. Also reports lean-FIRE and fat-FIRE targets.

Inputs: annualIncome (required), annualExpenses (required), realReturnPct, withdrawalRatePct, +1 more.

freelance_rateFreelance / Consulting Rate CalculatorA

Calculate the hourly rate a freelancer or consultant must charge to actually hit a target take-home income, correctly accounting for non-billable time, vacation, taxes, and business expenses. Stops you from under-charging by using your old salary divided by 2080.

Inputs: targetAnnualIncome (required), taxRatePct, hoursPerWeek, billableUtilization, +2 more.

loan_amortizationLoan / Mortgage AmortizationA

Build a full amortization schedule for a loan or mortgage. Supports recurring extra principal payments and reports the interest those extra payments save plus the new payoff date. Use this for mortgages, auto loans, or any fixed-rate installment loan.

Inputs: years (required), amount (required), annualRatePct (required), extraPayment, +1 more.

price_optimizerProfit-Maximizing Price OptimizerA

Find the price that maximizes profit for a product or service. Fits a linear demand curve to your observed price/quantity points, derives the optimal price from unit economics, and returns a transparent price sweep. Also reports the revenue-maximizing price for growth strategies.

Inputs: unitCost (required), demandPoints (required), fixedCost.

roi_compareInvestment / Opportunity Comparison (ROI, NPV, IRR)A

Compare multiple investments or business opportunities on the metrics that matter: ROI, payback period, NPV, and IRR. Each opportunity is a series of cash flows (period 0 is usually the negative initial outlay). Tells you which option creates the most value.

Inputs: investments (required), discountRatePct.

side_hustle_rankerSide-Hustle / Income-Stream RankerA

Rank side-hustle ideas by risk-adjusted effective hourly value, accounting for startup cost, ramp time, ongoing costs, hours, and probability of success. Turns 'which side hustle should I start?' into a numbers-driven decision.

Inputs: hustles (required).

subscription_auditSubscription Audit & Savings FinderA

Audit recurring subscriptions: annualize every line, compute cost-per-use, and flag low-value or rarely used services as candidates to cut β€” quantifying exactly how much money you can recover per year.

Inputs: subscriptions (required).

tax_estimateProgressive Income Tax EstimatorA

Estimate income tax under a progressive bracket schedule. Defaults to US 2024 single-filer federal brackets but accepts any custom brackets (any country/year). Reports total tax, after-tax income, the per-bracket breakdown, and your effective vs marginal rate.

Inputs: income (required), brackets, deduction.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct personal finance task: budgeting, growth projection, debt payoff, FIRE, freelancing, loans, pricing, investment comparison, side hustles, subscriptions, and taxes. Descriptions clearly differentiate them, and no two tools have overlapping purposes.

    Naming Consistency4/5

    All tool names follow snake_case and a predominantly noun_verb pattern (e.g., compound_growth, debt_payoff). The minor exception is budget_analyzer (noun_verb) instead of budget_analyze, but the pattern is still clear and consistent overall.

    Tool Count5/5

    With 11 tools, the count feels perfectly scoped for a personal finance assistant. Each tool covers a distinct aspect without overwhelming the user or agent, making the set manageable and focused.

    Completeness4/5

    The toolset covers budgeting, investing, debt, loans, taxes, and FIRE comprehensively. Minor gaps exist, such as no general retirement planning beyond FIRE or expense tracking, but the core workflows are well-covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server and CLI providing business, financial, and tax calculations including math expressions, income tax estimates, loan amortization, depreciation, and more.
      10
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Personal finance calculators exposed as an MCP server with a Gradio UI, deployable to Hugging Face Spaces.
      -
    • A
      license
      A
      quality
      B
      maintenance
      A personal finance tracker MCP server that imports Rocket Money data or connects banks via SimpleFIN to a local SQLite database, enabling Claude to analyze spending, subscriptions, cash flow, and debt payoff with complete privacy.
      15
      66 npm
      MIT