I had a chance to see F1 live in Montreal, Nurburg and Budapest (Hungaroring). The last two have tracks outside and far from public so unless we talk about a race inside the city, this could be done.
If this would be in the city, the only solution would be around Boston Common:
Start on Tremont near Park Street.
Right to Stuart Street and take right to Charles St
Pass Boylston St
Left to Beacon St
Left to Arlington St
Right to Newbury St all way to Mass Ave
Right on Mass Ave
Right on Beacon St
Left on Storrow Drive
From Storrow Right to Charles Station and through Cambridge Street to finish line at Park Street.
USA has now two F1 cities next year and Montreal few hours away in June. But this will never happen. Also, our city is dead at 2am. Although it's nothing compared to Dubai.