Manhattan Democratic Assemblyman Denny Farrell on Friday endorsed congressional hopeful and fellow Assembly lawmaker Keith Wright, who is seeking to replace longtime Rep. Charlie Rangel in a crowded Democratic primary.

“Keith Wright has been an essential voice for central Harlem for decades. His dogged advocacy and leadership is palpable throughout the community, and his partnership here in upper Manhattan and in the New York State Assembly has been invaluable,” Farrell said in a statement. “It is with great confidence and excitement that I support my friend, neighbor and long-time colleague to continue the legacy of inclusion and representation for Harlem residents in US Congress.”

Farrell’s endorsement of Wright coincides a day before state Sen. Bill Perkins announces his House campaign for the Harlem-based district on Saturday. Farrell is also a former top lieutenant to ex-Assembly Speaker Sheldon Silver.

Both Farrell and Wright were potential replacements for Silver, who stepped down from post last year after he was arrested on corruption charges.

Instead, Wright quickly endorsed Bronx Assemblyman Carl Heastie — then the county Democratic chairman — virtually the same day he announced his run for speaker.

The endorsement roll out of Farrell, the chairman of the Assembly’s powerful Ways and Means Committee, was coupled with the backing of Councilwoman Inez Dickens, Harlem clergy members and the support from former Gov. David Paterson.

“Many pursue elected office as a life’s work, but few embrace public service as a life’s passion,” said Paterson, who is stepping down from the Democratic Committee’s chairmanship at the end of the month. “My dear friend Keith Wright is one of those few. I’ve served this community in many capacities, and I am fully confident that Keith has the expertise and compassion necessary to govern the tough issues. Keith’s candidacy for Congress is the correct next step in what has been a long life of selfless and exemplary commitment to serving others.”