Fibroblast growth factor 21 (FGF21) plays a crucial role in metabolism and brain function. Glucosamine (GLN) has been recognized for its diverse beneficial effects. This study aimed to elucidate the modulation of FGF21 production by GLN and its impact on learning and memory functions. Using both in vivo and in vitro models, we investigated the effects of GLN on mice fed with a normal diet or high-fat diet and on mouse HT22 hippocampal cells, STHdhQ7/Q7 striatal cells, and rat primary cortical neurons challenged with GLN. Our results indicated that GLN promotes learning and memory functions in mice and upregulates FGF21 expression in the hippocampus, cortex, and striatum, as well as in HT22 cells, STHdhQ7/Q7 cells, and cortical neurons. In animals receiving GLN together with an FGF21 receptor FGFR1 inhibitor (PD173074), the GLN-enhanced learning and memory functions and induction of FGF21 production in the hippocampus were significantly attenuated. While exploring the underlying molecular mechanisms, the potential involvement of NF-κB, Akt, p38, JNK, PKA, and PPARα in HT22 and NF-κB, Akt, p38, and PPARα in STHdhQ7/Q7 were noted; GLN was able to mediate the activation of p65, Akt, p38, and CREB in HT22 and p65, Akt, and p38 in STHdhQ7/Q7 cells. Our accumulated findings suggest that GLN may increase learning and memory functions by inducing FGF21 production in the brain. This induction appears to be mediated, at least in part, through GLN’s activation of the NF-κB, Akt, p38, and PKA/CREB pathways.