Cognitive Impairment arising from type 2 diabetes mellitus (T2DM) has garnered significant attention in recent times. However, there are few studies on the identification and diagnosis of markers of cognitive impairment. Notably, alterations in the Retinal Nerve Fiber Layer's (RNFL) thickness can potentially serve as an indicative measure of central nervous system changes. Further investigations have indicated that the decline in cognitive function within T2DM patients is intricately linked to persistent systemic inflammation and the accumulation of advanced glycosylation end products. Comprehensive studies are warranted to unveil these complex associations. This study aims to explore the potential of utilizing the RNFL thickness and serological concentrations of IL-18, irisin, CML, and RAGE as diagnostic indicators for Mild Cognitive Impairment (MCI) among individuals with T2DM. The thickness of RNFL were determined in all patients and controls using optical coherence tomography (OCT). The serum levels of IL-18, irisin, CML and RAGE were detected by ELISA kit. In addition, Cognitive assessment was performed by the Mini-Mental State Examination (MMSE) and the Montreal Cognitive assessment (MoCA). The average RNFL thickness in the right eye were decreased in T2DM and T2DM combined with MCI (T2DM-MCI) patients and were positively correlated with MoCA and MMSE scores. The serum levels of IL-18, CML and RAGE in T2DM and T2DM-MCI increased significantly (p<0.05) and were negative correlated with MoCA and MMSE scores. The level of irisin in T2DM and T2DM-MCI decreased significantly (p<0.05) and were positively correlated with MoCA and MMSE scores. The area under the ROC curve of T2DM-MCI predicted by the average RNFL thickness in the right eye, CML and RAGE were 0.853, 0.874 and 0.815. The diagnostic efficacy of the combination of average RNFL thickness in the right eye, CML, and RAGE for the diagnosis of T2DM-MCI was 0.969. The average RNFL thickness in the right eye, CML and RAGE have possible diagnostic value in T2DM-MCI patients.