Coffee grounds are great in compost and has some benefit when added direct to the soil as it improves drainage and water retention. It also helps microorganisms and attracts earthworms.
Washed coffee grounds are are fairly neutral ph and are good for most plants but unwashed coffee grounds are good for acid loving plants like azaleas, rhododendrons and blueberries.
Tomatoes don’t seem to like coffee grounds. Radishes and carrots look to do well if coffee grounds are dug in when planting..