Molecularly imprinted polymer (MIP) nanofilms for alpha-fetoprotein (AFP) and the receptor binding domain (RBD) of the spike protein of SARS-CoV-2 using either a peptide (epitope-MIP) or the whole protein (protein-MIP) as the template were prepared by electropolymerization of scopoletin. Conducting atomic force microscopy revealed after template removal and electrochemical deposition of gold a larger surface density of imprinted cavities for the epitope-imprinted polymers than when using the whole protein as template. However, comparable affinities towards the respective target protein (AFP and RBD) were obtained for both types of MIPs as expressed by the KD values in the lower nanomolar range. On the other hand, while the cross reactivity of both protein-MIPs towards human serum albumin (HSA) amounts to around 50% in the saturation region, the nonspecific binding to the respective epitope-MIPs is as low as that for the non-imprinted polymer (NIP). This effect might be caused by the different sizes of the imprinted cavities. Thus, in addition to the lower costs the reduced nonspecific binding is an advantage of epitope-imprinted polymers for the recognition of proteins.