How can I connect a cassette player to my Macbook (Mid 2015) to record cassette tapes on my mac?

You can try this device, or something similar. It connects to the USB port on your Mac. The app Audacity will digitize the audio. I've used this device from Behringer for this exact purpose.