# Ingredient Subtotal Calculator AI Agent Connect

> Ingredient Subtotal Calculator MCP gives your AI client the ability to handle culinary math. It pulls specific ingredient prices, calculates costs for specific quantities, and sums up entire recipe totals. You can also verify if your ingredients are in the catalog before you start calculating.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_gi65vijEi2HPvzPHr6cLO13EI7eo8y4Be53SHntj/ai-agent-connect
- **Tags:** cooking, cost-calculation, recipe, inventory, kitchen

## Description

Managing food costs shouldn't involve manual spreadsheets or constant calculator use. This MCP connects your AI agent directly to a pricing database, turning a standard chat interface into a precise culinary costing tool. You can ask your agent to check the price of a single item or run a full cost analysis on a complex recipe. It handles the math for specific quantities, so you don't have to worry about unit conversions or manual multiplication. If you're planning a menu, your agent can first check if the necessary ingredients are available in the system to ensure your cost estimates are actually realistic. It's a direct way to bridge the gap between a recipe list and a final price tag.

## Tools

### calculate_ingredient_subtotal
This tool calculates the cost for a specific quantity of a single ingredient.

### get_ingredient_price
Use this to pull the current price of a specific ingredient from the database.

### sum_recipe_total
This tool calculates the total cost for a full list of ingredients provided in a JSON format.

### validate_ingredient_list
This tool checks if your list of ingredients can be successfully priced based on current availability.

## Prompt Examples

**Prompt:** 
```
How much does 500 grams of flour cost?
```

**Response:** 
```
500 grams of flour costs $0.50.
```

**Prompt:** 
```
What is the total cost for 2 eggs and 100g of sugar?
```

**Response:** 
```
The total cost for 2 eggs and 100g of sugar is $0.85.
```

**Prompt:** 
```
Check if salt, pepper, and saffron are available.
```

**Response:** 
```
Yes, all requested ingredients are available in the catalog.
```

## Capabilities

### Individual Pricing
Your agent pulls real-time costs for single items.

### Quantity Math
The MCP calculates costs based on the exact weight or count you provide.

### Recipe Totals
Your agent sums up every ingredient in a list to find the full recipe cost.

### Availability Checks
The agent verifies if ingredients are in the system before running calculations.

## Use Cases

### Menu Costing
Calculate the exact cost of a new dish by providing its ingredient list to your agent.

### Inventory Pricing
Check the current price of specific items to update your budget.

### Recipe Validation
Confirm that all ingredients in a proposed recipe are available in your catalog.

### Bulk Order Estimation
Determine the cost of large quantities of specific ingredients for upcoming prep.

## Benefits

- Eliminates manual math for ingredient quantities.
- Provides instant recipe cost totals through a chat interface.
- Verifies ingredient availability before you commit to a recipe cost.

## How It Works

Connecting this MCP to your AI client gives it immediate access to culinary pricing tools.

1. Connect the MCP to your client like Claude or Cursor via Vinkius.
2. Provide your recipe or ingredient list to your AI agent.
3. The agent uses the tools to fetch prices and calculate totals.
4. Receive the final cost breakdown directly in your chat window.

## Frequently Asked Questions

**How do I use this MCP with Claude?**
You connect to the MCP through the Vinkius platform, which hosts the tool for you. Once connected, your Claude client can immediately call the pricing tools.

**Can I calculate costs for specific weights?**
Yes, the calculate_ingredient_subtotal tool is designed to handle specific quantities for any ingredient.

**Does this tool check if ingredients are in stock?**
Yes, you can use the validate_ingredient_list tool to check if the items you want to price are available in the system.

**What happens if I have a long list of ingredients?**
You can use the sum_recipe_total tool to process an entire list of ingredients at once to get a single total cost.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect your client.

**How do I calculate the total cost of a recipe?**
You can use the `sum_recipe_total` tool by providing a list of ingredients and their respective quantities.

**Can I check if an ingredient is available in the catalog?**
Yes, use the `validate_ingredient_list` tool to check if all ingredients in your list exist in the database.

**What happens if an ingredient is not found?**
If an ingredient is missing from the catalog, the tools will return an error indicating the specific missing item.
