Treasury Yields and Rates Today MCP

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v1.0.0更新于 Nov 14, 2026

US Treasury yields and rates today: yield curve, 10-year, spreads, T-bill rates, TIPS real yields.

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

只读 MCP 服务器,让助手从美国财政部每日数据源获取当前与历史的国债收益率、短期国库券利率和 TIPS 实际收益率。

可以做什么
  • 获取今日或 1990 年以来任意日期的国债平价收益率曲线,含日变动、月变动、10y-2y 与 10y-3m 利差及倒挂标记
  • 查询单一收益率在两个日期之间的历史,返回起止值、变动、最高、最低、均值及每日或抽样表格
  • 获取 4 至 52 周短期国库券的每日利率,包括银行贴现率和等效票息收益率
  • 读取 5 至 30 年期 TIPS 实际收益率,并给出同期限名义收益率与隐含盈亏平衡通胀率
  • 以结构化 JSON 加纯文本摘要返回结果,并附带 as_of 与来源字段
适用场景
适合回答依赖当前或指定日期国债市场数据、模型本身无法知道的问题,例如今日 10 年期收益率、收益率曲线是否倒挂、短期国库券利率或盈亏平衡通胀率,也适合做短周期收益率历史对比。
运行要求
需要远程 streamable HTTP 端点,无需令牌或注册。由于未发布 npm 包,README 另说明可用 Node 20 或更高版本从仓库本地构建 stdio 版本。需要能访问财政部数据源的网络。
安装前请注意
所有工具均标注为只读,且不要求任何凭据。数据为最近拍卖证券的财政部平价收益率,而非盘中市场报价;冷启动请求可能需 15 至 20 秒。单次调用历史最多 731 天,结果中会链接到第三方页面。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Treasury Yields and Rates Today MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.theluckystrike%2Ftreasury-yields-rates-today-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "treasury-yields-and-rates-today": {
      "type": "http",
      "url": "https://treasury-yields-rates-today-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

README

treasury-yields-rates-today-mcp

Treasury yields and rates today for AI assistants. Ask for the 10-year Treasury yield, whether the yield curve is inverted, what T-bills pay or where breakeven inflation sits, and get the U.S. Treasury's own daily numbers.

This is a Model Context Protocol (MCP) server. It reads the U.S. Department of the Treasury daily interest rate XML feed at call time and needs no API key.

Tools

ToolWhat it returns
treasury_yield_curveThe par yield curve from 1 month to 30 years for today or any date back to 1990, with the change from the previous business day and a month earlier, and the 10y-2y and 10y-3m spreads with an inversion flag.
treasury_yield_historyOne yield (10y, 2y, 3m, 30y and others) between two dates, up to 731 days per call: start, end, change, high, low, average and a table.
treasury_bill_ratesDaily bill rates for 4 to 52 week bills: bank discount rate and coupon-equivalent yield.
treasury_real_yieldsTIPS real yields for 5 to 30 years with the nominal yield and breakeven inflation.

Every result has structured JSON, a plain-text summary, as_of, source and more (a page on mcpstamp.com). Every tool is marked read-only.

What it knows that your model does not

  • Today's yields. Treasury publishes new rates after about 3:30 pm ET every business day.
  • Whether a date was a holiday or weekend: the server answers with the business day before and says so.
  • The spread and inversion arithmetic in basis points.

Install

Hosted (Claude.ai custom connector, ChatGPT developer mode)

Paste this URL. No token, no sign-up.

https://treasury-yields-rates-today-mcp.lipmichal.workers.dev/mcp

Claude Code

claude mcp add --transport http treasury-yields https://treasury-yields-rates-today-mcp.lipmichal.workers.dev/mcp

Claude Desktop

Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.

Cursor

Add to ~/.cursor/mcp.json.

json
{  "mcpServers": {    "treasury-yields": { "url": "https://treasury-yields-rates-today-mcp.lipmichal.workers.dev/mcp" }  }}

VS Code

Add to .vscode/mcp.json.

json
{  "servers": {    "treasury-yields": { "type": "http", "url": "https://treasury-yields-rates-today-mcp.lipmichal.workers.dev/mcp" }  }}

Local stdio

The npm package is not published. Build it from this repository with Node 20 or newer.

git clone https://github.com/theluckystrike/treasury-yields-rates-today-mcp && cd treasury-yields-rates-today-mcpnpm install && npm run buildclaude mcp add treasury-yields -- node $(pwd)/dist/stdio.js

Example prompts

  • "What is the 10-year Treasury yield today?"
  • "Is the yield curve inverted right now?"
  • "How has the 2-year Treasury yield moved over the last month?"
  • "What do 13-week T-bills pay?"
  • "What is 10-year breakeven inflation?"

Data sources

Full list in DATA_SOURCES.md.

Limitations

  • Treasury par yields on the most recently auctioned securities, not market quotes during the day.
  • The feed can take 15 to 20 seconds to answer a cold request. The hosted server caches the current month for an hour and closed months for a week.
  • History is limited to 731 days per call.

More

More MCP servers that answer questions your assistant cannot answer alone are on mcpstamp.com.

Part of the Zovo MCP collection at https://mcp.zovo.one

Built by theluckystrike.

Development

npm installnpm test                              # builds, then runs the fixture tests and an offline stdio testnode scripts/stdio-transcript.mjs     # live stdio round trip, writes .live/stdio-transcript.jsonl

CI (.github/workflows/bundle.yml) runs the tests, the type check and wrangler deploy --dry-run --outdir out, and uploads the Worker bundle as an artifact.

License

MIT

来源:README.md,提交 4ad8a99

工具

4

treasury_yield_curve

Treasury yield curve

Today's (or any date's) US Treasury par yield curve: 1-month to 30-year yields including the 10-year and 2-year, the change from the previous business day and from a month earlier, and the 10y-2y and 10y-3m spreads with an inversion flag. Any date back to 1990.

输入参数date

treasury_yield_history

Treasury yield history

History of one Treasury yield (e.g. 10y, 2y, 3m, 30y) between two dates: start, end, change, high, low and average, with a daily or sampled table. Up to 731 days per call, back to 1990.

输入参数endstarttenor必填

treasury_bill_rates

T-bill rates

Daily US Treasury bill rates for 4, 6, 8, 13, 17, 26 and 52 week bills: the bank discount rate and the coupon-equivalent yield (comparable to a savings or CD rate), with the change from the previous business day.

输入参数date

treasury_real_yields

TIPS real yields and breakeven inflation

US Treasury real yield curve (TIPS) for 5, 7, 10, 20 and 30 years, the nominal yield for the same maturity, and the breakeven inflation rate the market implies (nominal minus real).

输入参数date

版本历史

1
  1. v1.0.0最新Nov 14, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分