The 2D nanostructure provided by MXene are favorable for entrapped enzymes to retain their bioactivities and to facilitate the transport of enzymatic substances and products, and the porous structure of composite film (Tyr-MXene-Chifilm) improved the effective surface area of the modified electrode, leading to improved performance of fabricated biosensor.