Although covalent organic frameworks (COFs) have received extensive attention for biomedical research due to their unique properties, their application is still hindered by the challenges of incorporating COFs with functional biomolecules. Since peptides have shown advantages in biomedical applications, herein, we propose the functionalization of COFs with peptides by a polymer-assisted surface modification strategy. Furthermore, a method based on the peptide-functionalized COFs for protein detection has also been developed to demonstrate their application potential. With the help of the polymers, peptides and horseradish peroxidase are attached onto COFs with a high surface density, and the developed method has achieved simple and sensitive detection of the secreted protein acidic and rich in cysteine. We speculate that the facile method proposed in this work to prepare peptide-functionalized COFs can not only benefit protein detection but also promote more biomedical applications of COFs.