A bimodal molecular imaging probe based on chitosan encapsulated magneto-fluorescent nanocomposite offers biocompatibility, visualization of specific cancer cells in vitro and lung tissues in vivo.