# Fabric Dye Mixing Calculator AI Agent Connect

> Deterministic textile dye formulation and bath parameter calculator.

## Overview
- **Category:** chemistry
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Rq9BfYdpZIQbDOPuJzdLo7Snjqf8WK2o2UOmMfH5/ai-agent-connect
- **Tags:** dyeing, textile, formulation, chemistry, manufacturing

## Description

This MCP server provides precise tools for textile dye formulation. It calculates the exact mass of dye powders needed based on fabric weight and target color ratios, determines required water volumes using liquor ratios, and computes necessary chemical modifiers like salt and soda ash. Use `calculate_dye_formulation` to determine dye weights, `calculate_bath_parameters` for water and modifiers, and `validate_recipe_consistency` to ensure industrial safety standards.

## Tools

### calculate_bath_parameters
Calculate total water volume and required chemical modifiers

### calculate_dye_formulation
Determine the exact mass of each individual dye powder required

### validate_recipe_consistency
Verify if a completed recipe adheres to safe industrial manufacturing standards

## Prompt Examples

**Prompt:** 
```
Calculate the dye weights for 500g of fabric with a 2% concentration and a color ratio of 70% Red and 30% Blue.
```

**Response:** 
```
For 500g of fabric at 2% concentration, you need 10g of total dye. This consists of 7g of Red dye and 3g of Blue dye.
```

**Prompt:** 
```
What are the bath parameters for 1000g of fabric with a 20:1 liquor ratio and 5% salt concentration?
```

**Response:** 
```
For 1000g of fabric with a 20:1 liquor ratio, you need 20000ml of water and 50g of salt.
```

**Prompt:** 
```
Is a recipe with 10g dye, 100g fabric, and 500ml water safe?
```

**Response:** 
```
The recipe is valid and meets the required safety standards for even dye distribution.
```

## Frequently Asked Questions

**How do I calculate the amount of dye needed?**
You can use the `calculate_dye_formulation` tool. Provide the dry fabric weight, the target color ratios (as a JSON array of dye names and percentages), and the total concentration percentage.

**What is a liquor ratio?**
A liquor ratio is the relationship between the weight of the fabric and the volume of water in the dye bath. For example, a 20:1 ratio means 20ml of water for every 1g of fabric.

**Can I verify if my recipe is safe for production?**
Yes, the `validate_recipe_consistency` tool checks if your dye weight, fabric weight, and water volume meet safe industrial manufacturing standards.
