# Actuarial Risk Margin Calculator AI Agent Connect

> Actuarial Risk Margin Calculator MCP handles the heavy lifting for insurance liability calculations. It determines the present value of the cost of capital required to support non-hedgeable projected cash flows over your chosen coverage horizon. Your AI client uses this to run sensitivity tests, check data consistency, and analyze capital decay rates without manual spreadsheet modeling.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_p5Cq3MFAAXeL7M4jdku2FCvgj7uHHAt6RRwqLRxy/ai-agent-connect
- **Tags:** actuarial, risk-margin, cost-of-capital, insurance-liabilities, cash-flow-analysis

## Description

You can use this MCP to automate the calculation of the Risk Margin component in insurance liabilities. Instead of building complex models from scratch, you tell your AI client the projected cash flows and capital parameters, and it handles the math. It calculates the present value of the cost of capital needed to support non-hedgeable cash flows over a specific period. 

You can run deep dives into how your risk margin reacts to changes in the cost-of-capital rate or how quickly your capital requirements drop off over time. It also acts as a guardrail, checking that your financial curves and cash flows are mathematically compatible before you commit to a calculation. This makes it a reliable way to perform quick sensitivity analysis or validate large datasets through your preferred AI agent.

## Tools

### calculate_risk_margin
This tool performs the full actuarial calculation to find the total risk margin and its financial characteristics.

### get_capital_decay_rate
Use this to analyze how fast your capital requirements decrease over time.

### simulate_coc_sensitivity
This tool predicts how the risk margin fluctuates when you change the cost-of-capital rate.

### validate_input_consistency
This tool checks if your provided financial curves and cash flows are mathematically compatible.

## Prompt Examples

**Prompt:** 
```
Calculate the risk margin for projected cash flows of 1000 at period 1 and 2000 at period 2, with a CoC rate of 0.05, a flat discount rate of 0.03, a runoff factor of 1.0, and a diversification factor of 0.9 over 2 periods.
```

**Response:** 
```
The total calculated risk margin is 142.50, with a duration of 1.45 years.
```

**Prompt:** 
```
Analyze the capital decay rate for a runoff profile with factors 1.0 at period 0, 0.8 at period 1, and 0.5 at period 2.
```

**Response:** 
```
The average decay rate is 0.25 per period, and the decay is following a linear trend.
```

**Prompt:** 
```
Check if my discount curve covering 3 periods is sufficient for a 5-period coverage horizon.
```

**Response:** 
```
The input is insufficient; the curve is too short by 2 periods.
```

## Capabilities

### Risk Margin Computation
Your agent calculates the total margin and associated duration for insurance liabilities.

### Capital Decay Analysis
Your agent determines the speed at which capital requirements decrease.

### Sensitivity Modeling
Your client predicts margin fluctuations based on cost-of-capital rate changes.

### Data Integrity Checks
The MCP verifies that financial curves and cash flows are mathematically consistent.

## Use Cases

### Liability Valuation
Calculate the Risk Margin component for insurance liability models.

### Stress Testing
Simulate how changes in the cost-of-capital rate impact your total risk margin.

### Capital Planning
Analyze capital decay rates to understand how requirements decrease over the coverage horizon.

### Model Validation
Ensure that discount curves and cash flows align before running full calculations.

## Benefits

- Reduces manual error by validating mathematical consistency of financial inputs.
- Speeds up sensitivity testing for cost-of-capital fluctuations.
- Automates the calculation of present value for non-hedgeable cash flows.
- Provides immediate insights into capital runoff profiles.

## How It Works

Connect your AI client to Vinkius to start running actuarial calculations immediately.

1. Connect your AI client like Claude or Cursor to the Vinkius platform.
2. Provide your cash flow data and capital parameters to your AI agent.
3. Your agent uses the MCP tools to process the math or validate the data.
4. Receive the calculated risk margin, duration, or sensitivity results directly in your chat.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates the Risk Margin, including the present value of the cost of capital, duration, and sensitivity for non-hedgeable cash flows.

**How does it handle data errors?**
The validate_input_consistency tool checks if your financial curves and cash flows are mathematically compatible before you run calculations.

**Can I test different interest rate scenarios?**
Yes, you can use the simulate_coc_sensitivity tool to predict how the risk margin changes if the cost-of-capital rate fluctuates.

**What AI clients can I use with this MCP?**
You can use any MCP-compatible client, such as Claude, Cursor, Windsurf, or VS Code.

**Does this MCP require me to host anything?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start working.

**What is the primary purpose of this MCP?**
It calculates the Risk Margin by determining the present value of the cost of capital needed to support non-hedgeable cash flows.

**How can I check if my input data is sufficient for calculation?**
You can use the `validate_input_consistency` tool to check if your financial curves and cash flows are mathematically compatible for the requested horizon.

**Can I predict how changes in the cost-of-capital rate affect my margin?**
Yes, the `simulate_coc_sensitivity` tool allows you to predict how the risk margin fluctuates relative to changes in the CoC rate.
