# 401k.loans: 401(k) loan and withdrawal calculators

> 401k.loans: 401(k) loan and withdrawal calculators is a free MCP server for finance and payments. 401(k) loan, withdrawal and alternative-borrowing calculators for AI assistants. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **Website:** https://401k.loans/developers/
- **MCP Registry name:** loans.401k/401k-loans
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-15

## About

The 401k.loans tools put numbers on a decision many people make quickly. calculate_401k_loan_cost returns the payment per paycheck, total interest, the balance at payoff with and without the loan and the gap at age 65, legal and usual plan limits, and what you would owe, with tax, if you left your job before repaying.

compare_401k_loan_alternatives raises the same cash four ways: 401(k) loan, hardship withdrawal, personal loan and HELOC, showing the payment, money gone for good and the hit to the 401(k) at term end and at 65. calculate_401k_early_withdrawal gives income tax, the 10% additional tax, what you keep, what the plan withholds and the balance due or refund at filing.

It runs the same formulas and defaults as the site's calculators. Loan limits and the 10% tax come from the Internal Revenue Code, 2026 brackets from Rev. Proc. 2025-32, and prefilled rates from Federal Reserve H.15 and G.19. Results are estimates, not tax, legal or investment advice.

## Features

- **True loan cost:** Payment, interest, lost growth to age 65 and the bill if you leave your job.
- **Four-way comparison:** 401(k) loan, hardship withdrawal, personal loan and HELOC side by side.
- **Early withdrawal tax:** Income tax, the 10% additional tax and what you keep.
- **Plan limits:** Shows legal and usual plan loan limits.
- **Sourced defaults:** Tax brackets and rates cited with dates.
- **Same as the site:** Matches the website's calculators for the same inputs.

## Good for

- Find the cost of borrowing $15,000 from a 401(k) at 8% over 5 years
- Compare a 401(k) loan with a HELOC for $10,000
- See how much you keep from a $20,000 early cash-out
- Estimate what happens if you leave your job mid-loan

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http 401k-loans https://401k.loans/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://401k.loans/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "401k-loans": {
      "url": "https://401k.loans/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "401k-loans": {
      "type": "http",
      "url": "https://401k.loans/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "401k-loans": {
      "serverUrl": "https://401k.loans/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://401k.loans/mcp
```

Enter a Name (for example "401k.loans: 401(k) loan and withdrawal calculators"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "401k-loans": {
      "type": "http",
      "url": "https://401k.loans/mcp"
    }
  }
}
```

## Tools

- `calculate_401k_loan_cost`: Payment, total interest, balance with and without the loan, plan limits and the bill if you leave the job.
- `compare_401k_loan_alternatives`: The same cash raised via 401(k) loan, hardship withdrawal, personal loan and HELOC.
- `calculate_401k_early_withdrawal`: Income tax, the 10% additional tax, what you keep and the balance due or refund.

## FAQ

### Is it free?

Yes. The server is free, read-only and needs no key or sign-in.

### Do results match the website?

Yes. They use the same formulas and defaults as the calculators; passing your own rate, balance and bracket matches the page.

### Where do the rules and rates come from?

The Internal Revenue Code, Rev. Proc. 2025-32 for 2026 brackets, Federal Reserve H.15 for prime and G.19 for personal loan rates.

### Is this tax advice?

No. Results are estimates from your inputs, not tax, legal or investment advice or a loan quote.

### Is 401k.loans: 401(k) loan and withdrawal calculators free?

Yes. 401k.loans: 401(k) loan and withdrawal calculators is free to use.

### How do I add 401k.loans: 401(k) loan and withdrawal calculators to Claude Code?

Run this command in your terminal: claude mcp add --transport http 401k-loans https://401k.loans/mcp

### What are the best alternatives to 401k.loans: 401(k) loan and withdrawal calculators?

The closest alternatives to 401k.loans: 401(k) loan and withdrawal calculators are The Real Cost, CarLoanMath, StudentLoan.help: federal repayment plan calculator, EveryCalc and Senaro Personal Finance.

## Where this comes from

- Description: written from the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [The Real Cost](https://ai-powered.com/mcp/the-real-cost): The Real Cost is a free MCP server for finance and payments.
- [CarLoanMath](https://ai-powered.com/mcp/carloanmath): CarLoanMath is a free MCP server for finance and payments.
- [StudentLoan.help: federal repayment plan calculator](https://ai-powered.com/mcp/studentloan-help-federal-repayment-plan-calculator): StudentLoan.help: federal repayment plan calculator is a free MCP server for finance and payments.
- [EveryCalc](https://ai-powered.com/mcp/everycalc): EveryCalc is a free MCP server for finance and payments.
- [Senaro Personal Finance](https://ai-powered.com/mcp/senaro-personal-finance): Senaro Personal Finance is a free MCP server for finance and payments.
- [Loan My Coins](https://ai-powered.com/mcp/loan-my-coins): Loan My Coins is a free MCP server for finance and payments.
- [Homeloanscalculator](https://ai-powered.com/mcp/homeloanscalculator): Homeloanscalculator is a free MCP server for finance and payments.
- [Roth vs Traditional Optimizer](https://ai-powered.com/mcp/roth-vs-traditional-optimizer): Roth vs Traditional Optimizer is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/401k-loans-401-k-loan-and-withdrawal-calculators
