Truax et al. show that myeloid-expressed NLRP12 restrains high-fat diet-induced obesity and type 2 diabetes by attenuating TNF, IL-6, NF-kB, MAPK, M1 macrophage polarization and inflammasome activation in adipose tissue. Here, NLRP12 is linked to obesity due to melanocortin 4 receptor deficiency.