Ru(bpy)32 + -encapsulated cyclodextrin-based metal–organic framework as biosensor showed high stability, low detection limit, and excellent selectivity for the electrochemiluminescence determination of cytokeratin-19 fragment antigen 21–1 in A549 lung cancer cells. Here, KRT19 is linked to lung carcinoma.