We describe a protocol for isolating microglial cells from the mouse hypothalamus (or equivalent small brain structures) using magnetically activated cell sorting (MACS), in a relatively short time. The MACS-sorted hypothalamic microglia can be used for ex vivo analysis and can be plated to perform in vitro assays.