The amp I have has an MSDI/XLR output and I want to be able to record with it. Looking around on other forums hasn't really helped me find a good answer.

What exactly do I need to buy so I can record the signal from that output while still hearing the output from the amp's built in speaker? Is is as simple as buying an XLR to USB cable or do I need some kind of interface to plug it into before the signal goes to my laptop?

You need a recording interface such as a Presonus Audiobox USB. However, once you buy that, I think you'll find that a mic sounds 1000X better. I tried the MSDI briefly with mine and it sounded like utter dog sh!t.
Atmospheric dark metal w/ black and death metal influences:
(My Soundcloud page):

Pestilential Flood
You need to go to the Recordings Forum and read the Interfaces sticky.
Gibson LP Traditional, LP GT, LP Studio, SG Standard x2
Barber Tone Press > EHX Worm >TC Polytune > MXR Custom Badass 78 > EXH Glove > EHX East River Drive > Zoom G3 > TC Spark Mini Booster
Laney VC30
Marshall TSL602
Jet City JCA22H
My SoundCloud
Quote by GaryBillington
You need to go to the Recordings Forum and read the Interfaces sticky.

Oh ok, I will do. Thanks.
Also to use the Line in to record I'd recommend using a Cab impulse and a Cab Loader in order to use the impulse.

Sounds 100X better.
Bass Gear:

Mensinger: Speesy
Fender Precision 1989 (CIJ Rosewood)
Fender Steve Harris (CIJ)
Lakland J Sonic 5
Epiphone Explorer
Maruszczyk (custom) Jake

Ashdown CTM 100