@pipeworx/fred
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/fred’s. Install: one-click buttons
Connect to just the @pipeworx/fred pack
https://gateway.pipeworx.io/fred/mcp — only @pipeworx/fred’s own tools, nothing else in the catalog.
No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.
Tools: 10
The St. Louis Fed’s data warehouse: 800,000+ economic time series spanning interest rates, inflation, employment, GDP, money supply, exchange rates, and metro-level indicators. The most authoritative, continuously updated source for US macro and monetary data — used by economists, policymakers, and journalists.
Why this matters for AI agents
Most “what is the current X” macro questions resolve to a FRED series. An agent that knows the series ID can answer with the actual current value, not a training-data snapshot. Common ones:
- 30-year mortgage rate →
MORTGAGE30US - Federal funds rate →
DFF - CPI (all items) →
CPIAUCSL - Unemployment rate →
UNRATE - 10-year treasury yield →
DGS10 - Housing starts →
HOUST - Case-Shiller home price index →
CSUSHPISA
If your agent is answering a question about US macroeconomic state, the right pattern is fred_search (find the right series) → fred_series_info (confirm units and frequency) → fred_get_series (get the values).
Auth
FRED requires an API key. It’s free at https://fred.stlouisfed.org/docs/api/api_key.html — takes 30 seconds, no payment, no rate-limit terror.
Pass via _apiKey per call:
fred_get_series({
series_id: "MORTGAGE30US",
_apiKey: "your-fred-api-key"
})
Or subscribe to the Housing Vertical which manages the key for you.
Update cadence
| Series class | Update frequency |
|---|---|
| Daily series (rates, exchange rates) | Daily, ~1 business day lag |
| Weekly (mortgage rates) | Weekly, Thursday |
| Monthly (CPI, unemployment, retail sales) | Monthly, ~2-3 weeks after month end |
| Quarterly (GDP) | Quarterly, ~1 month after quarter end |
Pipeworx caches FRED responses with TTLs matching these cadences — see caching and freshness.
Citable URI
Embed in your output for stable citations:
pipeworx://fred/series/{series_id}
pipeworx://fred/series/{series_id}/observations
Other agents (and resources/read) can resolve these to the current value of the series.
ALFRED vintages: “what did this number say on date X”
FRED revises most series after first publication (GDP, payrolls, retail sales…).
fred_get_series defaults to the latest revised values — pass one of these to
ask for an earlier vintage instead:
as_of: "2020-03-15"— the data exactly as it stood on that date. Shorthand forrealtime_start = realtime_end = as_of.realtime_start/realtime_end— an explicit publication window, for the rarer case of a custom range rather than a single date.
Omitting all three is the default and is unchanged: no vintage field, same
values as before this parameter existed. Passing any of them adds a vintage
object to the response ({as_of, realtime_start, realtime_end}) so you can
tell which vintage you’re looking at.
fred_get_series({ series_id: "GDPC1", as_of: "2024-01-15", limit: 1 })
// -> the GDP print as FRED had it published on 2024-01-15, before later revisions
Two more tools cover the revision history directly:
fred_vintage_dates({ series_id })— every date FRED published a new vintage of the series (initial release or a later revision).fred_revisions({ series_id, observation_date })— how ONE observation’s value changed across every vintage, fromfirst_releasetolatest. Use this on revision-prone series (GDPGDPC1, payrollsPAYEMS) to see the originally reported number versus today’s.
fred_revisions({ series_id: "GDPC1", observation_date: "2023-10-01" })
// -> revisions: [{ vintage_date: "2023-10-26", value: "22490.692" }, ...]
// one entry per ALFRED vintage, oldest first; first_release is the
// earliest, latest the most recent. Consecutive vintages can repeat the
// same value — compare first_release.value to latest.value to see
// whether this observation was ever actually revised.
Reading a fred_get_series response
| Field | What it is |
|---|---|
count | How many observations FRED holds for the requested window. |
returned | How many are in observations — limit caps this at 20 by default. |
truncated | True when returned < count; note says so in words. |
observation_order | newest_first (default) or oldest_first (sort_order: "asc"). |
observation_start / observation_end | The series’ real coverage, from FRED’s series metadata. |
requested_start / requested_end | The window you asked for. Absent when you asked for none. |
The last two rows are the one to know about. FRED’s observations endpoint echoes
observation_start/observation_end back as it received them, and substitutes
1600-01-01 / 9999-12-31 when the caller sets neither — so this pack used to
report that US GDP ran from 1600 through 9999. Those names now carry the coverage
from the series metadata, matching what fred_series_info and fred_search
already mean by them.
Regional Fed nowcasts (keyless, not FRED series)
Two tools in this pack proxy regional Federal Reserve Bank websites directly
rather than the St. Louis Fed’s API — neither series exists in FRED’s own
catalog, confirmed by fred_search before building. No _apiKey needed.
nyfed_gdp_nowcast()— the Federal Reserve Bank of New York’s weekly real GDP growth nowcast for the quarter(s) it is currently tracking, with 50%/80% probability intervals, the publisher’s own narrative, and recent concluded quarters’ final nowcast versus the actual BEA GDP print. Updated every Friday.cleveland_fed_inflation_nowcast()— the Federal Reserve Bank of Cleveland’s daily CPI/PCE inflation nowcast (headline and core), as month-over-month, year-over-year, and quarterly-annualized figures. A blank cell means the official BLS/BEA release for that period already exists. Updated every business day.
nyfed_gdp_nowcast({})
// -> current_estimates: [{ quarter: "2026:Q3", nowcast_pct: 2.7, ... }, { quarter: "2026:Q4", nowcast_pct: 2.8 }]
cleveland_fed_inflation_nowcast({})
// -> current: { month: "October 2026", month_over_month_pct: { cpi: 0.27, ... }, year_over_year_pct: { cpi: 3.77, ... } }
Common pitfalls
- Vintages: FRED preserves historical “vintages” (data as it was reported at time T). Default tool calls get the latest revised series. Pass
as_of(orrealtime_start/realtime_end) tofred_get_seriesfor as-of queries, or usefred_revisionsto see the full history of one observation. - Frequency aggregation:
frequencyparameter coerces to a different cadence (e.g., daily → monthly average). Default is the series’ native frequency. - Units transformation:
unitsparameter computes derived series at request time (pchfor percent change,pcafor compound annual rate, etc.). Don’t compute these client-side; let FRED do it. - Series renamed: occasionally the Fed deprecates a series and creates a successor. Old IDs return errors.
fred_searchis the recovery path.
Tools
- fred_get_series — A US economic indicator’s full history, from the St. Louis Fed’s FRED database.
- fred_vintage_dates — The ALFRED vintage (revision) dates for one FRED series, from the St. Louis Fed.
- fred_revisions — The revision history of one observation in a FRED series, across every ALFRED vintage.
- fred_search — US economic data series matching a keyword search, from the St. Louis Fed’s FRED database.
- fred_series_info — The metadata for one FRED economic data series — units, frequency, last updated — from the St. Louis Fed.
- fred_category — The economic data series filed under one FRED category, from the St. Louis Fed.
- fred_releases — The economic data releases (e.g. Employment Situation) tracked by FRED, from the St. Louis Fed.
- fred_release_dates — The past and scheduled publication dates for one FRED data release, from the St. Louis Fed.
- nyfed_gdp_nowcast — This week’s New York Fed real GDP growth nowcast, with the narrative behind the number.
- cleveland_fed_inflation_nowcast — Today’s Cleveland Fed CPI/PCE inflation nowcast — month, year, and quarterly annualized.
Tools
cleveland_fed_inflation_nowcast— Today's Cleveland Fed CPI/PCE inflation nowcast — month, year, and quarterly annualized.fred_category— The economic data series filed under one FRED category, from the St. Louis Fed.fred_get_series— A US economic indicator's full history, from the St. Louis Fed's FRED database.fred_release_dates— The past and scheduled publication dates for one FRED data release, from the St. Louis Fed.fred_releases— The economic data releases (e.g. Employment Situation) tracked by FRED, from the St. Louis Fed.fred_revisions— The revision history of one observation in a FRED series, across every ALFRED vintage.fred_search— US economic data series matching a keyword search, from the St. Louis Fed's FRED database.fred_series_info— The metadata for one FRED economic data series — units, frequency, last updated — from the St. Louis Fed.fred_vintage_dates— The ALFRED vintage (revision) dates for one FRED series, from the St. Louis Fed.nyfed_gdp_nowcast— This week's New York Fed real GDP growth nowcast, with the narrative behind the number.