# Pickup and Delivery Route Calculator AI Agent Connect

> Pickup and Delivery Route Calculator MCP handles the heavy lifting for logistics planning. It solves the Pickup and Delivery Problem (PDP) by calculating routes that respect vehicle capacity, specific stop orders, and time requirements. Your AI client uses this to build efficient paths and verify that each load fits within your fleet's limits.

## Overview
- **Category:** transportation
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_vv46leEqifDcFliO7xrGAtali5pzMZ9mwmOqWCIu/ai-agent-connect
- **Tags:** routing, logistics, vehicle-routing, optimization, delivery

## Description

You can stop manually calculating stop sequences and weight limits. This MCP acts as a specialized math engine for logistics, specifically designed to tackle the Pickup and Delivery Problem. When you give your AI client a list of pickup and delivery requests along with your vehicle constraints, it finds the most efficient way to move goods from point A to point B.

It does more than guess. The engine respects strict rules like vehicle capacity, the order in which items must be picked up before they are dropped off, and specific time windows. You can use it to build entire route plans from scratch or only check if a single heavy request will break a specific vehicle's limit. It also tracks how your load weight changes as the vehicle moves through its stops, so you always know if you're pushing your equipment too hard.

## Tools

### validate_sequence
Checks if a specific order of stops is legal for a vehicle. It ensures you aren't trying to deliver something before it's been picked up.

### calculate_optimal_routes
Generates complete, optimized vehicle routes. It takes your requests and vehicle constraints to build the best possible path.

### check_request_feasibility
Tests if a single request can be handled by a specific vehicle. It checks if the weight or requirements exceed what the vehicle can carry.

### get_load_profile
Provides a breakdown of weight fluctuations. You can see exactly how much the vehicle weighs at each stop on a route.

## Prompt Examples

**Prompt:** 
```
Calculate the best routes for two requests: Request A (pickup at loc1, weight 5, delivery at loc2) and Request B (pickup at loc3, weight 10, delivery at loc4) using a vehicle with capacity 15.
```

**Response:** 
```
The optimal route for the vehicle with capacity 15 is: Stop 1: Pickup A at loc1 (load: 5), Stop 2: Pickup B at loc3 (load: 15), Stop 3: Delivery A at loc2 (load: 10), Stop 4: Delivery B at loc4 (load: 0).
```

**Prompt:** 
```
Is it possible for a vehicle with capacity 5 to handle a request with weight 10?
```

**Response:** 
```
No, the request is impossible because the item weight exceeds the vehicle's maximum capacity.
```

**Prompt:** 
```
Show me the weight profile for a route with stops at A, B, and C.
```

**Response:** 
```
The load profile is: Stop A: 5 units, Stop B: 12 units, Stop C: 0 units.
```

## Capabilities

### Route Optimization
Your agent calculates the most efficient path for vehicles based on specific pickup and delivery points.

### Capacity Management
Your agent checks if requests fit within the weight limits of your available vehicles.

### Sequence Validation
The MCP confirms that stop orders follow necessary precedence rules.

### Load Tracking
It monitors weight changes throughout a journey to prevent overloading.

### Feasibility Testing
Your agent determines if a single delivery task is possible for a given vehicle before you commit to it.

## Use Cases

### Last-Mile Delivery
Plan the most efficient path for a delivery van with multiple stops and varying package weights.

### Freight Capacity Planning
Verify if a specific heavy shipment can be added to an existing truck route.

### Route Auditing
Check a driver's planned sequence to ensure they aren't attempting to deliver items before pickups.

### Load Distribution Analysis
Review how a vehicle's weight changes during a trip to manage fuel or safety concerns.

## Benefits

- Calculates routes that respect strict capacity and time constraints.
- Prevents overloading by tracking weight at each stop.
- Ensures legal stop sequences for pickup and delivery tasks.
- Reduces manual planning time by automating the routing math.

## How It Works

Get your routing engine running in minutes by connecting it to your preferred AI client.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your pickup, delivery, and vehicle capacity data to your agent.
3. Your agent calls the necessary tools to calculate or validate the data.
4. Receive optimized routes or feasibility reports directly in your chat interface.

## Frequently Asked Questions

**How does this MCP handle vehicle capacity?**
The MCP uses capacity constraints to ensure that the sum of weights in a vehicle never exceeds its limit during any part of the route.

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

**What is a load profile?**
A load profile is a detailed view of how much weight is in the vehicle at each stop along a specific route.

**Does it support pickup and delivery precedence?**
Yes, the tool can validate sequences to ensure pickups happen before their corresponding deliveries.

**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 does the tool handle vehicle capacity?**
The engine ensures that the cumulative weight of all items in the vehicle never exceeds its maximum capacity at any point in the route.

**Can I verify if a specific route is valid?**
Yes, you can use the `validate_sequence` tool to check if a proposed sequence of stops satisfies precedence, capacity, and duration constraints.

**What happens if a request is impossible to fulfill?**
The `calculate_optimal_routes` tool will identify and return a list of infeasible requests that violate the provided constraints.
