The proposed invention is a multiport modular PV inverter providing offering an option for switching between grid connected mode and off the grid mode along with storage. The system comprises at least an inverter module coupled with a PV module, a storage module, an AC grid module and a load. The inverter module arranged to switch between islanded mode and grid tied mode using a physical disconnect device. It is arranged to operate in microgrid and grid connected mode also communicates with a control center and other inverters using a remote control and monitoring device along with one of a wireless and wired communication link.