cre-fred-mcp

cre-fred-mcp

Enables pulling live Federal Reserve economic data (SOFR, Treasury yields, Fed funds rate, mortgage rates, CPI, PCE) for CRE capital markets analysis through an MCP client.

Category
访问服务器

README

cre-fred-mcp

An MCP server that pulls live Federal Reserve economic data (FRED) — the rates a CRE capital-markets routine runs on: SOFR, Treasury yields, the Fed funds rate, mortgage rates, CPI and PCE. Instead of re-scraping by hand, your MCP client pulls the current numbers on every run.

Quickstart — let Claude set it up for you

Not technical? You don't need to be. Hand this repo to Claude and let it do the work:

  1. Open Claude Desktop (or Claude Code).
  2. Give it this repo — paste the URL https://github.com/nik-mirando/cre-fred-mcp (or this README) and say: "Help me install this MCP server in my Claude Desktop, step by step."
  3. Claude walks you through the three things it needs:
    • a free FRED API key (~2 minutes, instant, no credit card — see below),
    • installing the server,
    • adding it to your Claude config and restarting.

Once it's connected, just ask the questions further down and Claude pulls the live numbers itself.

The one step Claude can't do for you is create the free FRED account — it'll hand you the link and tell you exactly where to paste the key. Everything else it handles.

Example questions to ask once it's connected

  • "Give me a CRE capital markets snapshot."
  • "What's SOFR today, and the 10-year Treasury?"
  • "What's the current 30-year mortgage rate, and how has it moved this year?"
  • "What's CPI and PCE inflation right now, year over year?"
  • "Pull the Fed funds rate and the 2s/10s Treasury spread."

Tools

Tool What it returns
get_capital_markets_snapshot One call: SOFR, UST 2/5/10/30yr, Fed funds, 30yr mortgage (latest %), plus CPI & PCE year-over-year %
get_latest_value(series_id) Most recent non-missing observation for any series
get_series_observations(series_id, ...) Time series with date/value (supports units like pc1 = YoY %, and frequency aggregation)
get_series_metadata(series_id) Title, units, frequency, last updated
search_series(query) Find series by free-text
list_common_series Curated CRE-relevant series ids

Missing values (FRED's ".", common on daily series over holidays) are normalised to null, never crash, and are skipped by get_latest_value.

Get a free API key

FRED keys are free and issued instantly:

  1. Create / sign in to a FRED account.
  2. Go to https://fredaccount.stlouisfed.org/apikeys and request a key.
  3. Copy the 32-character key.

Install

# from source (this folder)
pip install .
# or run without installing, via uv
uvx --from . cre-fred-mcp

Set the key (either export it or drop a .env next to the server):

cp .env.example .env   # then paste your key

MCP client config

{
  "mcpServers": {
    "cre-fred": {
      "command": "uvx",
      "args": ["--from", "/abs/path/to/cre-fred-mcp", "cre-fred-mcp"],
      "env": { "FRED_API_KEY": "your_key_here" }
    }
  }
}

(Or "command": "python", "args": ["-m", "cre_fred_mcp"] with the package installed.)

Verify it works (live)

python smoke_test.py

Makes real calls and asserts on real values — e.g. that DGS10 metadata titles the 10-Year Treasury and that the latest SOFR print is a sane numeric rate.

Data source

Data: FRED, Federal Reserve Bank of St. Louis. This is an unofficial client and is not affiliated with or endorsed by the Fed. Series are subject to FRED's terms of use.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选