In this paper, the MIL-53(Al)-NH2 metal-organic frameworks (MOFs) was prepared based on the anodic electrosynthesis under green conditions. The anodic electrosynthesis as an environmentally friendly procedure was performed in the aqueous solution, room temperature, atmospheric pressure, and in the short reaction time (30 min). Also, the employed procedure was accomplished without the need for the ex-situ salt and base/probase additives as cation source and ligand activating agent at the constant current mode (10.0 mA cm-2). The electrosynthesized MOFs was functionalized with phosphorus acid tags as a novel mesoporous catalyst. This mesoporous catalyst was successfully employed for synthesis of new series (N-methyl-pyrrol)-pyrazolo[3,4-b]pyridines by one-pot condensation reaction of 3-methyl-1-phenyl-1H-pyrazol-5-amine, 3-(1-methyl-1H-pyrrol-2-yl)-3-oxopropanenitrile and various aromatic aldehydes (mono, bis and tripodal). This catalyst proceeded the organic synthetic reaction via a cooperative vinylogous anomeric based oxidation mechanism with a marginal decreasing its catalytic activity after recycling and reusability.