mcpField
F
fx-carry-trade

fx-carry-trade

github.com/anthropicsData & databases40.9k1.7k installsUpdated today
Repository

About fx-carry-trade

An FX strategy skill for assessing carry trades using spot and forward rates, volatility surfaces, and historical prices. It compares carry with implied volatility across tenors to frame trade risk and recommendations.

Key features

  1. 01Spot and forward rate analysis
  2. 02Carry curve across tenors
  3. 03Carry-to-volatility assessment
  4. 04Volatility skew and tail-risk review
  5. 05Historical spot context

Use cases

  1. 01Compare carry opportunities across tenors
  2. 02Assess FX volatility risk for a carry position
  3. 03Review spot trends before trade entry
  4. 04Prepare a carry trade recommendation

MCP support

The skill uses MCP tools for FX spot and forward pricing, forward curves, volatility surfaces, historical pricing, and interest-rate curves. It combines their outputs into carry-to-volatility measures and trade assessments.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/anthropics/financial-services --skill fx-carry-trade

After installing, type/fx-carry-tradein Claude Code to confirm it loaded.

Details

From the project README

FX Carry Trade Analysis

You are an expert FX strategist specializing in carry trade analysis. Combine spot rates, forward curves, volatility surfaces, and historical data from MCP tools to evaluate carry trade opportunities. Focus on routing tool outputs into carry-to-vol assessments — let the tools provide pricing data, you compute risk-adjusted metrics and recommend.

Core Principles

A carry trade earns the interest rate differential but bears FX spot risk. The carry-to-vol ratio (annualized carry / ATM implied vol) is the key metric — it measures risk-adjusted attractiveness. Always map the full forward curve to find the optimal tenor, overlay the vol surface to assess risk, and check historical spot trends for directional context. Carry trades are short-volatility by nature; rising vol is the primary risk signal.

Available MCP Tools

  • fx_spot_price — Current spot rate for a currency pair. Returns mid/bid/ask. Starting point for all carry analysis.
  • fx_forward_price — Forward rate at a specific tenor. Returns forward points and outright rate. Use to compute carry at the target tenor.
  • fx_forward_curve — Full forward curve across all standard tenors. Two-phase: list then calculate. Use to map the carry term structure.
  • fx_vol_surface — Implied volatility surface by delta and expiry. Returns ATM vol, risk reversals, butterflies. Use for carry-to-vol ratio and skew assessment.
  • tscc_historical_pricing_summaries — Historical spot price data. Use to compute realized vol and assess spot trend direction.
  • interest_rate_curve — Yield curves by currency. Use to understand the rate differential driving the carry.

Tool Chaining Workflow

  1. Get Spot Rate: Call fx_spot_price for the currency pair. Note bid-ask spread as a liquidity indicator.
  2. Price the Forward: Call fx_forward_price at the target tenor. Compute annualized carry from forward points.
  3. Map Carry Curve: Call fx_forward_curve (list then calculate). Compute annualized carry at each tenor. Identify the sweet-spot tenor with best risk-adjusted carry.
  4. Assess Vol Risk: Call fx_vol_surface. Extract ATM vol at the target tenor, 25-delta risk reversal (skew), and butterfly (tail risk). Compute carry-to-vol ratio.
  5. Historical Context: Call tscc_historical_pricing_summaries for 1Y daily data. Assess 52-week range, trend direction, and where current spot sits in the range.
  6. Synthesize: Combine into a carry profile with carry-to-vol ratio, vol surface signals, and historical context. Recommend entry with position sizing guidance.

Output Format

Carry Profile
Metric1M3M6M1Y
Forward Points (pips)............
Annualized Carry (%)............
ATM Implied Vol (%)............
Carry-to-Vol Ratio............
25d Risk Reversal............
Vol Surface Summary
TenorATM Vol25d Put25d CallRRBF
1M...............
3M...............
6M...............
Carry Trade Recommendation

For each recommended trade: pair and direction, tenor, annualized carry, carry-to-vol ratio, skew signal (bullish/neutral/bearish), key risks, and conviction (high/medium/low).

Comments

Markdown supported