# Logistics Demurrage Cost Calculator MCP. AI Agent Connect

> Logistics Demurrage Cost Calculator MCP handles the math for container overstay fees. It pulls current tariff schedules, terminal holiday calendars, and container status to give your AI client the data it needs to calculate precise demurrage costs based on specific container types and terminal rules.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ZnsozAKwts5LyhiRV9GJI672LP2WRlP9uRNLoaFH/ai-agent-connect
- **Tags:** demurrage, shipping, container, tariff, logistics-automation

## Description

Calculating demurrage is a headache because every terminal has different rules, holidays, and tiered pricing. This MCP removes the guesswork by giving your AI client direct access to the variables that drive these costs. Instead of manually checking tariff tables or terminal calendars, you can ask your agent to run the numbers for you. It checks if a container is even eligible for calculation, pulls the specific pricing for dry vans or reefers, and accounts for weekends and public holidays so you don't overpay. You get a clear breakdown of chargeable days and total fees without digging through spreadsheets or terminal websites.

## Tools

### get_tariff_schedule
Retrieves the current tiered pricing structures for different container types.

### get_container_demurrage
Calculates the total demurrage cost and provides a detailed breakdown of the stay.

### get_terminal_calendar
Provides lists of weekends and public holidays for a specific terminal to ensure accurate date calculations.

### verify_container_status
Checks if a container is in a state that allows for demurrage calculation.

## Prompt Examples

**Prompt:** 
```
Calculate the demurrage for container CONT123456 that arrived on 2023-10-01 and departed on 2023-10-15 as a dry_van.
```

**Response:** 
```
The total demurrage for container CONT123456 is 150.00 USD. It stayed for 14 days, with 9 chargeable days after the 5-day free-time allowance.
```

**Prompt:** 
```
What is the tariff schedule for a reefer container?
```

**Response:** 
```
For reefer containers, the base free-time is 2 days. The rates are: 1-2 days: 0.00, 3-5 days: 50.00 per day, 6+ days: 100.00 per day.
```

**Prompt:** 
```
Is container CONT987654 eligible for demurrage calculation?
```

**Response:** 
```
Yes, container CONT987654 is currently in_terminal and is eligible for demurrage calculation.
```

## Capabilities

### Automated Fee Calculation
Your agent calculates total costs and day breakdowns automatically.

### Tariff Lookup
The AI pulls specific tiered pricing for different container types.

### Holiday Awareness
Your client uses terminal calendars to account for weekends and public holidays.

### Status Verification
The MCP checks if a container is ready for a cost calculation.

## Use Cases

### Invoice Auditing
Compare a carrier's demurrage invoice against the calculated costs from the MCP to find overcharges.

### Cost Forecasting
Estimate potential fees for containers currently sitting at a terminal.

### Tariff Research
Quickly check how much a reefer versus a dry van will cost after free time expires.

### Operational Planning
Determine how many days of free time remain before costs start accruing.

## Benefits

- Eliminates manual math for tiered demurrage pricing.
- Accounts for terminal-specific holidays and weekends automatically.
- Provides instant verification of container eligibility for fees.
- Reduces errors in cost estimation by using live tariff data.

## How It Works

Connect your AI client to Vinkius and start querying logistics data immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide the container ID or terminal name to your AI agent.
3. The agent uses the MCP tools to pull tariffs and terminal calendars.
4. The agent calculates the final demurrage amount based on the container stay.

## Frequently Asked Questions

**How does this MCP handle terminal holidays?**
It uses the get_terminal_calendar tool to identify weekends and public holidays, ensuring they are factored into the chargeable days.

**Can I use this with Claude or Cursor?**
Yes, you can use this with any MCP-compatible client like Claude, Cursor, or Windsurf once connected via Vinkius.

**Does it support different container types?**
Yes, it can retrieve specific tariff schedules for various container types, such as reefers or dry vans.

**How do I know if a container is ready to be calculated?**
You can use the verify_container_status tool to check if a container is in a state that allows for demurrage calculation.

**What information is needed to calculate a fee?**
You typically need the container ID, arrival date, departure date, and the container type.

**How does the tool handle holidays?**
The `get_container_demurrage` tool accounts for terminal-specific rules by checking the calendar provided by `get_terminal_calendar` to see if holidays are excluded from chargeable days.

**Can I check the rates for different container types?**
Yes, you can use `get_tariff_schedule` to retrieve the tiered pricing structure and free-time allowance for any container category.

**What information is needed to calculate costs?**
To use `get_container_demurrage`, you need the container ID, arrival date, departure date, and the container type.
