The invention belongs to the technical field of oil field production, and specifically relates to an in-slot temporary plugging agent for fracturing and a preparation method thereof. The temporary plugging agent comprises the following components (by weight): 38 parts of hydroxypropyl cellulose, 15 parts of polyvinyl butyral, 16.5 parts of zinc oxide, 27 parts of urea-formaldehyde resin, 6 parts of hexamethylenetetramine and 14 parts of calcium hypochlorite. The preparation method comprises the following steps: uniformly mixing hydroxypropyl cellulose, polyvinyl butyral, zinc oxide, urea-formaldehyde resin, hexamethylenetetramine and calcium hypochlorite at normal temperature of 25 DEG C, and then slowly adding the mixture into water under the condition of stirring, and stirring for 30 minto obtain the in-slot temporary plugging agent for fracturing. After 2 h of waiting on cement setting in a shaft of 60 DEG C, the temporary plugging agent can withstand a pressure difference of 40.6MPa. After gel breaking, the viscosity of the gel breaking liquid is less than 5 mPa.S, and all the gel breaking liquid can be discharged to the ground through a backflow process.