@pipeworx/fred
Connect: https://gateway.pipeworx.io/fred/mcp · Install: one-click buttons
Tools: 6
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.
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.
Common pitfalls
- Vintages: FRED preserves historical “vintages” (data as it was reported at time T). Default tool calls get the latest revised series. Pass
realtime_startandrealtime_endfor as-of queries. - 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_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.
Tools
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_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.