Mastitis has severely affected the cattle industry worldwide and has resulted in decreased dairy production and cattle reproduction. Although prevention and treatment methods have been implemented for decades, cattle mastitis is still an intractable disease. Sirtuin 7 (SIRT7) is an NAD+-dependent deacetylase that is involved in various biological processes, including ribosomal RNA synthesis and protein synthesis, DNA damage response, metabolism, and tumorigenesis. However, whether SIRT7 participates in inflammation remains unknown. Our results revealed that SIRT7 is downregulated in tissue samples from mastitic cattle. Therefore, we isolated dairy cow mammary epithelial cells (DCMECs) from breast tissues and developed an in vitro model of lipopolysaccharide- (LPS-) induced inflammation to examine SIRT7 function and its potential role in inflammation. We showed that SIRT7 was significantly downregulated in LPS-treated DCMECs. SIRT7 knockdown significantly increased the LPS-stimulated production of inflammatory mediators, like reactive oxygen and nitric oxide, and upregulated TAB1 and TLR4. In addition, SIRT7 knockdown significantly increased the phosphorylation of TAK1 and NF-κBp65 in LPS-treated DCMECs. Moreover, SIRT7 knockdown promoted the translocation of NF-κBp-p65 to the cell nucleus and then increased the secretion of inflammatory cytokines (IL-1β and IL-6). In contrast, SIRT7 overexpression had the opposite effects when compared to SIRT7 knockdown in LPS-treated DCMECs. In addition, SIRT7 overexpression attenuated LPS-induced DCMEC apoptosis. Taken together, our results indicate that SIRT7 can suppress LPS-induced inflammation and apoptosis via the NF-κB signaling pathway. Therefore, SIRT7 may be considered as a potential pharmacological target for clinical mastitis therapy.