Back to Home
puran-water icon

water-chemistry-mcp

by puran-water

Overview

Advanced water chemistry modeling and optimization for industrial wastewater treatment, powered by PHREEQC for chemical equilibrium and kinetic simulations.

Installation

Run Command
python server.py

Environment Variables

  • USGS_PHREEQC_EXECUTABLE
  • USGS_PHREEQC_DATABASE_PATH
  • USE_PHREEQC_SUBPROCESS
  • WATER_CHEMISTRY_DEBUG

Security Notes

The server allows injection of arbitrary BASIC rate law code via the `KineticRateDefinition.rate_law` field in the `simulate_kinetic_reaction` tool. This unsanitized input is directly included in the PHREEQC script, enabling execution of untrusted code within the PHREEQC interpreter, which could lead to resource exhaustion, file system access (read/write depending on PHREEQC configuration), or other unexpected behavior.

Similar Servers

Stats

Interest Score33
Security Score3
Cost ClassMedium
Avg Tokens10000
Stars3
Forks1
Last Update2026-01-18

Tags

Water ChemistryPHREEQCWastewater TreatmentChemical ModelingOptimizationEnvironmental Engineering