The invention provides a flexible variable-stiffness joint mechanism. The flexible variable-stiffness joint mechanism comprises an input structure and an output structure. The input structure and the output structure are connected and vertically corresponding. The input structure comprises a pair of guide rod shafts, a pair of guide rods, a pair of compression springs, a pair of spring installation seats and an input plate. The output structure comprises a pair of linear guide rail assemblies, a pair of roller sets, a pair of roller installation frames, a linear displacement sensor push rod, a pair of racks, a driven gear, a drive gear, a linear displacement sensor, an output plate, multiple bearings, multiple clamp springs and multiple bolts. The flexible variable-stiffness joint mechanism solves the problems that in the prior art, the loading capacity is poor, the stiffness adjustment range is narrow, the energy consumption of stiffness adjustment is large, the coupling performance is high, the passive stiffness performance is poor, and external connection with an air cylinder is needed.