Skip to main content

MCP server for FRED® economic data — search and read 800k+ time series, releases, and ALFRED vintage data: what the numbers said before revisions.

Project description

fred-mcp

FRED® economic data inside your AI agent — including what the numbers said before the revisions. An MCP server for the Federal Reserve Bank of St. Louis's FRED® API: search and read 800,000+ U.S. and international time series, follow the release calendar, and — the distinctive part — query ALFRED® vintage data: any series exactly as it was known on a past date, and any single data point's full revision history from its initial print to today's value.

Read-only, built on public endpoints, powered by your own free FRED API key. Live API calls with a volatility-aware cache (vintage reads are immutable and cache long; current data stays fresh) — no bulk mirroring.

This product uses the FRED® API but is not endorsed or certified by the Federal Reserve Bank of St. Louis. By using this server you agree to the FRED® API Terms of Use.

Status: v0.1 — 9 tools, CI-gated, built on mcpwright-core.

Why vintage data matters

Economic numbers get revised — sometimes dramatically. The advance estimate of Q4-2008 real GDP told policymakers the economy was shrinking far more slowly than the number that stands today. If an agent reasons about what decision-makers knew at the time using current data, it is quietly wrong. get_series_as_of and get_revision_history make as-published data a first-class question.

Tools

Tool What it does
search_series Find series IDs by free text, best matches first
get_series One series' full metadata + verbatim notes
get_observations A date window of values; transforms (pct_change_yoy, …) + downsampling
get_latest The most recent value + the next scheduled release date
compare_series 2–5 series aligned on one date axis
get_release_calendar Upcoming data releases ("when's the next jobs report?")
get_series_as_of A series exactly as known on a past date (ALFRED vintage)
get_revision_history One data point's life: initial print → every revision → today
get_vintage_dates When a series was released/revised; bounds the vintage tools

All tools are read-only and annotated as such.

Install

You need a free FRED API key (takes seconds): https://fred.stlouisfed.org/docs/api/api_key_request.html. Keys are personal under the FRED terms — bring your own.

uvx (any MCP client)

{
  "mcpServers": {
    "fred": {
      "command": "uvx",
      "args": ["mcpwright-fred"],
      "env": { "FRED_API_KEY": "your-key-here" }
    }
  }
}

Claude Code

claude mcp add fred -e FRED_API_KEY=your-key-here -- uvx mcpwright-fred

Claude Desktop

Use the one-click .mcpb extension from the latest release (it prompts for your API key), or add the uvx JSON above to your claude_desktop_config.json.

OpenAI Agents SDK / other clients

Any MCP-capable client works — point it at uvx mcpwright-fred over stdio with FRED_API_KEY in the environment.

Notes

  • Revisions: current values often differ from what was originally published; for "what was known at the time", use the vintage tools.
  • Copyrighted series: some FRED series are owned by third parties; their notes carry the owner's terms (surfaced verbatim, flagged via copyrighted). You are responsible for complying with them beyond personal use.
  • Caching & rate limits: responses are cached in-memory (vintage reads long, live reads short) and requests are throttled well under FRED's rate limit. Set FRED_MCP_CACHE=0 to disable caching, FRED_MCP_USER_AGENT to identify your own deployment.

Develop

git clone https://github.com/mcpwright/fred-mcp && cd fred-mcp
uv sync
uv run pytest                                  # tests
uv run mypy                                    # types
uv run ruff check src/ && uv run ruff format --check src/   # lint + format
uv run pre-commit run --all-files              # everything, like CI

Dev loop: feature branch → PR → Code Quality & Tests green → squash-merge.

Roadmap

  • v1 tool surface (9 tools incl. the ALFRED vintage lane)
  • Publish to PyPI (mcpwright-fred) + the MCP Registry
  • Site page at mcpwright.com/fred
  • .mcpb one-click Claude Desktop extension
  • GeoFRED / maps (pairs with census-mcp)

Questions & feedback

Discussions for questions and ideas · Issues for bugs.


Part of mcpwright — polished MCP servers for authoritative public data · built by Devender Gollapally. FRED® and ALFRED® are registered trademarks of the Federal Reserve Bank of St. Louis. This project is not affiliated with, endorsed, or certified by the Federal Reserve Bank of St. Louis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpwright_fred-0.1.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcpwright_fred-0.1.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file mcpwright_fred-0.1.0.tar.gz.

File metadata

  • Download URL: mcpwright_fred-0.1.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcpwright_fred-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8a62fc352d0695a05a17496938747303481c7f96579b6ce4badbf2408e8e850
MD5 a9bfb695e5a6516bbd328da73be57eb0
BLAKE2b-256 228258e5b45901a280ddb93490f7b1cf2568c27e96998039a9e515756a296d78

See more details on using hashes here.

File details

Details for the file mcpwright_fred-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcpwright_fred-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcpwright_fred-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f32e36ff8dbc59100268356b1630f93ea5ab82bd929713d6cc41c86f1f646f74
MD5 cce574461cd2820b8efc134414159ecb
BLAKE2b-256 b47cfd0666ab6d98d6e1524b06f9bf176995d8541422fc1d3b58312906fc4100

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page