
FRED Economic Data
io.github.danishashko由 GitHub 账号 danishashko 发布v1.0.3更新于 Oct 24, 2026
FRED economic data: GDP, inflation, unemployment, rates, and 800k+ Federal Reserve time series.
概览
提供美联储 FRED 经济时间序列,让助手能搜索、获取并转换 GDP、通胀、利率等美国及全球经济指标。
- 可以做什么
- 按关键词搜索 80 万条以上 FRED 序列,按热度排序
- 按日期范围获取序列观测值,支持单位变换(水平值、变动、百分比变动、同比)与频率聚合
- 读取序列元数据,如单位、频率、季节调整与覆盖范围
- 一次调用获取美国关键指标快照
- 浏览 FRED 分类并列出其跟踪的数据发布
- 适用场景
- 适合需要助手回答美国或全球经济指标问题、比较 GDP 增长、查看通胀、失业率或国债收益率,或不想手动查找序列 ID 就探索 FRED 数据的场景。
- 运行要求
- 通过 npx(npm 包 fred-economic-mcp)或手动运行 Python 脚本在本地运行。需要机器上安装 Node.js 16+ 与 Python 3.10+,并在 FRED_API_KEY 环境变量中提供免费的 FRED API 密钥。需要访问 FRED API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 FRED Economic Data,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
FRED MCP Server 📊
[npm version] [npm downloads] [Python] [License: MIT]
U.S. and global economic data for Claude Desktop and any MCP-compatible client, powered by FRED (Federal Reserve Economic Data). Search and pull from 800,000+ economic time series — GDP, inflation, unemployment, interest rates, and more — all from natural language.
npm package:
fred-economic-mcp· GitHub repo:danishashko/fred-economic-mcp.
🎯 What You Get
- 🔎 Search 800k+ economic series by keyword
- 📈 Observations with built-in transforms (levels, % change, year-over-year) and frequency aggregation (daily → monthly/quarterly/annual)
- 🧾 Series metadata — units, frequency, seasonal adjustment, coverage, notes
- 🇺🇸 Economic snapshot — key U.S. indicators in one call
- 🗂️ Category browsing to discover data by topic
- 🗓️ Releases tracked by FRED
Every tool returns human-readable markdown by default, or structured JSON on request (response_format: "json"). The server is lightweight (Python standard library + mcp only), applies FRED's transformations server-side so the AI gets clean numbers, and retries automatically when FRED rate-limits.
🔑 Get a Free API Key (required)
FRED requires a free API key. It takes about a minute:
- Create an account at fredaccount.stlouisfed.org and request a key at fredaccount.stlouisfed.org/apikeys.
- Provide it to the server via the
FRED_API_KEYenvironment variable (see config below).
🚀 Quick Start
Add this to your Claude Desktop config and restart Claude:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
On first launch the npx wrapper creates an isolated Python environment and installs the dependencies for you (a one-time step that can take a minute). You only need Python 3.10+ and Node.js 16+ on your machine.
Prefer a global install?
🔧 Available Tools
Every tool also accepts response_format ("markdown", the default, or "json").
get_series_observations transforms (units): lin levels · chg change · ch1 change from year ago · pch percent change · pc1 percent change from year ago · pca compounded annual rate · log natural log.
Frequency aggregation (frequency): empty (native) · d daily · w weekly · m monthly · q quarterly · a annual.
Popular series IDs
You don't need to memorize IDs — search_series finds them — but these come up often:
💬 Example Prompts
Once the server is connected, just ask Claude:
- "How's the U.S. economy doing right now?"
- "What's the current unemployment rate?"
- "Show me year-over-year CPI inflation for the last 12 months."
- "What's the 10-year Treasury yield, and how has it moved this year?"
- "Find FRED series about consumer credit."
- "What's the 10Y-2Y yield spread? Is the yield curve inverted?"
- "Compare real GDP growth over the last 8 quarters."
- "What does the PCEPI series measure, and how often is it updated?"
Example output
Asking "What's year-over-year CPI inflation for the last few months?" runs
get_series_observations with series_id=CPIAUCSL, units=pc1:
🐛 Troubleshooting
"No FRED API key configured"
Set FRED_API_KEY in your MCP client config (see Quick Start) to a free key from fredaccount.stlouisfed.org/apikeys, then restart the client.
"Command not found" / "Python not found"
Make sure Python 3.10+ and Node.js 16+ are installed and on your PATH. On macOS/Linux, try python3.
"FRED is rate-limiting requests" FRED allows 120 requests/minute per key. The server retries automatically; if you still hit it, wait a minute.
Tools not showing up in Claude
- Confirm the config file is valid JSON (no trailing commas).
- Fully quit and reopen Claude Desktop.
- Check that
FRED_API_KEYis set in the server'senvblock.
"FRED rejected the request"
The series ID is probably wrong. Use search_series to find the correct ID, or get_series_info to confirm a series exists.
Using a different model or provider (LiteLLM, OpenRouter, NVIDIA NIM, a local model)
This server never talks to a model. Your client starts it as a local process and
speaks JSON-RPC over stdin/stdout, so changing ANTHROPIC_BASE_URL or swapping the
model behind your client has no effect on it. If tools stop firing after a switch
like that, check two things: the model has to support function calling, and a proxy
configured to drop unsupported parameters can silently strip your tool definitions,
which produces no error at all. Run /mcp in your client (or claude mcp list) to
confirm the server is connected before suspecting the server.
🛠️ Manual Installation (Alternative)
If you would rather run the Python file directly instead of via npx:
1. Download the server and install the dependency
Save fred_mcp.py somewhere on your machine, then:
(or pip3 on macOS/Linux)
2. Point Claude Desktop at it
On Windows use "command": "python" and a path like "C:\\path\\to\\fred_mcp.py" (double backslashes or forward slashes).
3. Restart Claude Desktop.
🔒 Privacy & Rate Limits
- Uses the official FRED API with your own free API key.
- Requests go straight from your machine to FRED. Nothing is stored or proxied.
- FRED rate-limits 120 requests/minute per key; the server retries with backoff on
429. - Intended for personal, educational, and research use.
📝 Notes
- Series IDs are case-insensitive here (they're upper-cased for you), e.g.
unrateworks. - FRED marks missing observations with
.; those are shown asN/A. - The
unitstransforms (e.g.pc1for year-over-year %) are computed by FRED, so the values are authoritative — no client-side math. - Data coverage and frequency vary by series; use
get_series_infoto check before pulling a range.
📋 Changelog
See CHANGELOG.md for the full version history.
📚 Resources
⚖️ Legal Disclaimer
This tool uses the FRED® API but is not endorsed or certified by the Federal Reserve Bank of St. Louis. FRED® is a registered trademark of the Federal Reserve Bank of St. Louis. Use of the FRED API is subject to its Terms of Use.
👤 Author
Daniel Shashko
- GitHub: @danishashko
- LinkedIn: daniel-shashko
- npm: danielshashko
📄 License
MIT © Daniel Shashko
来源:README.md,提交 e323fec
工具
0版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分