The mammary gland of the cow is particularly susceptible to infections of a wide range of pathogenic bacteria, including both Gram-positive and Gram-negative bacteria. The endotoxins of these pathogenic bacteria include peptidoglycan (PGN), lipoteichoic acid (LTA) and lipopolysaccharide (LPS), and they are the pathogen-associated molecular patterns (PAMPs) to induce mastitis. LPS can directly inhibit proliferation and milk fat synthesis of bovine mammary epithelial cells (BMECs) while inducing mastitis, but it is unclear whether PGN and LTA also have such effects. Furthermore, since the three PAMPs usually appear simultaneously in the udder of cows with mastitis, their synergistic effects on proliferation and milk fat synthesis of BMECs are worth investigating. The immortalized BMECs (MAC-T cells) were stimulated for 24 h using various concentrations of PGN, LTA and LPS, respectively, to determine the doses that could effectively cause inflammatory responses. Next, the cells were stimulated for 24 h with no endotoxins (CON), PGN, LTA, LPS, PGN + LTA, and PGN + LTA + LPS, respectively, with the predetermined doses to analyze their effects on proliferation and milk fat synthesis of BMECs. PGN, LTA and LPS successfully induced inflammatory responses of BMECs with doses of 30, 30 and 0.1 μg/mL, respectively. Although the proliferation of BMECs was significantly inhibited in the following order: LTA < PGN + LTA < PGN + LTA + LPS, there was no change in cell morphology and cell death. LTA significantly promoted the expression of fatty acid synthesis-related genes but did not change the content of intracellular triglyceride (TG), compared with the CON group. The mRNA expression of fatty acid synthesis-related genes in the LPS group was the lowest among all the groups. Meanwhile, LPS significantly decreased the content of intracellular non-esterified fatty acids (NEFAs) and TG, compared with the CON group. PGN had no effects on milk fat synthesis. Co-stimulation with PGN, LTA and LPS significantly increased the expression of fat acid synthesis-related genes and the intracellular NEFAs, but decreased intracellular TG, compared with sole LPS stimulation. Collectively, PGN, LTA and LPS showed an additive effect on inhibiting proliferation of BMECs. The promoting role of LTA in fatty acid synthesis might offset the negative effects of LPS in this regard, but co-stimulation with PGN, LTA and LPS significantly decreased intracellular TG content.