# Multi-Depot Route Assignment MCP. AI Agent Connect

> Multi-Depot Route Assignment MCP solves the Multi-Depot Vehicle Routing Problem (MDVRP). Your AI client can assign delivery or pickup stops to specific depots based on proximity and availability, then build optimized paths that respect vehicle loads, depot capacities, and distance limits.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_c8dE6rq6lZozmZPQCcrCFxgQNKJkGroiUylcyxNZ/ai-agent-connect
- **Tags:** routing, depot, vehicle, logistics, optimization

## Description

You can stop manually mapping out delivery zones and vehicle paths. This MCP gives your AI agent the logic needed to handle complex logistics where multiple depots are involved. Instead of guessing which driver should take which stop, you let your agent handle the math. 

It works by first grouping stops to the most logical depot based on how close they are and how much capacity those depots have left. Once the stops are assigned, your agent calculates specific routes that keep vehicles within their load limits and distance constraints. You can monitor how much of your depot capacity is being used or quickly spot any stops that couldn't be serviced due to capacity or distance issues. It's a direct way to move from a list of coordinates to a finished routing plan using the AI client you already use.

## Tools

### assign_stops_to_depots
This tool assigns specific stops to depots by looking at proximity and current availability.

### calculate_vehicle_routes
Use this to generate the actual paths for vehicles once stops have been assigned to a depot.

### get_depot_utilization_summary
This tool provides a breakdown of how much resource capacity is being used at each depot.

### identify_unassigned_stops
This tool finds any delivery or pickup locations that the current constraints prevented from being assigned.

## Prompt Examples

**Prompt:** 
```
Assign these stops to depots: stop1 (demand 10), stop2 (demand 20) with depot1 (capacity 2 vehicles) and depot2 (capacity 1 vehicle).
```

**Response:** 
```
Stop1 is assigned to Depot 1 and Stop2 is assigned to Depot 1.
```

**Prompt:** 
```
Calculate routes for the assigned stops with a vehicle capacity of 50 and a route limit of 100km.
```

**Response:** 
```
Route 1: Depot 1 -> Stop 1 -> Stop 2 -> Depot 1. Total distance: 45km.
```

**Prompt:** 
```
Show me the utilization summary for my depots.
```

**Response:** 
```
Depot 1: 1 vehicles used, 1 unused capacity. Depot 2: 0 vehicles used, 1 unused capacity.
```

## Capabilities

### Depot Allocation
Your agent assigns stops to the nearest available depot.

### Route Generation
Your agent builds specific vehicle paths based on assigned stops.

### Capacity Monitoring
Your agent checks how much depot and vehicle capacity remains.

### Error Detection
Your agent identifies stops that cannot be reached under current constraints.

### Constraint Management
Your agent respects vehicle loads and distance limits during route calculation.

## Use Cases

### Multi-Depot Distribution
Assigning regional delivery stops to the most efficient local warehouse.

### Fleet Capacity Planning
Checking depot utilization to see if more vehicles are needed for a shift.

### Route Optimization
Generating specific driving paths that stay within a set kilometer limit.

### Service Gap Analysis
Finding locations that are too far from any depot to be serviced.

## Benefits

- Reduces manual calculation of vehicle paths.
- Balances workloads across multiple depots automatically.
- Identifies service gaps by flagging unassigned stops.
- Maintains strict adherence to vehicle load and distance limits.

## How It Works

You connect the MCP to your AI client and start feeding it logistics data.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide your list of stops, depot capacities, and vehicle limits.
3. Your agent assigns stops to depots using the assignment tool.
4. Your agent calculates the final vehicle routes.
5. Review the utilization summary and unassigned stops to finalize the plan.

## Frequently Asked Questions

**What is the Multi-Depot Vehicle Routing Problem?**
It is a logistics challenge where you must assign stops to multiple depots and then create efficient routes for vehicles starting from those depots.

**Which AI clients can use this MCP?**
You can use this MCP with any compatible client like Claude, Cursor, Windsurf, or VS Code.

**How does the MCP handle vehicle limits?**
The tool calculates routes while respecting specific vehicle loads and distance limits you provide.

**Can I see which stops were missed?**
Yes, you can use the identify_unassigned_stops tool to find any locations that could not be serviced.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use immediately after connection.

**How do I assign stops to the correct depot?**
You can use the `assign_stops_to_depots` tool. It takes stop demands, depot capacities, and a distance matrix to determine the best depot for each stop based on your chosen objective.

**What happens if a vehicle reaches its capacity?**
The `calculate_vehicle_routes` tool ensures that the sum of demands for all stops in a single route does not exceed the specified vehicle capacity.

**How can I see which stops were not serviced?**
Use the `identify_unassigned_stops` tool by providing the list of all requested stop IDs and the IDs of those successfully assigned to routes.
