Mastitis is a disease characterized by congestion, swelling, and inflammation of the mammary gland and usually caused by infection with pathogenic microorganisms. Furthermore, the development of mastitis is closely linked to the exogenous pathway of the gastrointestinal tract. However, the regulatory mechanisms governing the gut-metabolism-mammary axis remain incompletely understood. The present study revealed alterations in the gut microbiota of mastitis rats characterized by an increased abundance of the Proteobacteria phylum. Plasma analysis revealed significantly higher levels of L-isoleucine and cholic acid along with 7-ketodeoxycholic acid. Mammary tissue showed elevated levels of arachidonic acid metabolites and norlithocholic acid. Proteomic analysis showed increased levels of IFIH1, Tnfaip8l2, IRGM, and IRF5 in mastitis rats, which suggests that mastitis triggers an inflammatory response and immune stress. Follistatin (Fst) and progesterone receptor (Pgr) were significantly downregulated, raising the risk of breast cancer. Extracellular matrix (ECM) receptors and focal adhesion signaling pathways were downregulated, while blood-milk barrier integrity was disrupted. Analysis of protein-metabolic network regulation revealed that necroptosis, protein digestion and absorption, and arachidonic acid metabolism were the principal regulatory pathways involved in the development of mastitis. In short, the onset of mastitis leads to changes in the microbiota and alterations in the metabolic profiles of various biological samples, including colonic contents, plasma, and mammary tissue. Key manifestations include disturbances in bile acid metabolism, amino acid metabolism, and arachidonic acid metabolism. At the same time, the integrity of the blood-milk barrier is compromised while inflammation is promoted, thereby reducing cell adhesion in the mammary glands. These findings contribute to a more comprehensive understanding of the metabolic status of mastitis and provide new insights into its impact on the immune system.