sudo apt-get update
sudo apt-get install mongodb-server -y
This will result in you installing a shell and server of version 2.4.10
This method allows your system to receive the latest stable version of MongoDB, but one that is deemed stable by the MongoDB team, not the Debian team. First add their key so your system recognizes mongoDBs signed packages and trusts them.