Herein, we designed and fabricated hollow N-doped carbon polyhedrons with atomically dispersed Zn species (Zn@HNCPs) through a topo-conversion strategy by utilising metal-organic frameworks as precursors. Zn@HNCPs achieved efficient electrocatalytic oxidation of sulfaguanidine (SG) and phthalyl sulfacetamide (PSA) sulfonamides through the high intrinsic catalytic activity of the Zn-N4 sites and excellent diffusion from the hollow porous nanostructures. The combination of the novel Zn@HNCPs with two-dimensional Ti3C2Tx MXene nanosheets resulted in improved synergistic electrocatalytic performance for the simultaneous monitoring of SG and PSA. Therefore, the detection limit of SG for this technique is much lower than those of other reported techniques; to the best of our knowledge, this is the first detection approach for PSA. Moreover, these electrocatalysts show promise for the quantification of SG and PSA in aquatic products. Our insights and findings can serve as guidelines for the development of highly active electrocatalysts for application in next-generation food analysis sensors.