A MP5 can be legally owned, with a few caveats:
* It must have been manufactured and registered with the ATF as a machine gun prior to 1986. Guns meeting this criteria are fairly rare and very expensive. I don't know the price for a registered MP5, but I would guess > $20000.
* You must apply for and receive a special approval to purchase a machine gun.
* You must apply for and receive a special approval to purchase a SBR.
However, a variety of companies make semi-auto (one trigger pull = one bullet) MP5 clones that can be purchased more easily. Clones are sometimes built with an extended barrel so they are not considered a SBR and can be treated like any normal rifle. A common strategy is to hide the extra barrel beneath a fake non-functional suppressor [1]. Alternatively some are made as SBRs for people who are willing to get the SBR approval.
[0]: http://discovermilitary.com/wp-content/uploads/2010/02/mp5.j...