# Capacitated Vehicle Routing Calculator MCP. AI Agent Connect

> Capacitated Vehicle Routing Calculator MCP solves the Capacitated Vehicle Routing Problem (CVRP) for your logistics operations. It lets your AI client handle complex fleet assignments by calculating routes that stay within vehicle capacity and time limits. You can check if your fleet can handle total demand, find unserved stops, and get detailed efficiency metrics for each route.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_TipEs5ATB8SMgnIffMTQfPRtGt7fEnCR9A9DKHXH/ai-agent-connect
- **Tags:** routing, fleet-management, vrp, logistics-optimization, delivery-planning

## Description

You can now hand off complex logistics math to your AI client. This MCP handles the heavy lifting of the Capacitated Vehicle Routing Problem, allowing your agent to plan deliveries that actually work in the real world. Instead of manually calculating loads and distances, you tell your agent the vehicle capacities and the stop requirements, and it generates the optimal assignments.

Your agent can use this to ensure no vehicle is overloaded and no driver exceeds their maximum duration. If a route is too heavy for the current fleet, the MCP identifies exactly which stops were left out. You can also pull specific utilization data to see how much capacity remains on any given route. It turns your AI client into a logistics coordinator that respects the physical limits of your trucks and drivers.

## Tools

### calculate_routes
Generates optimized vehicle routes based on your specific fleet availability and stop requirements.

### find_unserved_stops
Identifies the specific stops that could not be included in the generated routing solution.

### get_route_summary
Provides a detailed breakdown of a specific route's distance, duration, and capacity utilization.

### validate_fleet_capacity
Checks if your current fleet has enough total capacity to meet the total demand of all requested stops.

## Prompt Examples

**Prompt:** 
```
Calculate the best routes for a depot at [0,0], two vehicles with capacity 10, and three stops at [1,1], [2,2], and [3,3] each with demand 4.
```

**Response:** 
```
The optimized solution assigns two routes. Route 1 includes stops [1,1] and [2,2] with a total load of 8. Route 2 includes stop [3,3] with a total load of 4.
```

**Prompt:** 
```
Can my fleet handle a total demand of 50 units if my total capacity is 45?
```

**Response:** 
```
No, the fleet is not capable of handling the total demand because the demand of 50 exceeds the total capacity of 45.
```

**Prompt:** 
```
Give me a summary of the efficiency for the first route.
```

**Response:** 
```
The route has a total distance of 12.5 units, a total duration of 45 minutes, a total load of 8 units, and a capacity margin of 2 units.
```

## Capabilities

### Route Optimization
Your agent calculates the most efficient way to assign stops to vehicles.

### Capacity Validation
The MCP checks if your fleet can physically handle the total demand of all stops.

### Utilization Analysis
Your agent retrieves detailed metrics on distance, time, and load for each route.

### Gap Identification
The tool finds specific stops that were missed due to capacity or time constraints.

## Use Cases

### Daily Delivery Planning
Generate optimized routes for a fleet of delivery vans based on daily order volumes.

### Fleet Capacity Auditing
Check if adding new customers will require more vehicles based on total demand.

### Route Efficiency Review
Analyze specific routes to see how much unused capacity or time is available.

### Constraint Management
Ensure all routes stay within the maximum duration limits allowed for drivers.

## Benefits

- Calculates routes that respect physical vehicle capacity limits.
- Identifies unserved stops when demand exceeds fleet capacity.
- Provides specific utilization metrics like load margins and trip duration.
- Validates total fleet capacity against total stop demand.

## How It Works

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

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your vehicle capacities and stop requirements to your AI agent.
3. Your agent calls the MCP tools to calculate or validate routes.
4. Your agent presents the optimized routes or capacity reports to you.

## Frequently Asked Questions

**What is the Capacitated Vehicle Routing Problem?**
It is a logistics challenge where you must find the most efficient routes for a fleet of vehicles while ensuring no vehicle exceeds its maximum load or time limit.

**How does this MCP handle vehicle limits?**
The calculate_routes tool specifically uses vehicle capacity and maximum duration constraints to build the assignments.

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

**What happens if my fleet is too small for the orders?**
The tool can identify unserved stops using the find_unserved_stops tool and can validate if the fleet is capable using validate_fleet_capacity.

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

**How does the routing tool handle vehicle limits?**
The `calculate_routes` tool ensures that the sum of demands for all stops in a route does not exceed the vehicle's capacity and that the total travel and service time stays within the vehicle's maximum duration.

**Can I check if my fleet is large enough for my stops?**
Yes, you can use `validate_fleet_capacity` to compare the total demand of all stops against the total capacity of your available vehicles.

**What happens if a stop cannot be serviced?**
If a stop cannot be included in a route due to capacity or duration constraints, it is returned as an unserved stop. You can identify these using `find_unserved_stops`.
