Nowadays, with the increasing global demand for renewable energy sources and their inherent fluctuations, the design of power electronic converter control system in DC microgrids has become more important. The presence of converter-based sources in microgrids introduces challenges such as lack of inertia. This research proposes a model predictive control approach to improve the dynamic response of low-inertia DC microgrids by controllable power sources. Using the concept of virtual inertia, the systems' stability and responsiveness to load changes and disturbances are enhanced. Simulation results derived in the MATLAB environment demonstrate the effectiveness of the proposed method in improving the dynamic performance of the DC microgrids.