# Travel Cost Splitter AI Agent Connect

> Calculate individual debts and optimize reimbursement transfers for shared travel expenses.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_v2nYmD0WMxjoEKaPJrUyU16BRWMspCYDB2IJjF7w/ai-agent-connect
- **Tags:** expense-splitting, travel-management, debt-settlement, finance-tools, group-travel

## Description

This MCP server provides a specialized engine for managing shared travel costs. It allows AI agents to process expense lists, determine the net financial standing of every traveler using `calculate_balances`, and identify the most efficient way to settle debts via `optimize_settlements`. You can also verify participant lists with `validate_trip_participants` and get a high-level overview of spending with `get_expense_summary`.

## Tools

### get_expense_summary
Provides a high-level overview of total spending and individual contributions

### validate_trip_participants
Ensures that all individuals mentioned in expenses are recognized as valid participants

### optimize_settlements
Finds the most efficient way to move money between travelers to clear all debts

### calculate_balances
Determines the net financial standing of every participant in the trip

## Prompt Examples

**Prompt:** 
```
Calculate the balances for these expenses: Alice paid 100 for Alice and Bob, and Bob paid 50 for Alice and Bob.
```

**Response:** 
```
Alice has a balance of +25 and Bob has a balance of -25.
```

**Prompt:** 
```
What is the most efficient way to settle these balances: Alice: +50, Bob: -20, Charlie: -30?
```

**Response:** 
```
Bob pays Alice 20 and Charlie pays Alice 30.
```

**Prompt:** 
```
Give me a summary of these expenses: Alice paid 100 for Alice and Bob, and Bob paid 50 for Alice and Bob.
```

**Response:** 
```
Total spent: 150. Unique payers: Alice, Bob. Transaction count: 2.
```

## Frequently Asked Questions

**How do I calculate who owes what?**
You can use the `calculate_balances` tool by providing a list of expenses, including the payer and the beneficiaries for each.

**How can I minimize the number of bank transfers?**
The `optimize_settlements` tool calculates the minimum number of transactions required to clear all debts among participants.

**Can I check if all names in my expenses are valid?**
Yes, use the `validate_trip_participants` tool to ensure all names mentioned in expenses exist in your master participant list.
