Mouldable hydrogels that flow on applied stress and rapidly self-heal are increasingly utilized as they afford minimally invasive delivery and conformal application. Here we report a new paradigm for the fabrication of self-assembled hydrogels with shear-thinning and self-healing properties employing rationally engineered polymer-nanoparticle (NP) interactions. Biopolymer derivatives are linked together by selective adsorption to NPs. The transient and reversible interactions between biopolymers and NPs enable flow under applied shear stress, followed by rapid self-healing when the stress is relaxed. We develop a physical description of polymer-NP gel formation that is utilized to design biocompatible gels for drug delivery. Owing to the hierarchical structure of the gel, both hydrophilic and hydrophobic drugs can be entrapped and delivered with differential release profiles, both in vitro and in vivo. The work introduces a facile and generalizable class of mouldable hydrogels amenable to a range of biomedical and industrial applications.