Metal organic frameworks (MOFs) are widely used in the synthesis of metal oxides as important organic–inorganic compound precursors. A perovskite ABO3-type Co-based MOF [NH4][Co(HCOO)3] was synthesized from a simple mixture without any adjuvant. Porous Co3O4 microspheres are used as anode materials for lithium-ion batteries (LIBs), which are obtained from [NH4][Co(HCOO)3] as a precursor through a pyrolysis process in air. The obtained pagoda cauliflower-shaped Co3O4 microspheres exhibit an excellent electrochemical performance.