You must file a declaration of paternity within the court in your area. A DNA test may need to be ordered to confirm paternity if the parents are not married at the time of the child's birth. For more information contact the office of vital statistics in your county or city.
Google "birth certificate MA" to get the details for Massachusetts. You will need legal documentation to prove your claim. eHow has a good article on the subject.