A GOP political action committee put up a hard-hitting TV ad Friday attacking what it called “offensive and sexist” lyrics of a former rapper turned Democratic candidate for Congress in the Hudson Valley region.

“Meet New York City liberal Antonio Delgado. Before moving upstate to run for Congress as [House Democratic leader] Pelosi’s candidate, Delgado was an L.A. rapper called AD the Voice,” said the ad paid by the Congressional Leadership.

It then bleeped out provocative lyrics about having sex to a porno flick.

The ad also claimed that Delgado “laced his lyrics with extremist attacks on American values,” criticized American presidents and “minimized 9/11” as footage of the burning World Trade Center towers appeared on the screen.

Delgado is a Schenectady native, Rhodes scholar and Harvard Law school graduate who became a lawyer following his rap career.

He is mounting a strong challenge against GOP incumbent John Faso in the 19th congressional district.

Republican sources told The Post they’re concerned about losing the seat because Delgado has emerged as a formidable candidate and prodigious fundraiser while Faso is running a lackluster campaign.

The Post reported on Delgado’s rap background last month.

He complained at the time that that lyrics from his rap days are being twisted and taken out of context.

Delgado defended his provocative lyrics last month when The Post first contacted him about his rap career.

“This is a willful and selective misreading of my work for political purposes. My music defies the same stereotypical notions that led you and whoever chose to share this music with you to immediately hear certain words and think they are bad or scary. If you listen to the content of the lyrics my mission is clear,” he said.