Police said the man, who is in his 30s, answered his front door at Forthriver Crescent at about 07:30 BST on Saturday.
He was beaten by another man wielding a hammer. He was attacked a second time inside the house.
The man was treated in hospital for head injuries that are not thought to be life threatening.
Police have appealed for information.
A man has been attacked with a hammer during a burglary in north Belfast.