An accused Brooklyn serial killer was barred Wednesday from attending his own trial after he once again showed up to court muttering like a nut.

Judge Alan Marrus said suspect Salvatore Perrone could not be counted on to keep his mouth shut during proceedings — and likely had an ulterior motive for his antices.

“He has clearly embarked on a strategy to try and declare a mistrial,” Marrus declared after Perrone was escorted out, screaming that his court-appointed attorney was “inadequate.”

“This is a sham!” Perrone could be heard bellowing through the walls.

“He has called his attorney a prostitute and a dumb dumb,” Marrus said. “I also want to express my concern that he could be dangerous to Mr Kirsh.”

“He will remain out of the courtroom during the trial,” he decided.