Alzheimer’s disease is the most common neurodegenerative disease, characterized by memory loss and cognitive dysfunction. Raspberry fruits contain polyphenols which have antioxidant and anti-inflammatory properties. In this study, we used molecular imprinting technology to efficiently isolate phenolic components from the raspberry ethyl acetate extracts. Six phenolic components (ellagic acid, tiliroside, kaempferol-3-o-rutoside, gallic acid, ferulic acid and vanillic acid) were identified by UPLC-Q-TOF-MS analysis. Molecular docking was used to predict the anti-inflammatory effects and anti-Alzheimer’s potential of these isolated compounds, which showed a good binding ability to diseases and related proteins. However, the binding energy and docking fraction of ellagic acid, tiliroside, and kaempferol-3-o-rutoside were better than those of gallic acid, ferulic acid and vanillic acid. Additionally, by studying the effects of these six phenolic components on the LPS-induced secretion of inflammatory mediators in murine microglial (BV2) cells, it was further demonstrated that they were all capable of inhibiting the secretion of NO, IL-6, TNF-α, and IL-1β to a certain extent. However, ellagic acid, tiliroside, and kaempferol-3-o-rutoside have better inhibitory effects compared to others. The results obtained suggest that the phenolic components extracted from ethyl acetate extracts of raspberry by molecularly imprinted polymers have the potential to inhibit the progression of Alzheimer’s disease.