Your question is not clear to me. Are you asking about cost basis for MA income tax or federal tax? If your question is whether you can use the real estate taxes paid to increase your basis for federal income tax, the answer is no. But in that case I'm not sure why the fact that you owe MA tax would matter, so maybe I'm missing something here.
I think that the OP is saying that on a federal level they are at a zero capital gains rate due to being lower income, but at a state level they do owe tax (which could definitely happen in my state as well so I get that) and they were hoping to find some way to reduce the amount of state tax owed, by being able to increase basis.
I am not familiar with MA state tax law, but I suspect that it is similar to the others I am familiar with, and that they can't add the property taxes to basis in MA either. However, a local tax pro could likely answer that question for sure one way or another.