By computationally analysing the Human Metabolome Database, we identified two endogenous metabolites, carnosine and kynurenic acid, that inhibit the aggregation of the amyloid beta peptide (Aβ) and rescue a C. elegans model of Alzheimer’s disease. The gene discussed is APP; the disease is Alzheimer disease.