Gregory Gordon was one of the cops caught on video grinding with women at the West Indian Day Parade.Steve White

The NYPD cop who posted racist rants on Facebook — one calling the mayor’s wife a “former crack addict” — was one of the officers caught on video dancing suggestively with semi-nude women at the West Indian Day Parade, The Post has learned.

Detective Gregory Gordon, 33, was among several officers captured in the video bumping and grinding with buxom, scantily clad dancers marching in the parade on Sept. 5, 2011, on Eastern Parkway in Crown Heights, sources said.