These results suggest the involvement of LPS-mediated TLR4-cGAS-STING-NF-κB/NLRP3 in the pathogenesis of ruminal microbiota-associated mastitis. Here, TLR4 is linked to mastitis.