In this paper, we study the Casimir effect on the wormhole geometry in f(R,Lm) gravity. We derive the field equations for the generic f(R,Lm) function by assuming static and spherically symmetric Morris–Thorne wormhole metric. Then we consider two non-linear f(R,Lm) models, specifically, f(R,Lm)=R2+Lmβ and f(R,Lm)=R2+(1+αLm)Lm where α and β are free parameters. We derive the shape functions for wormholes by utilizing the Casimir effect and examining their existence. Subsequently, we analyse the obtained wormhole solutions for each scenario, assessing the energy conditions at the wormhole throat with a radius of r0. Our findings reveal that for some arbitrary quantities, there is a violation of classical energy conditions at the wormhole throat. Additionally, we delve into the behaviour of the equation of state (EoS) for each case. Furthermore, we explore the stability of the Casimir effect wormhole solutions by employing the generalized Tolman–Oppenheimer–Volkoff (TOV) equation. Finally, we utilize the volume integral quantifier to determine the amount of exotic matter required near the wormhole throat for both models.