# Actuarial Yield Curve & Discount Calculator AI Agent Connect

> Actuarial Yield Curve & Discount Calculator MCP gives your AI client the mathematical tools needed for interest rate modeling. It handles everything from interpolating rates from raw nodes to calculating present values and verifying curve consistency to prevent arbitrage.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Rbv0P10CHPujmcf8YYPo9ULFTEwhtap98Ka9XUhV/ai-agent-connect
- **Tags:** yield-curve, discount-factors, interest-rates, present-value, forward-rates

## Description

You can now give your AI agent the ability to handle complex actuarial math without manual spreadsheet work. This MCP provides the specific tools required to build and manipulate yield curves. You can use it to turn raw interest rate nodes into a full set of interpolated rates and discount factors. If you have a series of future payments, your agent can determine their total present value instantly. You can also pull implied forward rates from existing curve metrics or run a diagnostic check to ensure your calculated curve doesn't contain arbitrage opportunities. It turns your AI client into a specialized financial modeling assistant that understands the relationship between spot rates, forward rates, and discount factors.

## Tools

### calculate_cash_flow_pv
This tool calculates the total present value for a specific series of future cash flows.

### calculate_curve_metrics
This tool generates interpolated rates and discount factors from provided yield curve nodes using specified compounding methods.

### calculate_forward_rates
This tool derives the implied forward interest rates between two specific future time horizons.

### validate_curve_consistency
This tool runs a diagnostic check to confirm the provided or calculated curve is free of arbitrage opportunities.

## Prompt Examples

**Prompt:** 
```
Calculate the interpolated metrics for a yield curve with nodes at 1 year (2%) and 5 years (4%) using linear interpolation and annual compounding.
```

**Response:** 
```
The interpolated data includes the original nodes and the calculated spot rates and discount factors for all time horizons within the range based on the linear model.
```

**Prompt:** 
```
What is the present value of a $1,000 payment due in 2 years if the discount factor for year 2 is 0.95?
```

**Response:** 
```
The present value of the $1,000 payment is $950.00.
```

**Prompt:** 
```
Derive the forward rates from these curve metrics: {time: 1, spotRate: 0.03, discountFactor: 0.97} and {time: 2, spotRate: 0.04, discountFactor: 0.92}.
```

**Response:** 
```
The implied forward rate for the period between year 1 and year 2 is approximately 5.15%.
```

## Capabilities

### Curve Interpolation
Your agent uses this to fill in gaps between known interest rate nodes.

### Present Value Calculation
Your agent calculates the current value of future cash flows using discount factors.

### Forward Rate Derivation
Your agent finds implied rates for future periods based on current curve data.

### Arbitrage Detection
Your agent checks the mathematical integrity of a curve to ensure it is consistent.

## Use Cases

### Pension Liability Valuation
Use your agent to calculate the present value of future pension obligations based on current discount factors.

### Yield Curve Construction
Turn a few discrete market data points into a continuous curve with interpolated spot rates.

### Risk Management
Run consistency checks to ensure that your interest rate models do not allow for arbitrage.

### Derivative Pricing
Derive the forward rates needed to price future interest rate contracts.

## Benefits

- Automates the math behind yield curve interpolation.
- Reduces manual errors in present value calculations.
- Provides instant arbitrage checks for mathematical consistency.
- Enables rapid derivation of forward rates from spot rates.

## How It Works

Connect your AI client to Vinkius to access these actuarial tools immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your agent with raw yield curve nodes or cash flow data.
3. Your agent calls the specific tool needed for your calculation.
4. The MCP executes the math and returns the results to your agent.
5. Your agent presents the final values or analysis to you.

## Frequently Asked Questions

**What kind of math does this MCP handle?**
It handles interest rate modeling, including interpolation, present value calculations, forward rate derivation, and arbitrage checks.

**Can I use this with Claude or Cursor?**
Yes, this MCP works with any MCP-compatible client like Claude, Cursor, or Windsurf.

**How does it handle different compounding methods?**
The interpolation tool allows you to specify compounding conventions such as annual or continuous.

**Does it check for arbitrage?**
Yes, the validate_curve_consistency tool is specifically designed to check if a curve is free of arbitrage opportunities.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect.

**How do I calculate the present value of my cash flows?**
You can use the `calculate_cash_flow_pv` tool. Provide your list of cash flows and the interpolated curve metrics generated by `calculate_curve_metrics` to get the total present value.

**Can I check if my yield curve is mathematically sound?**
Yes, the `validate_curve_consistency` tool performs an arbitrage check to ensure discount factors and forward rates are consistent and free of mathematical anomalies.

**What interpolation methods are supported?**
The `calculate_curve_metrics` tool supports standard methods such as linear interpolation to estimate rates between your provided curve nodes.
