# Actuarial Cash Flow Testing Calculator AI Agent Connect

> Actuarial Cash Flow Testing Calculator MCP lets your AI agent perform complex insurer adequacy testing. It handles the heavy lifting of analyzing policy cash flows, projecting asset returns, and running economic scenarios to check surplus thresholds. You can connect it to Claude, Cursor, or Windsurf to turn your agent into a specialized actuarial modeling tool.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_0FbfvcgMaBSnttBfFeKFFjThBtc3UEv0NirwfOuy/ai-agent-connect
- **Tags:** actuarial, insurance, cash-flow, surplus, risk-management

## Description

You can now run full Cash Flow Testing (CFT) directly through your AI client. This MCP gives your agent the specific tools needed to model insurer solvency and adequacy by looking at the interplay between policyholder behavior and investment performance. Instead of manually calculating projections, you tell your agent to pull policy data, model how assets will grow, and test those numbers against various economic paths. It handles the math for specific scenarios and then aggregates those results so you can see how your surplus holds up under different conditions. It is built for testing how specific economic shifts impact your projected cash flows and overall financial state.

## Tools

### aggregate_scenario_results
This tool compiles data from multiple tested paths. It helps your agent determine overall adequacy by looking at the full range of scenario outcomes.

### get_asset_projections
This tool calculates expected asset values and cash inflows. It models the projected performance of your investment portfolio.

### get_policy_cash_flows
This tool pulls the projected stream of policy-related cash flows. It provides the specific premium and claim data for a set period.

### run_cash_flow_scenario
This tool executes a single projection path. It determines the financial state for one specific economic scenario against your set thresholds.

## Prompt Examples

**Prompt:** 
```
Calculate the projected surplus for a policy with ID POL-123 in year 2025.
```

**Response:** 
```
The projected surplus for policy POL-123 in 2025 is $1,250,000.
```

**Prompt:** 
```
Run a cash flow scenario with a surplus threshold of 500000.
```

**Response:** 
```
The scenario was completed. Projected assets: $5,000,000, Projected liabilities: $4,200,000, Projected surplus: $800,000. The scenario did not fail.
```

**Prompt:** 
```
What is the minimum surplus across all tested scenarios?
```

**Response:** 
```
The minimum surplus across all tested scenarios is $450,000.
```

## Capabilities

### Policy Data Retrieval
Your agent pulls specific premium and claim data for any given period.

### Asset Modeling
The MCP calculates expected investment returns and cash inflows from portfolios.

### Economic Scenario Testing
Your agent runs single or multiple projection paths to test financial stability.

### Adequacy Reporting
Your agent aggregates results from various scenarios to produce a final adequacy view.

## Use Cases

### Surplus Adequacy Testing
Run a scenario to see if your projected surplus stays above a specific threshold during economic shifts.

### Investment Impact Analysis
Model how changes in investment returns affect your total policy cash flows.

### Policy-Level Projections
Retrieve specific cash flow data for individual policies to check long-term viability.

### Multi-Scenario Aggregation
Compare the results of several different economic paths to find the minimum projected surplus.

## Benefits

- Automates the calculation of projected insurer adequacy.
- Tests surplus thresholds against specific economic paths.
- Aggregates multiple scenario results into a single view.
- Connects directly to your existing AI-driven coding or chat environment.

## How It Works

You connect the MCP to your client and then use natural language to trigger actuarial calculations.

1. Connect the MCP to your AI client via Vinkius.
2. Ask your agent to retrieve policy cash flows or asset projections.
3. Instruct your agent to run a specific economic scenario.
4. Request an aggregation of all results to check for adequacy.

## Frequently Asked Questions

**What can this MCP do for insurance companies?**
It performs actuarial Cash Flow Testing by modeling policy cash flows, asset projections, and economic scenarios to check for surplus adequacy.

**Which AI clients can I use with this MCP?**
You can use this MCP with any compatible client like Claude, Cursor, Windsurf, or VS Code.

**How do I test a specific economic scenario?**
You tell your agent to use the run_cash_flow_scenario tool to execute a projection path against your chosen threshold.

**Can I see the minimum surplus across many tests?**
Yes, you can use the aggregate_scenario_results tool to analyze multiple paths and find the minimum surplus.

**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 your client.

**Does this tool certify solvency?**
No. This tool calculates mathematical projections of adequacy based on provided data. It does not provide legal or regulatory certification of solvency.

**How are failed scenarios identified?**
A scenario is flagged as failed if the projected surplus falls below the specified `surplusThreshold` provided during the `run_cash_flow_scenario` execution.

**What inputs are needed for asset projections?**
To use `get_asset_projections`, you need a portfolio ID, a yield curve (array of interest rate points), and a reinvestment rule such as 'immediate', 'laddered', or 'cashreserve'.
