Cops arrested a parolee who allegedly opened fire on officers in Queens while he ran from a traffic stop over the weekend — and found a “slew” of bullets in his home, police and sources said Tuesday.

Willie Smith, 40, on Monday was hit with charges including three counts of attempted murder and criminal possession of a weapon, according to police and city records.

Cops later searched Smith’s house on 171st Street in Jamaica and found an illegal firearm magazine and a “slew of bullets,” specifically .45-caliber, a source said.

The ex-con was riding in a blue mini-van when cops pulled the driver over near the intersection of Sayres Avenue and 175th Street, police said.

Smith allegedly jumped out of the van from the passenger side, fired off three shots at cops, hitting no one, and ran, police said.

The driver, Robert West, 38, stayed on scene and was charged with reckless endangerment and obstructing governmental administration.

Records show Smith has a length rap sheet with three stints in prison. He was released on parole in 2017 from prison where he was serving a four-year sentence on a weapons convictions.