Brad Marchand also scored for the Eastern Conference-leading Bruins, who improved to 9-2-2 in their last 13 games.
Rick Nash and Ryan McDonagh scored for the Rangers, who completed a five-game road trip 3-2.
Tuukka Rask stopped 17 shots for Boston, which hasn't lost in regulation at home in its last 10 games (8-0-2).
Henrik Lundqvist made 25 saves for the Rangers, who played their first game in Boston since the Bruins eliminated them in five games in the second round of the Eastern Conference playoffs last spring.
Stay Connected
NHL.TV™
NHL GameCenter LIVE™ is now NHL.TV™.
Watch out-of-market games and replays with an all new redesigned media player, mobile and connected device apps.
Introducing the new official NHL App, available for iPhone, iPad and Android smartphones and tablets. A host of new features and improved functionality are available across all platforms, including a redesigned league-wide scoreboard, expanded news coverage, searchable video highlights, individual team experiences* and more. The new NHL App on your tablet also introduces new offerings such as 60fps video, Multitasking** and Picture-in-Picture.
*Available only for smartphones
** Available only for suported iPads