Macro economics

Pull the canonical US macro dataset — yield curve, CPI, unemployment, fed funds, Sahm rule — without an API key.

When to use this pack

Producing a weekly macro note, charting the recession-indicator dashboard, or feeding a model with the latest FRED/Treasury data.

Tools in this pack

Workflow

  1. Pull the live Treasury yield curve (all maturities from 1M to 30Y) — the base data for every spread/inversion chart.
  2. Get the 10Y–2Y and 10Y–3M spreads from yield-curve-spread; the latter is the NY Fed's preferred recession indicator.
  3. Pull CPI YoY (cpi-yoy) for the headline and core inflation read.
  4. Pull the headline unemployment rate (unemployment-rate) — the U-3 series.
  5. Get the effective fed funds rate (fed-funds) for the current policy stance.
  6. Compute the Sahm rule (sahm-rule) — a real-time recession indicator that triggers when the 3-month unemployment average rises >0.5pp above its 12-month low.
  7. Pull the upcoming FRED release calendar (fred-release-calendar) so the brief can flag what's hitting this week.

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Build today's macro dashboard. Use Agent402 to pull the Treasury yield curve, 10Y–2Y and 10Y–3M spreads, latest CPI YoY, unemployment rate, fed funds rate, and the Sahm rule reading. Highlight any indicator that is at a multi-year extreme, and list FRED releases scheduled for this week.

← All skill packs