{
  "$schema": "https://modelcontextprotocol.io/schema/mcp-server.json",
  "name": "mrojek-portfolio-tools",
  "displayName": "MROJEK Sovereign Quantitative Tools",
  "version": "1.0.0",
  "protocolVersion": "2024-11-05",
  "description": "Deterministic client-side quantitative finance engines, FIRE calculators, and real estate cash flow models by Marek Rojek.",
  "homepage": "https://www.mrojek.com",
  "author": {
    "name": "Marek Rojek",
    "url": "https://www.mrojek.com",
    "did": "did:web:mrojek.com"
  },
  "transport": {
    "type": "webmcp",
    "runtime": "https://www.mrojek.com/js/webmcp.js",
    "protocol": "jsonrpc-2.0"
  },
  "tools": [
    {
      "name": "compound_interest_calculator",
      "description": "Calculates deterministic compound growth with monthly deposits, annual returns, and German capital gains tax (Abgeltungsteuer 26.375% + Sparerpauschbetrag).",
      "url": "https://www.mrojek.com/financial-independence/compound-interest.html",
      "inputSchema": {
        "type": "object",
        "properties": {
          "initialCapital": { "type": "number", "description": "Starting investment in EUR", "default": 10000 },
          "monthlyContribution": { "type": "number", "description": "Monthly addition in EUR", "default": 500 },
          "annualReturnRate": { "type": "number", "description": "Expected annual return as percentage", "default": 7 },
          "years": { "type": "number", "description": "Investment duration in years", "default": 20 },
          "taxRate": { "type": "number", "description": "Capital gains tax rate as fraction (0.26375)", "default": 0.26375 },
          "taxAllowance": { "type": "number", "description": "German Sparerpauschbetrag in EUR", "default": 1000 }
        },
        "required": ["years"]
      }
    },
    {
      "name": "coast_fire_calculator",
      "description": "Calculates target Coast FIRE milestones based on current age, target retirement age, and expected real investment return.",
      "url": "https://www.mrojek.com/financial-independence/coast-fire.html",
      "inputSchema": {
        "type": "object",
        "properties": {
          "currentAge": { "type": "number", "description": "Current age in years", "default": 30 },
          "retirementAge": { "type": "number", "description": "Target retirement age", "default": 60 },
          "currentNetWorth": { "type": "number", "description": "Current invested assets in EUR", "default": 50000 },
          "annualExpensesAtRetirement": { "type": "number", "description": "Projected annual expenses in retirement (EUR)", "default": 36000 },
          "safeWithdrawalRate": { "type": "number", "description": "SWR percentage (default 4)", "default": 4 },
          "expectedRealReturn": { "type": "number", "description": "Expected annual return after inflation (default 5)", "default": 5 }
        },
        "required": ["currentAge", "retirementAge", "annualExpensesAtRetirement"]
      }
    },
    {
      "name": "fire_number_calculator",
      "description": "Computes financial independence milestone wealth according to Bengen Trinity SWR or custom safe withdrawal rate.",
      "url": "https://www.mrojek.com/financial-independence/fire-number.html",
      "inputSchema": {
        "type": "object",
        "properties": {
          "annualExpenses": { "type": "number", "description": "Total annual living expenses in EUR", "default": 40000 },
          "safeWithdrawalRate": { "type": "number", "description": "Withdrawal rate percentage (e.g. 3.5 or 4)", "default": 4 }
        },
        "required": ["annualExpenses"]
      }
    },
    {
      "name": "monte_carlo_swr_simulator",
      "description": "Runs 1,000 stochastic portfolio longevity trajectories under sequence of returns volatility.",
      "url": "https://www.mrojek.com/financial-independence/monte-carlo.html",
      "inputSchema": {
        "type": "object",
        "properties": {
          "portfolio": { "type": "number", "description": "Initial retirement portfolio in EUR", "default": 1000000 },
          "annualWithdrawal": { "type": "number", "description": "Annual withdrawal in EUR", "default": 40000 },
          "years": { "type": "number", "description": "Retirement horizon in years", "default": 30 },
          "meanReturn": { "type": "number", "description": "Expected mean equity return (0.07)", "default": 0.07 },
          "volatility": { "type": "number", "description": "Standard deviation / volatility (0.16)", "default": 0.16 }
        },
        "required": ["portfolio", "annualWithdrawal"]
      }
    },
    {
      "name": "german_real_estate_cashflow",
      "description": "Appraises German real estate investment cash flow, gross yield, net initial yield, and AfA tax depreciation (§ 7 EStG).",
      "url": "https://www.mrojek.com/financial-independence/kapitalanlage-rechner.html",
      "inputSchema": {
        "type": "object",
        "properties": {
          "purchasePrice": { "type": "number", "description": "Purchase price in EUR", "default": 250000 },
          "coldRentMonthly": { "type": "number", "description": "Monthly cold rent in EUR", "default": 950 },
          "notaryAndTaxRate": { "type": "number", "description": "Anschaffungsnebenkosten rate", "default": 0.08 },
          "equity": { "type": "number", "description": "Eigenkapital injected in EUR", "default": 50000 },
          "interestRate": { "type": "number", "description": "Loan interest rate (0.038)", "default": 0.038 },
          "repaymentRate": { "type": "number", "description": "Initial repayment rate (0.02)", "default": 0.02 },
          "maintenanceMonthly": { "type": "number", "description": "Non-allocable maintenance costs/mo", "default": 80 },
          "managementMonthly": { "type": "number", "description": "Property management fee/mo", "default": 35 },
          "taxRate": { "type": "number", "description": "Marginal income tax rate (0.42)", "default": 0.42 }
        },
        "required": ["purchasePrice", "coldRentMonthly"]
      }
    },
    {
      "name": "paypal_fee_calculator",
      "description": "Computes seller net proceeds and fees under standard domestic or micropayment rates.",
      "url": "https://www.mrojek.com/financial-independence/paypal-rechner.html",
      "inputSchema": {
        "type": "object",
        "properties": {
          "amount": { "type": "number", "description": "Transaction gross amount in EUR", "default": 100 },
          "type": { "type": "string", "enum": ["standard", "micropayments"], "default": "standard" }
        },
        "required": ["amount"]
      }
    }
  ]
}
