https://www.goport.com/mco-to-port-canaveral-shuttle/ is one of the shuttle services that are available from the airport. The fare is $29.99 each way. The site also includes packages for hotels and transfer packages.
There are other services for transfers to hotels and Port Canaveral. If you are coming from out of town, it is best to stay near the airport and then take a shuttle. Some of the hotels have shuttles that are included in your stay.