Do I have to attend court for an uncontested divorce?

It will depend on your specific case. If there are children, then yes at least you or your spouse will be required to go to a final hearing. If you do not have children, then depending on what court your case is in will determine the need for you to attend the final hearing.