The invention relates to the technical field of microbial fuel cells, in particular to a method for preparing microbial fuel cell anode electrodes from agricultural wastes.The method includes drying a sample, increasing the temperature to 400 DEG C at a temperature increase rate of 10 DEG C/min in an atmosphere of nitrogen, reacting at 400 DEG C for 30 minutes, carbonizing the sample by controlling nitrogen flow speed at 600 Ml/min, taking the carbonized sample out, grinding the carbonized sample to be in 60-mesh size, soaking the ground carbonized sample for 6 hours by 5wt% HCl, and washing the soaked ground carbonized sample to be neutral; soaking the neutral sample for 6 hours by 3wt% HF, washing the soaked sample to be neutral and drying; mixing the dried sample with KOH, grinding a mixture to be in a 100-mesh size, and transferring the ground mixture to a nickel crucible to activate at 700-900 DEG C in an atmosphere of nitrogen for 1-2 hours, wherein the ratio of the sample to the KOH is 1:2-1:6.The method for preparing the microbial fuel cell anode electrodes from the agricultural wastes has the advantages that the high-quality biomass porous carbon electrodes, prepared from agricultural wastes-bean dregs, are high in specific surface area and capacitance and have good microbial biomass enrichment effect; the method, which is capable of achieving waste resource utilization, is high in raw material use efficiency, powerful in functionality, capable of achieving environment friendliness of the electrodes and the like.