This work describes the grafting of a molecularly imprinted polymer (MIP) film by combining diazonium surface chemistry and surface-initiated photopolymerization. The MIP grafts specifically and selectively recognize quercetin in pure solution in THF and in real green tea infusion.