Triptycenes (TT) scaffolds have emerged as attractive organic ligands for the synthesis of MOF electrocatalytic materials because their characteristic rigid trigonal topology interferes with close molecular packing, thus favoring the formation of open structures with significant volume available for the inclusion of guests. In this work, a novel conductive metal-organic framework based on 2, 3, 6, 7, 14, 15-hexahydroxytriptycene (Cu-HHTT) is synthesized in situ by a simple hydrothermal method. As an bifunctional electrocatalyst for efficient glucose electrooxidation and H2O2 electroreduction in alkaline and neutral electrolytes, the non-enzymatic electrochemical sensor has a sensitivity of 47200 mA μM−1 cm−2 and 5170 mA μM−1 cm−2 to glucose and H2O2 with detection limits of 0.16 μM and 0.54 μM (S/N = 3) respectively, and successfully used in the detection of actual serum, orange juice and milk samples. The method provides a new idea for the preparation and application of MOF materials based on triptycene scaffolds.