# Logistics Service Level Calculator MCP. AI Agent Connect

> Logistics Service Level Calculator MCP gives your AI agent the math tools needed for supply chain analysis. It handles complex inventory calculations like Cycle Service Levels, Fill Rates, and shortage metrics, turning raw demand and stock data into actionable performance indicators.

## Overview
- **Category:** supply-chain
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_KLxU306iewiYO5sMlLcc5OeQROXpajqNiFfHOd8f/ai-agent-connect
- **Tags:** inventory, service-level, supply-chain, logistics, metrics

## Description

You can stop manually running inventory formulas in spreadsheets. This MCP gives your AI client the ability to act as a specialized supply chain analyst. Instead of you doing the math, your agent uses these tools to calculate exactly how well your inventory is meeting demand. 

You can determine the probability of avoiding stockouts by calculating Type-I service levels or measure how much demand you actually satisfied using Type-II fill rates. If you need to understand the impact of stockouts, the MCP quantifies lost units and expected shortages. It also lets you compare different service levels to see where your current inventory strategy might be failing you. It's a direct way to bring mathematical rigor to your supply chain conversations with your AI.

## Tools

### analyze_service_performance
This tool compares Type-I and Type-II service levels to show how your inventory strategy is performing overall.

### calculate_cycle_service_level
Use this to find your Type-I service level, which tells you the probability of not running out of stock during a cycle.

### calculate_fill_rate
This tool calculates the Type-II service level to show the percentage of total demand you actually fulfilled from stock.

### calculate_shortage_metrics
This tool quantifies the impact of stockouts by calculating total lost units and expected shortages.

## Prompt Examples

**Prompt:** 
```
What is our cycle service level if we had 2 stockout events out of 50 cycles?
```

**Response:** 
```
The cycle service level is 0.96 (96%).
```

**Prompt:** 
```
Calculate the fill rate for 850 units satisfied out of 1000 total demand.
```

**Response:** 
```
The fill rate is 0.85 (85%).
```

**Prompt:** 
```
How many units are lost if we have 10 backorders and 5 lost sales?
```

**Response:** 
```
The total lost units are 15.
```

## Capabilities

### Stockout Probability
Your agent uses this to find the likelihood of maintaining stock through a cycle.

### Demand Fulfillment Tracking
The AI calculates the exact percentage of customer demand met by current inventory.

### Shortage Quantification
Your agent determines the specific number of lost units and expected shortages.

### Strategy Comparison
The AI compares different service level types to identify gaps in your supply chain.

## Use Cases

### Stockout Risk Assessment
Your agent calculates the probability of running out of stock based on historical cycle data.

### Customer Service Analysis
Use the fill rate tool to see how much of your customers' demand you are actually meeting.

### Lost Sales Auditing
The AI calculates total lost units by combining backorders and lost sales data.

### Inventory Strategy Review
Compare service levels to see if your current stock levels are too high or too low.

## Benefits

- Moves inventory math from manual spreadsheets to your AI client.
- Provides direct comparison between Type-I and Type-II service levels.
- Quantifies the exact cost of stockouts in terms of lost units.
- Enables rapid analysis of supply chain gaps through automated calculations.

## How It Works

Connecting this MCP to your AI client gives it immediate access to supply chain math tools.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide your inventory or demand data to your AI agent.
3. Ask your agent to run specific calculations like fill rate or shortage metrics.
4. Review the calculated service levels and shortage data directly in your chat.

## Frequently Asked Questions

**What is the difference between Type-I and Type-II service levels?**
Type-I, or Cycle Service Level, measures the probability of not having a stockout during a cycle. Type-II, or Fill Rate, measures the percentage of total demand that is met from available stock.

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

**How does the MCP handle shortage data?**
The MCP uses the calculate_shortage_metrics tool to determine both total lost units and expected shortages.

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

**What kind of supply chain data should I provide?**
You should provide data regarding demand, stock levels, stockout events, or backorders to get accurate results.

**How can I see if my service level calculation is reliable?**
The tools return `confidenceDiagnostics`. If the sample size of cycles or total demand is too low, you will receive a low confidence flag.

**Can I calculate lost sales and backorders?**
Yes, use `calculate_shortage_metrics` to determine total lost units by combining backorder quantities and lost sales.
