Coffee grounds are rich in nutrients, especially nitrogen. They also have some amount of other nutrients like potassium and phosphorous. Overall, this means that adding coffee grounds to your garden can work fairly well as a fertiliser. Coffee should be spread in a thin layer, rather than being clumped in one place.
eBay