Two rare indium-based porous metal–metalloporphyrin frameworks (MMPFs), MMPF-7 and MMPF-8, were constructed by self-assembly of In(III) and two custom-designed porphyrin–tetracarboxylate ligands. MMPF-7 and MMPF-8 possess the pts topology and exhibit interesting CO2 adsorption properties.