The average cost of a gallon of gasoline in Massachusetts has jumped 3 cents in the past week.

It's the first price increase since early May.

AAA Northeast  says the increase to an average of $2.67 for a gallon of self-serve, regular was driven by higher crude oil prices as well as increased demand, a shrinking supply, and the closure of a major refinery in Philadelphia.

The current price is 4 cents lower than the national average and 17 cents lower than the Massachusetts per-gallon average a year ago.