A neo-Nazi plotted to murder Labour MP Rosie Cooper on behalf of the banned extremist right wing group National Action, a court has heard.
Jack Renshaw, 23, bought a machete, carried out research online and revealed his plan at a meeting in a Warrington pub in July 2017.
He wanted to kill Ms Cooper for National Action and "white Jihad" while taking revenge on Lancashire Police, who he believed was persecuting him, jurors were told.
The plot was foiled by a whistle-blower who reported the danger to Hope Not Hate, an organisation set up to combat right-wing political racism, the Old Bailey heard.
Renshaw of Skelmersdale, Lancashire, has admitted preparing an act of terrorism but has denied being a member of National Action after it was banned in December 2016.
He is on trial at the Old Bailey alongside Andrew Clarke, 34, and Michal Trubini, 36, from Warrington, who also deny membership of the proscribed organisation.
Opening their trial, Duncan Atkinson QC told jurors:
An important part of the evidence concerned the plan devised by Renshaw to engage in "politically motivated violence of the most serious kind", he said.
Mr Atkinson said:
Convicted National Action leader Christopher Lythgoe, 32, and his close associate Matthew Hankinson, 24, were present at the Friar Penketh pub along with the defendant Clarke when Renshaw outlined his plan, yet none of them tried to talk him out of it, he said.
The other defendant, Trubini, had been at the pub beforehand but left before Renshaw arrived, the court heard.
Mr Atkinson told jurors how National Action had been engaged in a "campaign of virulently racist, anti-Semitic and homophobic propaganda" aimed at starting a "race war" since 2013.
It actively sought to recruit and radicalise young people through violent imagery and hate-filled language on social media and in provocative demonstrations, he said.
It was banned over its support for the murder of Batley MP Jo Cox in June 2016.
But Mr Atkinson said the defendants continued as active members after proscription in December 2016 and their arrest in September 2017.
The evidence against them included material found at their homes and on their computers and mobile phones and communication between them.
Disenchanted former member Robbie Mullen also passed information to Hope Not Hate, jurors heard.
Before the ban, the defendants would regularly meet at the Friar Penketh pub and train for their "race war" at a gym, jurors heard.
As the ban approached in December 2016, Lythgoe sent an email saying: "We are just shedding one skin for another", the court was told.
Mr Atkinson told jurors:
Mr Atkinson said the catalyst for Renshaw's murder plot was linked to his arrest in January 2017 for stirring up racial hatred in speeches in Blackpool and Yorkshire.
An analysis of his phone revealed what police considered to be evidence of child grooming and he was arrested again in May, jurors were told.
On July 1 2017, he complained about the police investigation during the meeting at the Friar Penketh pub, according to Mr Mullen's account.
Renshaw allegedly said police were trying to destroy his life and if he was charged, he would kill his local MP, Ms Cooper.
His plan involved taking hostages and demanding to speak to the officer who he had been dealing with over the investigation so he could kill her too, it was claimed.
Afterwards, he said he would commit "suicide by cop", the court heard.
Mr Atkinson said a machete was found at an address where Renshaw was staying and Google searches included the phrase "how long to die after jugular cut".