# Logistics Fuel Surcharge Calculator AI Agent Connect

> Logistics Fuel Surcharge Calculator MCP handles the math for freight surcharges. It uses fuel price changes and specific lane mileage factors to determine exact surcharge amounts and total freight costs. You can check lane rules, pull configuration data, or compare route efficiency directly through your AI client.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_CEwc2S86QblGCe8Uc91GBBhKbKrz7127hNpNfkgH/ai-agent-connect
- **Tags:** freight, fuel, surcharge, logistics, calculation

## Description

Calculating fuel surcharges shouldn't be a manual math exercise every time fuel prices shift. This MCP connects your AI client to your specific lane configurations and fuel price deltas. Instead of digging through spreadsheets to find mileage factors, you just tell your agent the current fuel price and the lane ID. It handles the heavy lifting of applying lane-specific rules to find the exact surcharge. You can use it to verify if a specific date has valid surcharge parameters or to see how much a price hike actually impacts different routes. It's built to turn raw fuel data into actionable freight costs instantly.

## Tools

### calculate_surcharge
This tool calculates the specific fuel surcharge amount and the final total freight cost for a shipment.

### compare_lane_efficiency
This tool compares how fuel surcharges impact two different lanes.

### get_lane_configuration
This tool retrieves the static configuration and mileage factors for a specific lane.

### validate_lane_rules
This tool checks if a specific lane and date combination has valid surcharge parameters.

## Prompt Examples

**Prompt:** 
```
Calculate the surcharge for a shipment with base freight of 1000, base fuel price of 3.00, current fuel price of 3.50, mileage factor of 0.05, and lane ID 'LANE-001' for date 2024-01-01.
```

**Response:** 
```
The calculated fuel surcharge is 25.00, making the total freight 1025.00.
```

**Prompt:** 
```
What is the mileage factor for lane 'LANE-002'?
```

**Response:** 
```
The mileage factor for lane 'LANE-002' is 0.045.
```

**Prompt:** 
```
Compare the surcharge impact between 'LANE-A' and 'LANE-B' when fuel rises from 3.00 to 3.50.
```

**Response:** 
```
The difference in surcharge between the two lanes is 12.50.
```

## Capabilities

### Surcharge Calculation
Your agent calculates exact surcharge amounts and total freight costs using fuel deltas.

### Lane Rule Validation
The AI checks if surcharge parameters are valid for a specific date and lane.

### Configuration Retrieval
Your agent pulls mileage factors and static lane settings on demand.

### Route Comparison
The AI analyzes the difference in surcharge impact between two different routes.

## Use Cases

### Daily Rate Adjustments
Update freight quotes instantly when fuel prices change by providing the new delta to your agent.

### Audit and Compliance
Verify that a specific lane's surcharge is valid for a historical shipment date.

### Route Profitability Analysis
Compare how fuel surcharges differ between two lanes to plan more efficient routes.

### Configuration Management
Quickly pull mileage factors for specific lanes without searching through master files.

## Benefits

- Eliminates manual math for fuel price deltas.
- Uses lane-specific mileage factors for precision.
- Provides instant total freight cost updates.
- Validates lane rules against specific dates automatically.

## How It Works

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

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide the fuel price delta and lane ID to your agent.
3. The agent calls the necessary tool to process the math.
4. You receive the exact surcharge and total cost in your chat interface.

## Frequently Asked Questions

**How does this MCP calculate fuel surcharges?**
It uses the fuel price delta and lane-specific mileage factors to determine the surcharge and total freight cost.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf through Vinkius.

**Does it handle different lanes?**
Yes, the tool uses specific lane configurations and mileage factors to ensure accuracy for different routes.

**How do I check if a rule is valid for a past date?**
You can use the validate_lane_rules tool to check if a specific lane and date combination has valid parameters.

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

**How is the fuel surcharge calculated?**
The surcharge is calculated by applying the lane's specific rule and the mileage factor to the difference between the current and base fuel prices.

**What happens if the current fuel price is lower than the base price?**
If the current fuel price is lower than the base fuel price, the surcharge is zero.

**Can I check if a specific lane has active rules for a certain date?**
Yes, you can use the `validate_lane_rules` tool to verify if a lane and date combination has valid surcharge parameters.
