The aim of this study was to evaluate the effectiveness of a mixed biofertilizer with phosphate and potash rocks (PK biofertilizer) combined with an earthworm compound inoculated with free living diazotrophic bacteria and Cunninghamella elegans, fungi that produces chitosan, on cowpea nodulation, biomass yield and nutrient uptake. The effects of some chemical attributes from an acidic soil of the Brazilian Northeast were also studied. The treatments were as follows: a) biofertilizer enriched in N by free living diazotrophic bacteria(NPKB), applying crustaceous chitosan (ChCru) at a rate 2 mg mL -1 ; b) NPKB and ChCru at a rate 4 mg mL -1 ; c) NPKB and ChCru at a rate 6 mg mL -1 ; d) NPKB and fungi chitosan (ChFu, 2 mg mL -1); e) NPKB+C. elegans (NPKP); f) NPKB without chitosan; g) mineral fertilizers (NPKF); and h) control without NPK fertilizer and chitosan. Biofertilizer treatments increased cowpea nodules biomass, shoot biomass, and total N, P, and K in the shoots. The largest increase was obtained with ChCru, and the highest rate was obtained with NPKP. Furthermore, biofertilizers reduced soil pH and increased the total N and available P and K. These results reveal the potential of rock biofertilizer mixed with earthworm compound inoculated with free living diazotrophic bacteria and C. elegans (fungi chitosan) for plant production and nutrient uptake. The biofertilizer may be an alternative for NPK fertilization that slows the release of nutrients, favoring longterm soil fertility.