In moderation, coffee can be part of an anti-inflammatory diet, but excessive consumption may have mixed effects.