Background Immune molecules, such as cytokines, complement, and major histocompatibility complex (MHC) proteins, in the central nervous system are often associated with neuropsychiatric disorders. Neuronal MHC class I (MHCI), such as H-2D, regulate neurite outgrowth, the establishment and function of cortical connections, and activity-dependent refinement in mice. We previously established mice expressing MHCI specifically in astrocytes of the media prefrontal cortex (mPFC) using the adeno-associated virus (AAV) vector under the control of the glial fibrillary acidic protein (GFAP) promoter. Mice expressing the soluble form of H-2D (sH-2D) in the mPFC (sH-2D-expressing mice) showed abnormal behaviors, including social interaction deficits and cognitive dysfunctions. However, the pathophysiological significance of astroglial MHCI on higher brain functions remains unclear. Therefore, cognitive function in mice expressing sH-2D in astrocytes of the mPFC was tested using the visual discrimination (VD) task to assess the impact of the astrocyte pathology and resulting behavioral changes.Methods Three separate batches of mice were used in the present study. sH-2D-expressing mice were subjected to the VD and reversal learning tasks, morphological analyses, and pharmacological intervention using clozapine in the social interaction and novel object recognition tasks.Results In pretraining, the performance of sH-2D-expressing mice was normal in response phase sessions (stages 1–4), but impaired in the punish phase session (stage 5). The total numbers of sessions, trials, normal trials, and correction trials to reach the VD criterion were significantly higher in sH-2D-expressing mice than in control mice. A morphological study showed that dendritic complexity was significantly reduced in the dorsal striatum of sH-2D-expressing mice. A treatment with clozapine ameliorated decreased social behavior as well as impaired object recognition memory in sH-2D-expressing mice.Conclusion Collectively, the present results suggest that the overexpression of astroglial MHCI in the mPFC results in impaired VD learning, which may be accompanied by decreased dendritic complexity in the dorsal striatum and mPFC.