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 分