# Wine SO2 Equilibrium Calculator AI Agent Connect

> Calculate SO2 speciation and microbial stability in wine.

## Overview
- **Category:** agriculture
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_vxrjgmDFCHGPBrTVXlMa87KuqWBlDRYy7DwpOeev/ai-agent-connect
- **Tags:** wine, so2, microbial-stability, winemaking, chemistry

## Description

This MCP server provides winemakers with precise tools to manage sulfur dioxide (SO2) levels. By analyzing pH, alcohol, and temperature, it calculates the distribution of SO2 species, specifically identifying the molecular SO2 available for antimicrobial protection. Use `get_current_speciation` to see the current breakdown of free and bound SO2, `calculate_required_addition` to determine how much more SO2 is needed to reach a target molecular level, and `evaluate_stability_risk` to assess microbial spoilage risks.

## Tools

### calculate_required_addition
Determine how much additional total SO2 must be added to reach a specific target of molecular SO2

### evaluate_stability_risk
Assess whether the current SO2 levels are sufficient to prevent microbial spoilage

### get_current_speciation
Determine the current distribution of SO2 species based on existing wine parameters

### get_equilibrium_constants
Retrieve the environmental constants used for the specific temperature and alcohol conditions

## Prompt Examples

**Prompt:** 
```
What is the current SO2 speciation for a wine with pH 3.5, 13% alcohol, 20°C, and 40 mg/L total SO2?
```

**Response:** 
```
The current speciation is: Free SO2: 25.4 mg/L, Molecular SO2: 4.2 mg/L, Bound SO2: 14.6 mg/L, Total SO2: 40.0 mg/L.
```

**Prompt:** 
```
How much SO2 should I add to reach 0.8 mg/L molecular SO2 if my current pH is 3.6, alcohol is 12%, temperature is 18°C, and total SO2 is 30 mg/L?
```

**Response:** 
```
To reach a target of 0.8 mg/L molecular SO2, you need to add 12.5 mg/L of total SO2.
```

**Prompt:** 
```
Is my wine stable with pH 3.8, 14% alcohol, 22°C, and 35 mg/L total SO2?
```

**Response:** 
```
The current molecular SO2 is 0.5 mg/L, which is below the 0.8 mg/L threshold. The risk level is Moderate.
```

## Frequently Asked Questions

**What is the purpose of the `get_current_speciation` tool?**
It determines the current distribution of SO2 species, including free, molecular, and bound SO2, based on the wine's pH, alcohol, and temperature.

**How do I know if my wine is at risk of spoilage?**
You can use the `evaluate_stability_risk` tool to assess if your current molecular SO2 levels are sufficient to prevent microbial spoilage.

**Can I calculate how much SO2 to add?**
Yes, the `calculate_required_addition` tool calculates the exact amount of total SO2 needed to reach your desired target of molecular SO2.
