# Material Inventory Gap Analysis AI Agent Connect

> Material Inventory Gap Analysis MCP connects your AI client to your inventory data. It identifies shortages, calculates necessary purchase quantities based on package sizes, and tracks available-to-promise stock levels. Your agent can now handle complex unit conversions and material reconciliations without manual math.

## Overview
- **Category:** inventory-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_kS9xKMB73QkrLDcNUjfniWKqvy17YVpmiIm4xBzj/ai-agent-connect
- **Tags:** inventory, gap-analysis, procurement, material-management, supply-chain

## Description

You can use this MCP to bridge the gap between what your project needs and what is actually sitting in your warehouse. Instead of manually checking spreadsheets, your AI client can pull real-time data to see if you have enough supplies to finish a job. It handles the heavy lifting of calculating Available-to-Promise (ATP) quantities by subtracting reserved stock from your total inventory. If you're dealing with different measurement systems, the MCP manages unit conversions so you don't have to. You can quickly figure out if a specific material is sufficient for a project or if you need to place a new order. It's built to handle the math of package sizes and specific project requirements, making procurement much faster.

## Tools

### calculate_material_gap
This tool checks if your current material stock covers a specific project or if you need to buy more.

### list_project_requirements
This tool pulls the full list of materials and quantities required for a specific project.

### get_conversion_factor
This tool finds the multiplier needed to convert between different units for a specific material.

### get_material_availability
This tool provides a snapshot of a material's status, including total stock and what is already committed.

## Prompt Examples

**Prompt:** 
```
Check if we have enough cement for project PROJ-101. We need 50 bags.
```

**Response:** 
```
There is a shortage of 12 bags for project PROJ-101. You need to purchase 12 more bags to meet the requirement.
```

**Prompt:** 
```
What is the current availability for material MAT-99?
```

**Response:** 
```
Material MAT-99 has a total inventory of 500 units, with 100 units currently reserved. The available-to-promise quantity is 400 units.
```

**Prompt:** 
```
List all materials required for project REQ-500.
```

**Response:** 
```
Project REQ-500 requires: 50 units of Steel (MAT-01), 20 units of Concrete (MAT-05), and 10 units of Gravel (MAT-09).
```

## Capabilities

### Shortage Detection
Your agent identifies exactly how much more material you need to buy to meet project goals.

### Stock Reconciliation
The MCP compares project needs against physical inventory levels.

### Unit Conversion
Your AI client uses conversion factors to translate between different material measurement units.

### Availability Tracking
The tool calculates available-to-promise quantities by accounting for reserved stock.

## Use Cases

### Procurement Planning
Determine exactly how many units to order by comparing project needs to current stock.

### Project Readiness Checks
Verify if a project has all necessary materials before work begins.

### Inventory Auditing
Reconcile committed stock against total inventory to see what is actually free to use.

### Unit Standardization
Convert material quantities between different measurement units for consistent reporting.

## Benefits

- Reduces manual math errors during unit conversions.
- Identifies procurement needs based on real-time stock and commitments.
- Provides clear visibility into available-to-promise inventory levels.
- Connects project requirements directly to warehouse availability.

## How It Works

Get your inventory data into your AI client and start running gap analyses immediately.

1. Connect the MCP to your preferred client like Claude or Cursor via Vinkius.
2. Ask your agent to list requirements for a specific project.
3. Run a gap analysis to see if current stock covers those requirements.
4. Use the results to trigger purchase orders or check availability.

## Frequently Asked Questions

**How does this MCP handle different units of measurement?**
The MCP uses a conversion factor tool to find the correct multiplier for specific materials, allowing your agent to work across different units.

**What is 'available-to-promise' quantity?**
It is the amount of stock you actually have available to use after subtracting any stock that is already committed or reserved for other projects.

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

**Does this MCP manage my actual inventory database?**
This MCP provides the tools to read and analyze your inventory data through your AI client.

**How do I know if I need to buy more materials?**
You can use the calculate_material_gap tool to determine if your current stock is sufficient for a specific project's needs.

**How does the tool calculate shortages?**
The `calculate_material_gap` tool subtracts all reserved stock from the total inventory to find the Available-to-Promise quantity. If the project requirement is higher than this amount, a shortage is reported.

**Can I convert units between different materials?**
Yes, you can use `get_conversion_factor` to find the multiplier needed to convert between different units for a specific material.

**How are purchase quantities determined?**
Purchase quantities are calculated by taking the required shortage and rounding it up to the nearest increment defined by the material's package size.
