Cognitive impairment in type 2 diabetes mellitus (T2DM) is associated with functional and structural abnormalities of brain networks, especially the damage to hub nodes in networks. This study explored the abnormal hub nodes of brain functional networks in patients with T2DM under different cognitive states. Sixty-five patients with T2DM and 34 healthy controls (HCs) underwent neuropsychological assessment. Then, degree centrality (DC) analysis and seed-based functional connectivity (FC) analysis were performed to identify the abnormal hub nodes and the FC patterns of these hubs in T2DM patients with mild cognitive impairment (MCI) (DMCI group, N = 31) and without MCI (DMCN group, N = 34). Correlation analyzes examined the relationship between abnormal DC and FC and clinical/cognitive variables. Compared with HCs, both T2DM groups showed decreased DC values in the visual cortex, and the T2DM patients with MCI (DMCI) showed more extensive alterations in the right parahippocampal gyrus (PHG), bilateral posterior cingulate cortex (PCC), and left superior frontal gyrus (SFG) regions than T2DM patients with normal cognitive function. Seed-based FC analysis of PHG and PCC nodes showed that functional disconnection mainly occurred in visual and memory connectivity in patients with DMCI. Multiple abnormal DC values correlated with neuropsychological tests in patients with T2DM. In conclusion, this study found that the DMCI group displayed more extensive alterations in hub nodes and FC in vision and memory-related brain regions, suggesting that visual-related regions dysfunctions and disconnection may be involved in the neuropathology of visuospatial function impairment in patients with DMCI.