Microglia are the primary innate immune cells of the central nervous system and extensively contribute to brain homeostasis. Dysfunctional or excessive activity of microglia may be associated with several neuropsychiatric disorders, including schizophrenia. Therefore, we examined whether aripiprazole and risperidone could influence the expression of the Cd200-Cd200r and Cx3cl1-Cx3cr1 axes, which are crucial for the regulation of microglial activity and interactions of these cells with neurons. Additionally, we evaluated the impact of these drugs on microglial pro- and anti-inflammatory markers (Cd40, Il-1β, Il-6, Cebpb, Cd206, Arg1, Il-10 and Tgf-β) and cytokine release (IL-6, IL-10). The research was executed in organotypic cortical cultures (OCCs) prepared from the offspring of control rats (control OCCs) or those exposed to maternal immune activation (MIA OCCs), which allows for the exploration of schizophrenia-like disturbances in animals. All experiments were performed under basal conditions and after additional stimulation with lipopolysaccharide (LPS), following the "two-hit" hypothesis of schizophrenia. We found that MIA diminished the mRNA level of Cd200r and affected the OCCs' response to additional LPS exposure in terms of this parameter. LPS downregulated the Cx3cr1 expression and profoundly changed the mRNA levels of pro- and anti-inflammatory microglial markers in both types of OCCs. Risperidone increased Cd200 expression in MIA OCCs, while aripiprazole treatment elevated the gene levels of the Cx3cl1-Cx3cr1 dyad in control OCCs. The antipsychotics limited the LPS-generated increase in the expression of proinflammatory factors (Il-1β and Il-6) and enhanced the mRNA levels of anti-inflammatory components (Cd206 and Tgf-β) of microglial polarization, mostly in the absence of the MIA procedure. Finally, we observed a more pronounced modulating impact of aripiprazole on the expression of pro- and anti-inflammatory cytokines when compared to risperidone in MIA OCCs. In conclusion, our data suggest that MIA might influence microglial activation and crosstalk of microglial cells with neurons, whereas aripiprazole and risperidone could beneficially affect these changes in OCCs.