Obesity-linked variants of melanocortin-4 receptor are misfolded in the endoplasmic reticulum and can be rescued to the cell surface by a chemical chaperone.