# Vehicle Routing with Time Windows AI Agent Connect

> Vehicle Routing with Time Windows MCP is a deterministic optimization engine for logistics. It lets your AI client handle complex fleet scheduling by calculating routes that respect vehicle capacities, service durations, and specific arrival windows for each stop.

## Overview
- **Category:** transportation
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_p3jMAfGhGfsTzATNK8xzTAXymgIoFvGiLzueFijA/ai-agent-connect
- **Tags:** routing, vrptw, logistics, optimization, fleet-management

## Description

You can stop manually calculating delivery sequences and worrying about missed time windows. This MCP gives your AI agent the mathematical heavy lifting needed for complex logistics. Instead of guessing, you can ask your agent to build complete multi-vehicle plans that account for how much a truck can carry and exactly when a customer needs their delivery. 

You can use this to verify if a proposed route actually works before you send a driver out, or to check how much load a vehicle is carrying at any point in its trip. It also helps you look at the data to see where drivers are sitting idle or where they are rushing. It is built for deterministic results, meaning you get a calculated plan based on the constraints you provide, not a hallucinated guess. Whether you are managing a small fleet or a large distribution network, this tool turns your agent into a logistics coordinator that understands capacity and timing.

## Tools

### calculate_route_efficiency
This tool analyzes how well a route performs by looking at travel time versus waiting periods.

### get_route_load_metrics
Use this to see exactly how a vehicle's load changes as it moves through its assigned stops.

### solve_vrptw
This tool generates an optimal multi-vehicle routing plan based on your specific constraints.

### validate_route_feasibility
Check if a specific route is actually possible given your current vehicle capacity and time windows.

## Prompt Examples

**Prompt:** 
```
Calculate a route plan for 3 stops and 2 vehicles with these constraints: [JSON data]
```

**Response:** 
```
Vehicle 1: Depot to Stop 1 to Stop 3 to Depot. Vehicle 2: Depot to Stop 2 to Depot. Total objective: 450 minutes.
```

**Prompt:** 
```
Is this route feasible: [Stop IDs] with capacity 100?
```

**Response:** 
```
The route is feasible.
```

**Prompt:** 
```
Analyze the efficiency of this route data: [JSON data]
```

**Response:** 
```
Total travel time: 120 mins, Total waiting time: 15 mins, Total service time: 45 mins.
```

## Capabilities

### Route Optimization
Your agent calculates the best sequence of stops for multiple vehicles.

### Constraint Validation
Your agent checks if a route stays within vehicle capacity and time window limits.

### Load Tracking
You can monitor how much cargo is on a vehicle at each stage of the trip.

### Efficiency Auditing
The tool identifies wasted time and idle periods in your completed routes.

## Use Cases

### Last-Mile Delivery
Plan routes for multiple vans that must arrive at specific customer locations within set hours.

### Fleet Capacity Planning
Determine if your current fleet can handle a specific set of orders without exceeding weight limits.

### Route Auditing
Review completed trips to see where drivers spent too much time waiting for windows to open.

### Real-time Feasibility Checks
Quickly verify if adding a new stop to an existing route will break the schedule.

## Benefits

- Calculates routes using deterministic math rather than probabilistic guesses.
- Enforces strict time windows to prevent missed delivery appointments.
- Prevents vehicle overloading by tracking capacity constraints.
- Identifies idle time to improve driver utilization.

## How It Works

Connect your AI client to Vinkius and start sending routing data immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your stop locations, time windows, and vehicle capacities in a prompt.
3. Your agent calls the optimization tool to solve the routing problem.
4. The tool returns a structured route plan or feasibility report.

## Frequently Asked Questions

**What is VRPTW?**
It stands for Vehicle Routing Problem with Time Windows. It is a mathematical way to find the best routes while making sure vehicles arrive within specific time slots.

**How does this MCP handle vehicle capacity?**
The optimization engine treats capacity as a hard constraint. It ensures that the total load assigned to a vehicle never exceeds its limit during the route.

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

**Does it calculate travel time?**
Yes, the tool considers travel times between stops to ensure the entire route sequence is realistic.

**How do I check if a route is valid?**
You can use the validate_route_feasibility tool to check if a specific path meets your capacity and time window requirements.

**How do I generate a full route plan?**
You can use the `solve_vrptw` tool by providing the stops, vehicles, depots, and the travel time matrix as JSON strings.

**Can I check if a specific route is valid?**
Yes, use the `validate_route_feasibility` tool to check for capacity or time window violations in a pre-defined route.

**How can I see the vehicle load at each stop?**
The `get_route_load_metrics` tool provides the detailed load profile for a specific vehicle's journey.
