To realize the energy and resource utilization from organic solid waste, a two-phase microbial desalination cell (TPMDC) was constructed using dewatered sludge and kitchen waste as the anode substrate. The performance of electricity generation and composting efficacy was investigated, along with a comprehensive assessment of the potential health risks associated with the land use of the resulting mixed compost products. Experimental outcomes revealed a maximum open-circuit voltage of 0.893 ± 0.005 V and a maximum volumetric power density of 0.797 ± 0.009 W/m³. After 90 days of composting enhanced by microbial electrochemistry, a significant organic matter removal rate of 31.13 ± 0.44 % was obtained, and the anode substrate electric conductivity was reduced by 30.02 ± 0.04 % based on the anode desalination. Simultaneously, there was an increase in the content of available nitrogen, phosphorus, and potassium, as well as an improvement in the seed germination index. The forms of heavy metals shifted from bioavailable to stable residual states. The non-carcinogenic hazard index (HI) values for heavy metals and polycyclic aromatic hydrocarbons (PAHs) during the land use of compost products were less than 1, and the total carcinogenic risk (TCR) values for heavy metals and PAHs were below the acceptable threshold of 10−4. The occupational population risk of infection from five pathogens was higher than that of the general public, with all risk values ranging from 8.67 × 10−8 to 1, where the highest risk was attributed to occupational exposure to Legionella. These outcomes demonstrated that the mixture of dewatered sludge and kitchen waste was an appropriate anode substrate to enhance TPMDC stability for electricity generation, and its compost products have promising land use suitability and acceptable land use risk, which will provide important guidance for the safe treatment and disposal of organic solid waste.