The Cambridge Structural Database (CSD) or the Crystallographic Open Database (COD) can provide you with the CCDC (Cambridge Crystallographic Data Centre) or JCPDS (Joint Committee on Powder Diffraction Standards) codes for specific materials. There is no universal code for cobalt metal-organic frameworks (MOFs) or zinc MOFs since these databases contain many structures.
If you have a particular cobalt or zinc-based MOF in mind, it's best to search the databases directly using the compound's name, chemical formula, or structural details. You can also refer to published literature or scientific papers that describe the MOFs you are interested in, as they often include identifying codes or references to crystallographic databases.
Suppose you have the crystallographic data (such as X-ray diffraction data) for a specific cobalt or zinc MOF. In that case, you can generate a COD or CCDC code by depositing the data into the appropriate database.