First thing I would advise is an oil flush and change the oil and filter as well.
This usually cures the rattle if hydraulic tappets are slightly blocked with carbon build up
Also, could be injectors rattling but this is usually somewhat quiet.
Check also it is not timing chain/belt tensioners, etc