In the case of grid failure in microgrid (MG) system caused by natural disasters, how to realize power supply restoration has drawn much interest. This paper aims to find a modularized energy routing technology to expand the power supply scope and improve power supply restoration capacity First, a modularized energy router (ER) is proposed. Then, based on a higher-order modularized model covering interaction characteristics of AC/DC ports, a topology optimization method considering stability is built to evaluate the stability performance of different interconnection topologies including star type and hand-in-hand type. Finally, the theoretical analysis is validated, and the experimental results show that the proposed technology is able to provide optimal interconnection topology and improve power supply restoration capacity.