Skip to main content
Glama
RetireGolden MCP

RetireGolden MCP

Official
by RetireGolden

RetireGolden MCP

Headless Model Context Protocol server for the @retiregolden/engine retirement-planning calculator.

Run it locally over stdio, connect your AI client (Claude Desktop, Cursor, etc.), and call typed tools: build/validate a plan, run projections, Monte Carlo, batch policy evaluation, and optimization — with session state held in memory (no disk required).

npm: @retiregolden/mcp
License: AGPL-3.0-only (server); MIT (skills under skills/)

RetireGolden Pro ships this same package pre-wired in the desktop app for out-of-the-box convenience. Anyone can install and run the public package.

Disclaimer

Educational / decision-support only — not tax, legal, or financial advice. See DISCLAIMER.md.

Related MCP server: @numeratica/mcp

Quick start

npx @retiregolden/mcp
# or
npm install -g @retiregolden/mcp
retiregolden-mcp

Configure your MCP client to launch retiregolden-mcp (or npx @retiregolden/mcp) over stdio. The same command serves both 2025-era (legacy initialize) and 2026-07-28 (modern server/discover) clients — existing configs do not change.

Run from a checkout

Working on this repository instead of installing the package? Build once, then launch the same stdio server the published bin entry point runs:

pnpm install --frozen-lockfile
pnpm run build
pnpm run mcp

Example Claude Desktop / Cursor snippet

{
  "mcpServers": {
    "retiregolden": {
      "command": "npx",
      "args": ["-y", "@retiregolden/mcp"]
    }
  }
}

Connect your AI client

Per-client, copy-paste setup for Claude Desktop, Claude Code, Cursor, and Codex (MCP config + agent skill / rules) is in docs/clients.md.

Tools (v1)

Read-only with respect to your finances and disk: no trades, no persistence. Session state (e.g. build_plan, clear_session) is held in memory only.

Tool

Purpose

build_plan

Build an in-memory plan from typed household/policy params or full plan JSON

validate_plan

Validate the current session plan (or supplied JSON)

run_projection

Deterministic year-by-year projection

run_monte_carlo

Stochastic success rate and required-floor success rate; with no arguments, the app's headline run (1,000 paths, the engine's default seed and plan model)

batch_evaluate

Evaluate many policies against one household (search-friendly)

run_optimizer

Engine optimizer / conversion schedule search

solve_max_spending

Sustainable-spending bisection

compare_scenarios

Diff two projection summaries; headline is the app's Compare-page after-tax estate comparison with its money basis (today's dollars when the plans end in different years)

explain_modeled_result

Compact evidence / assumptions / limitations payload

export_plan

Return the session plan as full plan JSON (round-trips via build_plan)

describe_plan_schema

Return the engine's versioned Plan JSON Schema (full or a path subtree); also served as the plan-schema MCP resource

update_plan

Incrementally merge account/income/assumption/expense fragments into the session plan (validate-before-commit)

get_session / clear_session

Inspect or reset in-memory session

Agent skill

See skills/retiregolden/SKILL.md (MIT). Bench and product runners should pin the skill file digest used for scored runs.

npm publish

Releases are tag-driven: pushing a mcp-v<version> tag triggers the publish workflow (see .github/workflows/publish-mcp.yml).

Trademark

See TRADEMARKS.md. Forks must rename.

Automated code review

Repository review guidance lives in REVIEW.md, with HTTP-specific notes in src/http/REVIEW.md. The policy format follows the OpenRouter PR review action reference.

The workflow loads effective guidance from the target branch (typically main) at review time. Edits on an open PR affect later runs only after merge; changed source files on the PR branch are still reviewed. Review policy cannot exclude file coverage—new or touched source remains in scope.

This repository caller enables both review_policy: base and review_profiles_enabled: true. With profiles enabled, the root REVIEW.md selects the trusted registry's code profile through its review.profile metadata. The registry defines that profile's models and budgets; policy cannot invent models or grant CI authorization. Nested REVIEW.md files add scoped guidance and cannot change the root profile.

Manual review dispatches review the full PR while retaining its finding ledger and rebuttals. Leave reset_review false for normal reruns; profile-enabled reviews reject reset_review: true. When reading review results through the GitHub API, paginate reviews, inline comments, and issue comments, including every continuation part.

After a rebase or force-push makes the last reviewed commit unreachable, the shared harness selects rebase scope automatically: a full current-PR sweep at all severities with earlier reviews and replies as bounded context. Finding IDs and round progression survive. Valid disputes remain settled; current-code evidence can reopen an invalidated dispute. Fixed or retired findings supply historical context for detecting regressions. A clean current-head review and current profile proof are still required; old-lineage evidence cannot unlock CI. The pinned action's rebase contract and usage and collector regression tests document and exercise this upstream behavior.

Review profiles and CI proof

The caller enables trusted profiles from the organization workflow. Code uses required GPT-6.1 Sol (Azure US ZDR route) plus optional GLM; deep adds required Astra Flex. This preserves the standing baseline; REVIEW.md cannot name arbitrary models or remove required lanes.

From Actions → OpenRouter code review, dispatch from main with a PR number and review_level: auto, deep, or cancel. Deep requests require repository write/maintain/admin permission, retain existing findings, and stay pending across retries and pushes until their own required review succeeds. Cancel removes a manual pending request; it cannot lower a policy requirement. Leave reset_review false.

OpenRouter profile completion checks the exact PR head, effective current policy, required lanes, and accepted requests. The openrouter-profile status supplements the existing first-pass gate and repository CI. A successful review workflow alone does not establish a clean or complete review.

Profile artifacts retain 30 days (requests 90 days), and the gate accepts PRs younger than 25 days. Open a replacement PR for older work. Missing evidence fails closed. An automatic policy refresh is requested at most once per head/configuration; use a manual rerun if that request fails. Maintainer labels and automatic path escalation are not enabled in this rollout.

Dispatch OpenRouter profile completion from the default branch; selecting a feature branch intentionally skips its trusted proof job. Bot-dispatched reviews explicitly wake this workflow because GitHub suppresses their downstream workflow_run events. The optional source_run_id identifies a completed review run to inspect; the receiver still checks its provenance and current evidence. If notification delivery fails, retry profile completion with that run ID on main instead of paying for another review.

Available Tools

8 tools
batch_evaluateB

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Evaluate many policies against the current household plan (search-friendly). Cap batches sensibly (~40 tool calls total in agent loops).

Inputs: policies (required), objective.

build_planA

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Build or replace the in-memory plan from typed household/policy params or full plan JSON.

Inputs: plan, policy, household, startYear, +6 more.

compare_scenariosC

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Compare two plan JSON documents via projection summaries.

Inputs: planA (required), planB (required), startYear.

describe_plan_schemaA

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Return the engine's versioned Plan JSON Schema (the source of truth for authoring a full plan document) plus its schemaVersion. Pass an optional path (dotted, e.g. 'properties.accounts.items', or JSON pointer, e.g. '/properties/accounts/items') to fetch just a subtree and keep token cost down. Read-only meta tool; also exposed as the MCP resource of the same schema. Feed a document's extracted fields into update_plan, then validate_plan.

Inputs: path.

explain_modeled_resultC

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Return framing, assumptions, caveats, and limitations for the current session.

Inputs: no named parameters.

run_projectionA

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Run a deterministic projection on the session plan. Always starts at the session plan's startYear (rebuild via build_plan to change it). detail='summary' (default) returns startYear/endYear/summary/caveats only; detail='years' also returns the full per-year ledger. Taxes are federal PLUS state and local: the resident state's modeled income tax unless assumptions.stateEffectiveTaxPct overrides it with a flat rate above 0, plus any localIncomeTaxPct. This is the same stack the RetireGolden web app runs, so for a plan exported from that app these numbers match what the user sees on screen, provided you also pass the exported startYear.

Inputs: detail.

solve_max_spendingB

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Bisect maximum sustainable base annual spending for the session plan.

Inputs: no named parameters.

validate_planC

Educational decision-support only — not tax, legal, or financial advice. Do not prescribe securities actions. Validate plan JSON (or the current session plan).

Inputs: plan.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct operation: building, projecting, comparing, validating, explaining, solving for spending, batch evaluating, and schema description. No two tools have overlapping purposes; an agent can clearly distinguish them.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (e.g., build_plan, compare_scenarios), but batch_evaluate is a verb_verb form, making it slightly inconsistent. Overall, naming is clear and predictable.

    Tool Count5/5

    Eight tools is well-scoped for a retirement planning server. Each tool serves a core function without unnecessary redundancy, covering the essential workflows.

    Completeness4/5

    The tool set covers key lifecycle operations: build, project, validate, compare, and solve. However, missing explicit tools to update or retrieve the current plan represent minor gaps that could complicate workflows.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for ProjectionLab — export, snapshot, and restore your financial plans. Includes a built-in FIRE advisor knowledge base.
      5
      16 npm
      16
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A thin MCP bridge that connects any MCP client to the Numeratica financial-planning API — retirement Monte Carlo, taxes, RMDs, Social Security, Roth conversions, and more.
      66 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server exposing UK financial adviser calculations (tax, IHT, pensions, portfolios) to any MCP-capable client.
      6
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A simulation engine for retirement planning, accessible via an MCP server that allows AI agents to create financial plans, manage income, expenses, loans, taxes, and portfolios, and run Monte Carlo simulations.
      MIT