A magnetic porous carbon composite which has been synthesized from MOF is used as a catalyst support to fabricate Au and Pd NP based nanocatalysts.