
otc-rates-xva
xyz.marketwizardry/otc-rates-xva
Deterministic OIS bootstrapping (SOFR/ESTR/SONIA/SORA/TONA), IRS/CCS pricing, PFE & CSA XVA.
Documentation
Market Wizardry — Deterministic OTC Rates & XVA MCP Server (v0.2.0)
Official Model Context Protocol (MCP) server for Market Wizardry (xyz.marketwizardry/otc-rates-xva).
Connect deterministic multi-curve OIS yield-curve bootstrapping (SOFR, ESTR, SONIA, SORA, TONA), Interest Rate Swaps (IRS), Cross-Currency Swaps (CCS), seeded Hull-White 1F + FX Monte Carlo exposure simulation, and 5-component ISDA/CSA XVA waterfalls directly into Claude Desktop, Claude Web, ChatGPT, Cursor, VS Code / GitHub Copilot, Google Antigravity, and Windsurf — with Zero LLM Math.
1-Click Install (Free Starter — No API Key Required)
- Install in Cursor (Zero-Node Remote Starter): 1-Click Install Remote in Cursor
- Install in Cursor (Local
stdioStarter): 1-Click Install Local in Cursor - Install in VS Code (Zero-Node Remote Starter): 1-Click Install Remote in VS Code
- Install in VS Code (Local
stdioStarter): 1-Click Install Local in VS Code
Quick Start 1: Zero-Node Remote Starter (Recommended — Works on Any Laptop)
Connect directly to our hosted dual-mode Streamable HTTP endpoint with zero local Node.js installation and no API key needed for Free Starter (20 tool calls/min, 150/day per IP):
- Claude Web / Desktop Custom Connector:
Settings -> Connectors -> Add Custom Connector-> pastehttps://mcp.marketwizardry.xyz/mcp - Cursor / Windsurf / Antigravity JSON:
{
"mcpServers": {
"marketwizardry": {
"url": "https://mcp.marketwizardry.xyz/mcp"
}
}
}
Quick Start 2: Free Local stdio Starter (Offline / Unlimited)
{
"mcpServers": {
"marketwizardry": {
"command": "npx",
"args": ["-y", "marketwizardry-mcp"]
}
}
}
Included Free in Tier 0 Starter (Remote & Local):
- Domestic OIS curve bootstrapping across
SOFR,ESTR,SONIA,SORA, andTONA(2026-normalized-multi-speed+ custom quotes) - Vanilla Interest Rate Swap (
VANILLA_IRS) pricing, exact par swap rate solving, and 5-bucket Key-RatePV01 - Institutional day-count & RFR market convention lookup (
ACT/360,ACT/365F,30/360,ACT/ACT) - Deterministic Senior Structurer swap convention audit
- All 5 curated
mw://reference playbooks and all 3 Socratic desk prompts
Verified Precision, Token Budget & Latency Benchmarks
All 6 tools declare explicit read-only MCP annotations (readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false) and enforce a hard < 1,200-token ceiling and < 500ms latency target:
| Tool | Tier | Measured Tokens | Measured Latency | Core Verification Benchmark |
|---|---|---|---|---|
compute_daycount_and_conventions | Starter + Pro | ~372 | < 1 ms | Exact ACT/360, ACT/365F, 30/360, ISDA ACT/ACT |
bootstrap_curves | Starter (OIS) / Pro (CCS Basis) | ~414–424 | < 1 ms | All 36 curves stripped to < 1e-15 par repricing error |
price_swap | Starter (IRS) / Pro (CCS/MTM) | ~752–762 | ~1.5–2 ms | Closed-form par rate/basis + 5-bucket Key-Rate PV01 |
simulate_exposure_profile | Pro | ~512 | ~145 ms | 2,000 antithetic paths (1F Hull-White + FX GBM, seed: 42) |
compute_xva_waterfall | Pro | ~437 | ~145 ms | CVA, DVA, FVA, COLVA, MVA + 3-row ISDA CSA ladder |
audit_swap_mechanics | Starter (IRS) / Pro (CCS/CSA) | ~845 | < 1 ms | 9-check Senior Structurer convention & Wrong-Way Risk audit |
Market Wizardry Pro (Authenticated Streamable HTTP)
Unlock Constant-Notional & MTM-Resetting Cross-Currency Swaps, cross-currency basis & triangulated CSAs, all 4 historical crisis regimes (2020, 2022, 2023, 2026), seeded Hull-White exposure simulation (EE, EPE, PFE95/99), and 5-component ISDA/CSA XVA waterfalls at https://marketwizardry.xyz/pages/otc-mcp#pricing ($39/mo Pro Monthly | $119 120-Day Sprint + 2 Core V2 Workbooks | $249/yr Pro Annual / $129/yr .edu via EDU-DESK50 + All 3 V2 Desk Workbooks & Exclusive 3-Tab XVA Companion).
{
"mcpServers": {
"marketwizardry-pro": {
"url": "https://mcp.marketwizardry.xyz/mcp",
"headers": {
"Authorization": "Bearer mw_live_YOUR_API_KEY"
}
}
}
}
Machine Discovery Endpoints
- SEP-2127 Server Card:
https://mcp.marketwizardry.xyz/.well-known/mcp/server-card.json - Authoritative
llms.txt:https://mcp.marketwizardry.xyz/llms.txt - Interactive Browser XVA & CSA Lab:
https://marketwizardry.xyz/pages/xva-csa-calculator
Why Raw LLMs Fail OTC Rates & XVA (Verified Benchmarks)
| Quantitative Task | Unassisted LLM (Raw ChatGPT / Claude) | Market Wizardry MCP (v0.2.0) |
|---|---|---|
| 36 Global RFR OIS & CCS Curves | Hallucinates log-linear discount factors & mixes LIBOR with SOFR/ESTR/SORA/SONIA/TONA | Strips all 36 regime curves to < 1e-15 worst-case par error (9.16e-16 OIS / 9.99e-16 CCS) |
Day-Count Accrual (ACT/360 vs ACT/365F) | Approximates 0.5 or mixes 360/365 (creating a 1.389% cash error) | Exact calendar fractions (0.000e+0 partition residual) in < 1 ms |
| IRS vs. Cross-Currency Swap Exposure | Confuses mid-life humped IRS exposure with maturity-peaking CCS principal re-exchange | Seeded 1F Hull-White + FX GBM (2,000 paths): IRS 1.5Y ($5.42M) vs. Const CCS 4.999Y ($60.44M) vs. MTM CCS ($11.50M, 5.26x drop) |
| ISDA/CSA XVA Waterfall | Applies rookie =MIN(EE, Threshold) Jensen's Inequality trap or claims zero-threshold VM eliminates CVA | 161-point Gaussian quadrature MPOR close-out across 5 CSA modes (CVA, DVA, FVA, COLVA, MVA) |
| Token & Cost Efficiency (BYOT) | Wastes 8k–20k tokens on broken Python/prose approximations | Strictly 372–845 tokens (< 1,200 cap) in 0.35–151 ms (< 500 ms cap) |
Curated Grounding Resources (mw://) & Socratic Desk Drills
- Resources:
mw://conventions/rfr-ois-daycounts,mw://playbooks/ccs-basis-and-mtm-resets,mw://playbooks/isda-csa-xva-decision-tree,mw://snapshots/historical-regimes,mw://glossary/otc-desk-terminology - Socratic Desk Prompts:
corporate-ccs-issuance-hedge,ois-multi-curve-bootstrapping-lab,csa-negotiation-xva-pricing
Companion Learning Resources
- Interactive Browser Swap & XVA Sandbox (No Login): https://marketwizardry.xyz/pages/xva-csa-calculator
- Methodology & AI Accuracy Benchmarks: https://marketwizardry.xyz/pages/methodology
- Free Tome of Knowledge (100 Trading Floor Terms & 25 MD Interview Traps): https://marketwizardry.xyz/pages/free-desk-kit
- Open-Formula Zero-VBA Excel Quant Workbooks: https://marketwizardry.xyz/#mw-pricing
License & Support
- Package & public discovery metadata: MIT License (see LICENSE)
- Support & institutional desk/university cohorts:
wiz@marketwizardry.xyz
marketwizardry-mcpnpm install marketwizardry-mcp