An epileptic cop is suing over her ouster — claiming she was discriminated against for her neurological disorder.

Jessica Agosto, 40, joined the NYPD in July 2001 and had an “exemplary” career until she suffered her first seizure in July 2013, according to her Manhattan Supreme Court suit.

She went on medication that fully controlled her seizures, but superiors still took her badge and gun and relegated her to desk duty, she says in court papers.

She was eventually pushed into disability retirement in 2016.

The NYPD’s medical board determined that although Agosto’s disorder was “well controlled” by medication, the condition still barred her “from performing the full duties of a New York City Police Officer.”

She is suing for reinstatement and unspecified money damages.

A city Law Department spokesman declined to comment.