MXenes is a new two-dimensional material with good electrical conductivity and high theoretical pseudocapacitance, which is widely used in various energy storage devices. Heterogeneous atom doping is one of the effective strategies to adjust the properties of MXenes and improve its electrochemical performance. In this work, a facile and cost-effective KTPP (potassium tripolyphosphate, phosphorus source) assistance strategy is demonstrated to dope Ti3C2Tx MXene with phosphorus atoms by heat treatment. The results show that the phosphorus doping level reached 1.25 at.%. As expected, the specific capacitance of the phosphate-doped Ti3C2Tx electrode is 365.1 F g−1 at the scanning rate of 10 mV s−1, which is twice that of the pristine Ti3C2Tx (183.1 F g−1). Besides, the flexible supercapacitor device assembled with Ti3C2Tx-P-300°C-3h sample has a high energy density of 10.76 Wh kg−1 at 483.03 W kg−1 power density and the capacitance retention rate is 84.51 % after 5000 cycles at the current density of 1 A g−1. With bent at different angles (0°, 60°, 90°, 120°), the specific capacitance values of flexible supercapacitor devices have not changed significantly, and the capacitance retention rate reached 90.09 %. The reason for the enhanced electrochemical performance is that the phosphorus doping can increase the active sites of Ti3C2Tx, bring PO bonds that enhance activity, optimize the redox reaction process, and accelerate the ion transport rate. Therefore, a simple and effective method to improve the electrochemical performance of Ti3C2Tx MXene is proposed in this work.