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.
| date | 1 Mo | 1.5 Month | 2 Mo | 3 Mo | 4 Mo | 6 Mo | 1 Yr |
|---|---|---|---|---|---|---|---|
| 2026-10-01 | 4.06 | 4.1 | 4.13 | 4.17 | 4.26 | 4.27 | 4.44 |
| 2026-10-02 | 4.04 | 4.09 | 4.11 | 4.19 | 4.26 | 4.27 | 4.46 |
| 2026-10-05 | 4.05 | 4.1 | 4.13 | 4.22 | 4.27 | 4.3 | 4.47 |
| 2026-10-06 | 4.06 | 4.12 | 4.13 | 4.21 | 4.26 | 4.28 | 4.46 |
| 2026-10-07 | 4.07 | 4.13 | 4.14 | 4.22 | 4.28 | 4.28 | 4.42 |
| 2026-10-08 | 4.14 | 4.14 | 4.13 | 4.23 | 4.29 | 4.3 | 4.44 |
| 2026-10-09 | 4.13 | 4.13 | 4.13 | 4.25 | 4.29 | 4.32 | 4.47 |
| 2026-10-13 | 4.1 | 4.15 | 4.15 | 4.26 | 4.32 | 4.34 | 4.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.
The view loads here.
The tools behind the answer
| Tool | Pack | What it does |
|---|---|---|
treasury_yields | markets | US 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 mcp add canli -- npx -y canli-mcp{ "mcpServers": { "canli": { "command": "npx", "args": ["-y", "canli-mcp"] } } }https://canlicapital.com/mcp/canliEverything canli-mcp does · How it compares with other finance MCP servers
