Objective: to determine the nutritional and physicochemical quality, and the presence of aflatoxins in raw milk, as well as risk factors for developing mastitis in 20 family farms in the region of Texcoco, Mexico. Methods: MilkoSCan FT1 was used for nutritional and physicochemical analysis of milk. Somatic cells were quantified and the cow’s health status was tested using Somaticell; furthermore, the presence of Aflatoxin M1 was determined using lateral flow immunochromatography. Results: the milk evaluated in this study reported normal nutritional values according to NMX-F-700-COFOCALEC-2012, which guarantees its quality for human consumption. The pH ranged from 5.0 to 8.4, which indicates deficient temperature control in some farms, leading to problems with acidity. The logistical analysis showed that adequate udder cleaning during milking is important to avoid it being a risk factor for an increase in somatic cells and degree of mastitis, although not the milking technique or teat sealing. The presence of aflatoxin AFM1 was not reported in raw milk. Study implications: the Somaticell® technique renders a qualitative and efficient diagnosis of clinical mastitis. Conclusions: raw milk quality from this region guarantees consumers with a safe and apt product for human consumption or transformation into dairy byproducts