canli-mcp / Yield curve

How can an AI agent get the Treasury yield curve?

canli-mcp's treasury_yields tool reads the daily par yield curve from the US Treasury itself: nominal, real or bills, for any date or range. In hosts that draw MCP Apps the curve is drawn against earlier dates and can be played through time.

Free and MIT-licensed. No account and no API key. Or run claude mcp add canli -- npx -y canli-mcp in Claude Code.

Ask it

Show me the Treasury yield curve this month.

The agent finds the tool through canli-mcp's find_tool and runs it through run_tool. This is the call:

{
  "name": "treasury_yields",
  "arguments": {
    "curve": "nominal",
    "start": "2026-10-01"
  }
}

What came back

Recorded from canli-mcp 0.11.1 on 2026-10-25, with no API key set. The model read 2,217 characters.

What treasury_yields returned, the first rows; the first columns
date1 Mo1.5 Month2 Mo3 Mo4 Mo6 Mo1 Yr
2026-10-014.064.14.134.174.264.274.44
2026-10-024.044.094.114.194.264.274.46
2026-10-054.054.14.134.224.274.34.47
2026-10-064.064.124.134.214.264.284.46
2026-10-074.074.134.144.224.284.284.42
2026-10-084.144.144.134.234.294.34.44
2026-10-094.134.134.134.254.294.324.47
2026-10-134.14.154.154.264.324.344.48
The result treasury_yields sent back, in full form
{
  "ref": "r7",
  "curve": "nominal",
  "units": "percent a year",
  "columns": [
    "date",
    "1 Mo",
    "1.5 Month",
    "2 Mo",
    "3 Mo",
    "4 Mo",
    "…"
  ],
  "source": "https://home.treasury.gov/resource-center/data-chart-center/interest-rates/daily-treasury-rates.csv/2026/all?type=daily_treasury_yield_curve…",
  "limits": [
    "U.S. Department of the Treasury daily rates, as published; par yields on a bond-equivalent basis.",
    "Not investment advice."
  ],
  "start": "2026-10-01",
  "end": "2026-10-23",
  "count": 16,
  "rows": [
    [
      "2026-10-01",
      4.06,
      4.1,
      4.13,
      4.17,
      4.26,
      "…"
    ],
    [
      "2026-10-02",
      4.04,
      4.09,
      4.11,
      4.19,
      4.26,
      "…"
    ],
    [
      "2026-10-05",
      4.05,
      4.1,
      4.13,
      4.22,
      4.27,
      "…"
    ],
    [
      "2026-10-06",
      4.06,
      4.12,
      4.13,
      4.21,
      4.26,
      "…"
    ],
    [
      "2026-10-07",
      4.07,
      4.13,
      4.14,
      4.22,
      4.28,
      "…"
    ],
    [
      "2026-10-08",
      4.14,
      4.14,
      4.13,
      4.23,
      4.29,
      "…"
    ],
    "…"
  ]
}

Prices, filings and statistics are as the sources published them on that day; run the call again for today's. Nothing here is investment advice.

The same answer as a view

In a host that draws MCP Apps, view: true shows the person the whole result and gives the model a summary. Watch it, then try it: below the clip is canli-mcp's real view, playing a recording.

Yield curve

The view loads here.

The tools behind the answer

From canli-mcp's tool index
ToolPackWhat it does
treasury_yieldsmarketsUS Treasury daily yields from the Treasury itself: the par yield curve (1 month to 30 years), real (TIPS) yields or bill rates, for the latest day, a date, or a date range. In percent.

Add canli-mcp

Claude Code
claude mcp add canli -- npx -y canli-mcp
Cursor, Claude Desktop or any MCP client
{ "mcpServers": { "canli": { "command": "npx", "args": ["-y", "canli-mcp"] } } }
claude.ai, ChatGPT or any client that takes a URL
https://canlicapital.com/mcp/canli

Everything canli-mcp does · How it compares with other finance MCP servers

Related questions