When grounds are stored they tend to develop green or blue-green fungus that looks like mold. The green fungus called Trichoderma, is very beneficial to the soil. The blue-green fungus is moderately beneficial. At any rate, moldy coffee is good to use directly in the garden, on your houseplants, or in the compost pile.