The LHCb experiment has the unique property to study heavy-ion interactions in the forward region (2 < $\eta$ < 5), in a kinematic
region complementary to the general purpose detectors. The detector has excellent capabilities for reconstructing quarkonia and open charm states, including baryons, down to zero $p_T$. Notably, it can separate the prompt and displaced charm components. In pPb collisions, both forward and backward rapidities are covered thanks to the possibility of beam reversal. Results include measurements of the nuclear modification factor and forward-backward ratio for charmonia, open charm and bottomonia states. These quantities are sensitive probes for cold nuclear matter effects in heavy flavour producton. In 2015, LHCb also participated successfully for the first time in the Pb-Pb data-taking. The status of the forward prompt J/$\psi$ nuclear modification factor measurement for up to semi-central lead-lead collisions will be shown.