To promote the oxygen reduction reaction of metal-free catalysts, the introduction of porous structure is considered as a desirable approach because the structure can enhance mass transport and host many catalytic active sites. However, most of the previous studies reported only half-cell characterization; therefore, studies on membrane electrode assembly (MEA) are still insufficient. Furthermore, the effect of doping-site position in the structure has not been investigated. Here, we report the synthesis of highly active metal-free catalysts in MEAs by controlling pore size and doping-site position. Both influence the accessibility of reactants to doping sites, which affects utilization of doping sites and mass-transport properties. Finally, an N,P-codoped ordered mesoporous carbon with a large pore size and precisely controlled doping-site position showed a remarkable on-set potential and produced 70% of the maximum power density obtained using Pt/C.