Fred

Registre officiel Autres

FRED MCP — Federal Reserve Economic Data (St. Louis Fed)

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

Remote (streamable-http)
Claude Code
claude mcp add --transport http fred 'https://gateway.pipeworx.io/fred/mcp'
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "fred": {
            "type": "http",
            "url": "https://gateway.pipeworx.io/fred/mcp"
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. FRED — Federal Reserve Economic Data
  2. Why this matters for AI agents
  3. Auth
  4. Update cadence
  5. Citable URI
  6. ALFRED vintages: "what did this number say on date X"
  7. Reading a fred_get_series response
  8. Regional Fed nowcasts (keyless, not FRED series)
  9. Common pitfalls
  10. Quick Start
  11. No MCP client? Call it over HTTP
  12. Standalone (no gateway account)
  13. Using with ask_pipeworx
  14. More
  15. License

FRED — Federal Reserve Economic Data

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.

Part of Pipeworx — an MCP gateway connecting AI agents to 1831+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

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 classUpdate 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 for realtime_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, from first_release to latest. Use this on revision-prone series (GDP GDPC1, payrolls PAYEMS) 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

FieldWhat it is
countHow many observations FRED holds for the requested window.
returnedHow many are in observations — limit caps this at 20 by default.
truncatedTrue when returned < count; note says so in words.
observation_ordernewest_first (default) or oldest_first (sort_order: "asc").
observation_start / observation_endThe series' real coverage, from FRED's series metadata.
requested_start / requested_endThe 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 (or realtime_start/realtime_end) to fred_get_series for as-of queries, or use fred_revisions to see the full history of one observation.
  • Frequency aggregation: frequency parameter coerces to a different cadence (e.g., daily → monthly average). Default is the series' native frequency.
  • Units transformation: units parameter computes derived series at request time (pch for percent change, pca for 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_search is the recovery path.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "fred": {
      "url": "https://gateway.pipeworx.io/fred/mcp"
    }
  }
}
What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/fred/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 1831+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/fred_get_series \
  -H 'Content-Type: application/json' \
  -d '{"series_id":"MORTGAGE30US"}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/fred_get_series. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Standalone (no gateway account)

This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:

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

Or run it directly to confirm it starts:

npx -y @pipeworx/mcp-fred

It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call for only this pack's tools — none of the shared meta-tools the gateway connection above adds. Same source, same tools, no ask_pipeworx routing.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about Fred data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

Questions fréquentes

Qu'est-ce que Fred ?

FRED MCP — Federal Reserve Economic Data (St. Louis Fed)

Comment installer Fred ?

Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http fred 'https://gateway.pipeworx.io/fred/mcp'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour Fred ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

Fred est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient Fred ?

Il est publié par pipeworx-io. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.