Repository avatar
Other Tools
v0.2.0
active

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)

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 -> paste https://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, and TONA (2026-normalized-multi-speed + custom quotes)
  • Vanilla Interest Rate Swap (VANILLA_IRS) pricing, exact par swap rate solving, and 5-bucket Key-Rate PV01
  • 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:

ToolTierMeasured TokensMeasured LatencyCore Verification Benchmark
compute_daycount_and_conventionsStarter + Pro~372< 1 msExact ACT/360, ACT/365F, 30/360, ISDA ACT/ACT
bootstrap_curvesStarter (OIS) / Pro (CCS Basis)~414–424< 1 msAll 36 curves stripped to < 1e-15 par repricing error
price_swapStarter (IRS) / Pro (CCS/MTM)~752–762~1.5–2 msClosed-form par rate/basis + 5-bucket Key-Rate PV01
simulate_exposure_profilePro~512~145 ms2,000 antithetic paths (1F Hull-White + FX GBM, seed: 42)
compute_xva_waterfallPro~437~145 msCVA, DVA, FVA, COLVA, MVA + 3-row ISDA CSA ladder
audit_swap_mechanicsStarter (IRS) / Pro (CCS/CSA)~845< 1 ms9-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 TaskUnassisted LLM (Raw ChatGPT / Claude)Market Wizardry MCP (v0.2.0)
36 Global RFR OIS & CCS CurvesHallucinates log-linear discount factors & mixes LIBOR with SOFR/ESTR/SORA/SONIA/TONAStrips 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 ExposureConfuses mid-life humped IRS exposure with maturity-peaking CCS principal re-exchangeSeeded 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 WaterfallApplies rookie =MIN(EE, Threshold) Jensen's Inequality trap or claims zero-threshold VM eliminates CVA161-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 approximationsStrictly 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

License & Support

  • Package & public discovery metadata: MIT License (see LICENSE)
  • Support & institutional desk/university cohorts: wiz@marketwizardry.xyz
NPM
marketwizardry-mcp
Install Command
npm install marketwizardry-mcp