Three novel Co-based coordination polymers including {[Co(L)(μ3-O)1/3]2}n (1), {[Co(L)(bimb)]}n (2) and {[Co(L)(bimmb)1/2]}n (3) (H2L = 2,6-di(4-carboxylphenyl)-4-(4-(triazol-1-ylphenyl))pyridine), bimb = 1,4-bis(lmidazol) butane, bimmb = 1,4-bis(imidazole-1-ylmethyl)benzene) were successfully prepared under solvothermal conditions and characterized. Single-crystal X-ray diffraction analyses revealed that 1 possesses a 3D architecture composed of a trinuclear cluster [Co3N3(CO2)6(μ3-O)], 2 exhibits a 2D new topological framework with the point symbol (84·122)(8)2, whereas 3 shows a unique six-fold interpenetrated 3D framework with a (63·82·10)2(63)2(8) topology. Impressively, all of them can function as a highly selective and sensitive fluorescent sensor for the biomarker methylmalonic acid (MMA) via fluorescence quenching. The low detection limit, reusability and high anti-interference performance together make 1-3 become promising sensors for the practical detection of MMA. Furthermore, the successful application of MMA detection in urine sample was demonstrated, which may be a potential candidate for the further development of clinical diagnostic tools.