The ClipOn Lens Cap Holder
Free     Thingiverse     DotScott1

The Clip-On Lens Cap Holder

UPDATE Added models with a thicker clamp on the back so it should be less likely to break ...

similar models —

The Clip-On Lens Cap Holder alternatives
lens cap holder
ta_note
GoPro lens cap
marsuch