Collectively, LP alleviates E. coli-associated mastitis by modulating gut microbiota through the gut–mammary axis and directly inhibiting the cGAS-STING/NF-κB axis, supported by multi-model evidence. Here, STING1 is linked to mastitis.