Four 3D coordination polymers, [Co7(OH)4(H2O)2(ina)4(ip)3]·10H2O (1·10H2O, ina = isonicotinate, ip = isophthalate), [Ni7(OH)4(H2O)2(ina)4(ip)3]·10H2O (2·10H2O), [Co7(OH)4(H2O)2(ina)4(pip)3]·5H2O (3·5H2O, pip = 5-phenyl-isophthalate), and [Ni7(OH)4(H2O)2(ina)4(pip)3]·5H2O (4·5H2O), respectively, were hydrothermally synthesized. They crystallized in the orthorhombic space group Pba2 for 1·10H2O and 2·10H2O and monoclinic space group P2/n for 3·5H2O and 4·5H2O, respectively, and were constructed with the identical 8-connected heptanuclear {M7(OH)4} (M = Co(II) or Ni(II)) clusters, possessing uninodal hexagonal primitive net with the point symbol {3(6)·4(18)·5(3)·6}. The four coordination polymers showed dominant antiferromangetic properties, in which 1·10H2O shows spin-canted behavior and 2·10H2O exhibits the coexistence of spin canting and spin glass. Meanwhile, the activated polymers 1 and 2 possessed permanent porosity, displaying relatively large H2 uptake capacity (77 K, 1 atm) of 114 and 133 cm(3) g(-1), and CO2 uptake capacity (273 K, 1 atm) of 65.8 and 73.3 cm(3) g(-1), for 1 and 2, respectively.