Microbial fuel cells (MFCs) have been recently proven to synthesise biosurfactants from waste products. In classic bioreactors, the efficiency of biosynthesis process can be controlled by the concentration of nitrogen content in the electrolyte. However, it was not known whether a similar control mechanism could be applied in current-generating conditions. In this work, the effect of nitrogen concentration on biosurfactant production from waste cooking oil was investigated. The concentration of NH4Cl in the electrolyte ranged from 0 to 1 g L−1. The maximum power density equal to 17.5 W m−3 was achieved at a concentration of 0.5 g L−1 (C/N = 2.32) and was accompanied by the highest surface tension decrease (to 54.6 mN m−1) and an emulsification activity index of 95.4%. Characterisation of the biosurfactants produced by the LC-MS/MS method showed the presence of eleven compounds belonging to the mono- and di-rhamnolipids group, most likely produced by P. aeruginosa, which was the most abundant (19.6%) in the community. Importantly, we have found a strong correlation (R = −0.96) of power and biosurfactant activity in response to C/N ratio. This study shows that nitrogen plays an important role in the current-generating metabolism of waste cooking oil. To the best of our knowledge, this is the first study where the nitrogen optimisation was investigated to improve the synthesis of biosurfactants and power generation in a bioelectrochemical system.