Based on the nuclear effects considered in the Glauber-Gribov approach, charmed meson production in high energy deep inelastic e + A scattering is investigated in the color dipole formalism. Using the Peterson fragmentation function and the KLR-AdS/CFT color dipole model, which reasonably well describes the HERA data for the inclusive structure functions at small Bjorken-x, we present the predictive results for the D-meson transverse spectra at EIC and LHeC energies. The theoretical results indicate that the x-independence phenomena at very small-x predicted by the KLR-AdS/CFT model are not seen in our calculation.