npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

retirement-planner-mcp

v1.0.1

Published

MCP server for retirement financial planning calculations

Downloads

54

Readme

retirement-planner-mcp

An MCP (Model Context Protocol) server that exposes Australian retirement financial planning calculations. Connect it to Claude Desktop, Cursor, or any MCP-compatible client to run retirement projections and expense optimizations directly from your AI assistant.

Installation

Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "retirement-planner": {
      "command": "npx",
      "args": ["-y", "retirement-planner-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project, or ~/.cursor/mcp.json globally:

{
  "mcpServers": {
    "retirement-planner": {
      "command": "npx",
      "args": ["-y", "retirement-planner-mcp"]
    }
  }
}

Restart your client after saving the config. The tools will appear automatically.


Tools

calculate-retirement-plan

Calculates a complete retirement financial plan with year-by-year projections covering income, expenses, superannuation growth, age pension eligibility, property equity, and inflation-adjusted net wealth.

Returns: summary, final wealth, final net savings, and a full year-by-year projection array.

optimize-expense

Finds the optimal annual (and monthly) living expense that depletes wealth to approximately zero by the plan end age. Uses binary search with cash flow sustainability checks.

Returns: optimal annual expense, optimal monthly expense, final wealth at death age, and convergence info.


Input Schema

Both tools accept a profile object with the following fields:

Required

| Field | Type | Description | |---|---|---| | propertyAssets | number | Current property value ($) | | savings | number | Cash/investment savings ($) | | mortgageBalance | number | Outstanding mortgage ($) | | superannuationBalance | number | Super balance ($) | | salary | number | Annual gross salary package incl. super ($) | | partnerSalary | number | Partner annual gross salary incl. super ($) | | expenses | number | Annual living expenses ($) | | currentAge | number | Your current age | | retireAge | number | Planned retirement age | | partnerAge | number | Partner's current age | | partnerRetireAge | number | Partner's retirement age | | relationshipStatus | "single" | "couple" | Relationship status | | isHomeowner | boolean | Whether you own your home |

Optional (with defaults)

| Field | Default | Description | |---|---|---| | deathAge | 90 | Plan end age | | mortgageRate | 0.06 | Annual mortgage interest rate | | superannuationRate | 0.07 | Annual super return rate | | savingsGrowthRate | 0.025 | Annual savings/investment growth rate | | propertyGrowthRate | 0.03 | Annual property growth rate | | propertyRentalYield | 0.033 | Net rental yield | | cpiGrowthRate | 0.03 | Annual inflation rate | | partnerSuperBalance | — | Partner's super balance ($) | | lifeEvents | — | Array of one-off income/expense events | | housePurchasePlan | — | Future house purchase plan |


Example prompt

Once connected, ask Claude:

"Calculate a retirement plan for a 40-year-old couple in Australia. Combined salary $180k, savings $200k, super $350k, mortgage $400k on a $800k home, expenses $90k/year. They want to retire at 60."

"What's the maximum I can spend each year if I'm 35, earning $120k, have $150k in super, $80k savings, no property, and want to retire at 65?"


Requirements

  • Node.js 18+
  • No other setup needed — npx downloads and runs the package automatically

Publishing

Initial publish

cd MCP
npm login       # if not already logged in
npm publish --access public

Updating the package

When calculations or tools change:

cd MCP
# 1. Bump the version in package.json (semver: patch / minor / major)
npm run bundle
npm publish --access public

Users install via npx — no action required on their end after a publish.


License

MIT