Objective: To investigate the risk factors for the development of mild cognitive dysfunction in hypertensive patients in the community and to develop a risk prediction model. Method: The data used in this study were obtained from two sources: the China Health and Retirement Longitudinal Study (CHARLS) and the Chinese Longitudinal Healthy Longevity Survey (CLHLS). A total of 1121 participants from CHARLS were randomly allocated into a training set and a validation set, following a 70:30 ratio. Meanwhile, an additional 4016 participants from CLHLS were employed for external validation of the model. The patients in this study were divided into two groups: those with mild cognitive impairment and those without. General information, employment status, pension, health insurance, and presence of depressive symptoms were compared between the two groups. LASSO regression analysis was employed to identify the most predictive variables for the model, utilizing 14-fold cross-validation. The risk prediction model for cognitive impairment in hypertensive populations was developed using generalized linear models. The model's discriminatory power was evaluated through the area under the receiver operating characteristic (ROC) curve and calibration curves. Results: In the modeling group, eight variables such as gender, age, residence, education, alcohol use, depression, employment status, and health insurance were ultimately selected from an initial pool of 21 potential predictors to construct the risk prediction model. The area under the curve (AUC) values for the training, internal, and external validation sets were 0.777, 0.785, and 0.782, respectively. All exceeded the threshold of 0.7, suggesting that the model effectively predicts the incidence of mild cognitive dysfunction in community-based hypertensive patients. A risk prediction model was developed using a generalized linear model in conjunction with Lasso regression. The model's performance was evaluated using the area under the receiver operating characteristic (ROC) curve. Hosmer-Lemeshow test values yielded p = .346 and p = .626, both of which exceeded the 0.05 threshold. Calibration curves demonstrated a significant agreement between the nomogram model and observed outcomes, serving as an effective tool for evaluating the model's predictive performance. Discussion: The predictive model developed in this study serves as a promising and efficient tool for evaluating cognitive impairment in hypertensive patients, aiding community healthcare workers in identifying at-risk populations.