# Environmental Geoscience Treatment Train Calculator MCP. AI Agent Connect

> Environmental Geoscience Treatment Train Calculator MCP handles the math for sequential mass balance, concentration, and load calculations. It models how contaminants move through various treatment stages while accounting for bypasses, recycles, and natural decay. You can use it within Claude, Cursor, or Windsurf to validate treatment logic and compare input versus output across an entire system.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_lCwbj4orI2ODG4YpEsDK9LnISM8VjhkBj4GkFGDc/ai-agent-connect
- **Tags:** mass-balance, environmental, water-treatment, geoscience, calculation

## Description

You can use this MCP to model how contaminants behave as they pass through a series of environmental treatment stages. Instead of manually tracking mass balance through every step, you let your AI client handle the sequential math. The engine accounts for real-world variables like bypasses, recycles, and natural decay to ensure your models reflect physical reality. 

Whether you are designing a new water treatment system or auditing an existing one, this MCP provides the precision needed for geoscientific applications. You can run full mass balance calculations for an entire train, check if your proposed stage parameters are physically possible, or quickly compare your initial influent to the final effluent. It also handles the tedious work of unit conversions, so you can switch between mass and volume conventions without manual errors. It is built specifically to help engineers and geoscientists move from conceptual treatment designs to mathematically sound models.

## Tools

### calculate_treatment_train
This tool runs the full sequential mass balance calculations for every stage in your treatment series.

### get_stage_summary
Use this to get a high-level comparison between the initial input and the final output of your entire system.

### get_unit_conversion_factors
This tool provides the specific multipliers needed to switch between different mass and volume unit conventions.

### validate_stage_parameters
This tool checks your proposed treatment stages to ensure the logic is physically possible and sound.

## Prompt Examples

**Prompt:** 
```
Calculate a treatment train with an influent concentration of 100 mg/L and flow of 50 m3/h. Stage 1: 90% removal, 0% bypass, 0% recycle. Stage 2: 50% removal, 10% bypass, 0% recycle. Use mg/L.
```

**Response:** 
```
Stage 1: Concentration 10 mg/L, Load 500 mg/h. Stage 2: Concentration 5 mg/L, Load 250 mg/h. Total cumulative removal: 95%.
```

**Prompt:** 
```
Check if a treatment stage with a 1.0 recycle fraction is valid.
```

**Response:** 
```
The configuration is invalid. A recycle fraction of 1.0 creates an infinite loop in the treatment train.
```

**Prompt:** 
```
What are the conversion factors for the g/m3 convention?
```

**Response:** 
```
The conversion multiplier for g/m3 relative to the mg/L base is 0.001.
```

## Capabilities

### Mass Balance Modeling
Your agent calculates the sequential reduction of contaminants through multiple stages.

### System Validation
The AI checks if your treatment stage parameters are physically and logically sound.

### Input vs Output Comparison
Your client compares the initial influent concentration against the final system output.

### Unit Conversion
The MCP provides multipliers to convert between different mass and volume units.

### Decay and Bypass Modeling
The engine accounts for natural decay, bypasses, and recycles within the treatment train.

## Use Cases

### Treatment Train Design
Model a series of stages to see how much contaminant removal is achieved from start to finish.

### System Audit
Compare the initial influent to the final output to check system efficiency.

### Logic Verification
Check if a specific recycle or bypass percentage will cause a physical error in the model.

### Unit Standardization
Convert concentration values between different conventions like mg/L and g/m3.

## Benefits

- Automates sequential mass balance math across multiple stages.
- Prevents impossible configurations by validating stage parameters.
- Reduces manual errors in unit conversions between mass and volume.
- Accounts for complex variables like bypasses and recycles in a single calculation.

## How It Works

Connect your preferred client to Vinkius to start running environmental calculations immediately.

1. Connect your MCP-compatible client to the Vinkius platform.
2. Provide your treatment stage parameters to your AI client.
3. The AI uses the MCP tools to run mass balance or validation checks.
4. Receive the calculated concentrations, loads, or validation results directly in your chat interface.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates sequential mass balance, concentration, and load for environmental treatment stages, including bypasses and recycles.

**How do I know if my treatment model is physically possible?**
You can use the validate_stage_parameters tool to check if your proposed stages are logically and physically sound.

**Does it handle unit conversions?**
Yes, the get_unit_conversion_factors tool provides the multipliers needed to convert between different mass and volume units.

**Which AI clients can use this MCP?**
You can use this MCP with any compatible client such as Claude, Cursor, Windsurf, or VS Code.

**Can it model recycles in a treatment train?**
Yes, the calculation engine specifically accounts for recycles and bypasses within the sequential stages.

**How do I calculate the total mass removed by the system?**
You can use the `get_stage_summary` tool after running `calculate_treatment_train`. It provides the `totalCumulativeRemoval` which represents the final percentage of mass removed.

**Can I validate my treatment stage configuration before running calculations?**
Yes, use the `validate_stage_parameters` tool. It checks if your bypass and recycle fractions are logically sound and flags issues like infinite recycle loops.

**Does the calculator account for natural degradation?**
Yes, each stage can include a `decayRate` to account for the fractional reduction due to natural biological or chemical degradation.
