Oh, Coffee. Not only do you provide delicious flavor, a kick of caffeine, and an excuse to take five, but even after you're done brewing, you just keep on giving. I love you.
Coffee grounds are relatively high in nitrogen and acidity, which makes them an excellent amendment to New Mexico's highly alkaline soil. If you spread them thinly around the base of a plant, you can deter snails and slugs, and cats dislike the smell, too. And, more balanced soil is more hospitable to earthworms.
If you are interested in using coffee as a soil amendment, compost is the best way to go (even plants that like acidity, like tomatoes, don't like straight coffee grounds in their dirt). Coffee grounds are a "green."
Read more here: https://www.green-talk.com/coffee-grounds-for-your-compost-get-your-brew-right/