Protein tyrosine phosphatase 1B (PTP1B) regulates leptin signaling in hypothalamic neurons via the JAK2-STAT3 pathway. PTP1B has also been implicated in the regulation of inflammation in the periphery. However, the role of PTP1B in hypothalamic inflammation, which is induced by a high-fat diet (HFD), remains to be elucidated. Here, we showed that STAT3 phosphorylation (p-STAT3) was increased in microglia in the hypothalamic arcuate nucleus of PTP1B knock-out mice (KO) on a HFD, accompanied by decreased Tnf and increased Il10 mRNA expression in the hypothalamus compared to wild-type mice (WT). In hypothalamic organotypic cultures, incubation with TNFα led to increased p-STAT3, accompanied by decreased Tnf and increased Il10 mRNA expression, in KO compared to WT. Incubation with p-STAT3 inhibitors or microglial depletion eliminated the differences in inflammation between genotypes. These data indicate an important role of JAK2-STAT3 signaling negatively regulated by PTP1B in microglia, which attenuates hypothalamic inflammation under HFD conditions.