P2X7R/NLRP3 signaling pathway-mediated pyroptosis and neuroinflammation contributed to cognitive impairment in a mouse model of migraine. Here, NLRP3 is linked to migraine disorder.