A Segway tour operator that’s repeatedly run afoul of the city and racked up $200,000 in fines has filed for Chapter 11 bankruptcy protection.

Boston by Segway wants to remain at its North End location, even as the city has said it must move by Dec. 31. It is seeking a “fair shake” from the city and its landlord, according to company officer Allan Danley.

“The bankruptcy … is definitely not just the money,” he said. “We are a profitable business.”

Segway by Boston objects to a 2011 city ordinance that regulates Segways under the enforcement of the Transportation Department and Boston Police Department’s Hackney Division. Those regulations, which confine Segways to public streets, are restrictive and discriminatory, Danley said.

“My intent was not to put him out of business,” said City Councilor Salvatore LaMattina, who filed the ordinance. “My intent was for him to follow the laws. We just did not want them to use the sidewalks.

Segway by Boston (formerly Boston Gliders) has been fined $200,000 in two years — 400 tickets at $500 each — for violations including operating Segways on sidewalks and driveways and exceeding maximum tour sizes, Danley said. The city is its largest creditor. An initial bankruptcy filing lists $309,000-plus in debt.

A U.S. District Court judge last year dismissed its lawsuit against the city and the Rose Fitzgerald Kennedy Greenway Conservancy over the ordinance and access to public space.

In March, the Board of Appeal denied a variance to Segway by Boston’s landlord to allow the company to occupy the former gas station used as its headquarters since 2011.

A Suffolk Superior Court suit filed in May against the city is pending, but a judge declined to temporarily halt enforcement of the city ordinance in June. The ruling noted Segway by Boston had operated without approved routes and licenses until April, when police shut it down for 60 days.”