
US Macro
io.github.hgus107由 GitHub 账号 hgus107 发布v0.1.2更新于 Oct 24, 2026
US macroeconomic data from FRED: inflation, employment, growth, housing, rates, recession signals.
概览
让助手以只读方式获取 FRED 的 58 项美国宏观经济指标,并直接给出变化、历史、对比和衰退信号。
- 可以做什么
- 通过 stdio 提供八个工具:list_indicators 和 search_indicators 按类别或关键词查找指标,get_indicator 返回最新读数及上期、去年同期数值和百分比变化,get_history 返回完整时间序列,compare_indicators 在同一时间窗口内对比多个指标,release_calendar 列出即将发布的经济报告,macro_snapshot 一次调用返回整体经济或某一类别,recession_signals 给出 Sahm 规则、收益率曲线、信用利差、失业申请和金融状况的分级读数。助手无需知道 FRED 序列 ID,也无需自行计算。结果按各序列更新频率在内存中缓存。
- 适用场景
- 适合助手需要美国通胀、就业、增长、住房、利率或金融压力数据,又不想自行查找序列 ID 或计算变化的场景,例如经济简报、趋势总结或衰退风险讨论。
- 运行要求
- 作为本地 Python 包运行(uvx us-macro-mcp),由 MCP 客户端通过 stdio 启动。需要免费的 FRED API 密钥,通过环境变量 FRED_API_KEY 提供,并需要访问 FRED 的网络连接。仅支持桌面客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 US Macro,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
US-Macro-MCP
An MCP server that gives AI assistants clean access to US macroeconomic data — 58 indicators covering inflation, employment, growth, housing, consumer behaviour, interest rates, financial stress, markets and federal finances, sourced from the Federal Reserve's FRED database.
It is built so the assistant never has to know a FRED series ID, and never has to do arithmetic. Ask for cpi and you get the latest reading, the previous one, the year-ago value, and the percentage changes already calculated.
Registry Official Link : https://pypi.org/project/us-macro-mcp/
Changelog
What it does
Requirements
A free FRED API key. Request one at fredaccount.stlouisfed.org/apikeys — it takes about a minute and costs nothing.
Install
Codex plugin marketplace
Install uv and make sure
uvx is on the PATH available to Codex. The plugin launches the published PyPI
release us-macro-mcp==0.1.2 locally over stdio; it requires Python 3.10 or newer.
Its launcher constrains the MCP SDK to >=1.2,<2 because this release uses the
SDK's v1 FastMCP API.
-
Make your
FRED_API_KEYenvironment variable available to the Codex app before starting it. The plugin forwards that variable to the MCP server; it does not store the key in its files or prompt for it during installation. On macOS, run this locally, then fully quit and reopen Codex:Replace the placeholder with your own key. Do not commit or share the key.
launchctl setenvapplies to the current login session; repeat it after logging back in. On Linux, export the variable before launching Codex from that shell; on Windows, set a user environment variable and restart Codex. -
In Codex, open Plugins → Add → Add plugin marketplace.
-
Set Source to
Signal-Drifts/US-Macro-MCP(orhttps://github.com/Signal-Drifts/US-Macro-MCP.git), set Git ref tomain, leave Sparse paths empty, and click Add marketplace. -
Select Signal Drifts and install US Macro, then start a new chat.
-
Try: “Use US Macro to list the available indicators,” then ask for a macro snapshot. Listing indicators checks discovery; live data also requires the FRED key and network access to FRED.
You can also register the marketplace with the Codex CLI:
The catalog is at .agents/plugins/marketplace.json; the plugin manifest and MCP
configuration are under plugins/us-macro-mcp/. The plugin package has its own
version: plugin 0.1.4 uses PyPI server 0.1.2. When updating the server release,
update the pinned PyPI version in the plugin's .mcp.json and bump the plugin
manifest version, then refresh the marketplace and installed plugin.
This repository provides a custom marketplace. Inclusion in OpenAI's public plugin directory is a separate submission and review process; local MCP submissions currently require an approved partner organization. See the official plugin packaging guide and desktop-only submission guide.
The existing MCP Registry identifier io.github.hgus107/us-macro-mcp is retained;
moving the GitHub repository does not migrate that registry identity. Repository
links in future Python/MCP Registry releases point to Signal-Drifts; metadata
already published on PyPI remains attached to its existing release.
Claude Desktop
Add this to your claude_desktop_config.json:
Claude Code
Any other MCP client
With FRED_API_KEY set in the environment, run:
The server speaks MCP over stdio.
How it behaves
It runs locally. Nothing is hosted. Your client launches the server as a subprocess on your own machine, using your own API key. No data leaves your computer except the read-only requests to FRED.
It caches. A single macro_snapshot fetches 19 indicators at once, and conversations tend to ask for the same series repeatedly. Answers are held in memory for a period matched to how often the number can actually change — an hour for daily series like Treasury yields, half a day for monthly series like CPI. The cache is discarded when the process exits. Adjust CACHE_SECONDS in fred.py if you want different behaviour.
It never logs your API key. Requests are logged as endpoint, series and status code only, and any error text is stripped of the key before it is written or returned.
Known limitations
- The ISM Manufacturing and Services PMI are not available. ISM licenses its data commercially and withdrew it from FRED. The same applies to the Conference Board Consumer Confidence Index. There is no free source for either.
- Rates are national averages, not per-bank. The 30-year mortgage rate is Freddie Mac's weekly survey across thousands of lenders — not any particular bank's advertised rate. Per-institution rates are not published free by anyone.
- FOMC meeting dates are not included. FRED publishes data release schedules, not the Federal Reserve's meeting calendar.
- Michigan consumer sentiment lags. As of this writing FRED's
UMCSENTandMICHseries are running about two months behind other monthly indicators. Thelatest_datefield always tells you what you actually got. - Data is reported for the period it covers. June CPI is dated
2026-06-01and publishes in mid-July. Always readlatest_daterather than assuming the most recent month exists yet.
Data source and disclaimer
All data comes from FRED, maintained by the Federal Reserve Bank of St. Louis, which aggregates it from the Bureau of Labor Statistics, the Bureau of Economic Analysis, the Census Bureau, the Federal Reserve Board and others.
The recession_signals tool applies well-known statistical thresholds to public data. It is not a forecast, and nothing this server returns is investment advice.
Annual maintenance checklist
The Federal Reserve publishes its meeting schedule about two years ahead, and Python, the MCP SDK and FRED's own catalog all drift over a year. Work through this list every January and cut a new release.
Data
-
Refresh the FOMC schedule in
src/us_macro_mcp/fomc.pyfrom federalreserve.gov/monetarypolicy/fomccalendars.htm, and moveVALID_THROUGHforward. Thenext_fomc_meetingfield goes empty once the list runs out. -
Re-validate every series ID in the catalog. FRED retires series without warning — the ADP employment series was discontinued this way, returning a valid response with zero observations:
-
Check whether anything previously unavailable has become free — particularly the ISM PMI and the Conference Board Consumer Confidence Index, both currently absent from FRED.
-
Check FRED's API terms and rate limit (currently 120 requests per minute per key) for changes.
Dependencies
- Bump the
mcpSDK and read its changelog for breaking changes. FastMCP is part of the official SDK, so a major version there can change how tools are declared or how the server starts. - Check whether the MCP specification has revised its transports or tool schema.
- Bump
httpx. - Review
requires-python. Drop versions that have reached end of life, and confirm the current floor still installs cleanly.
Release
- Run the full test sweep: all eight tools, plus the negative and boundary cases.
- Bump the version in
pyproject.tomland inserver.json. They must match or the registry rejects the publish. -
uv buildanduv publishto PyPI. -
mcp-publisher publishto the official MCP registry. - Tag the release on GitHub.
License
MIT
Support and policies
来源:README.md,提交 c6f8b1a
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分