Apple Pencil ClipHolder
Free     Myminifactory     paulorfo

Apple Pencil Clip/Holder

The idea is simple just print it out and glue a magnet inside the hole I uploaded the f3d file Fusion360 because there are several models of pencil like this Besides that you dont need to use the same magnet size and shape as I did ...

similar models —

Apple Pencil Clip/Holder alternatives
Apple Pencil Case  Holder
AlcatrazSkywalker
Apple pencil holder
RevisonNr3