First things to do are:
Clean your throttle body.
Clean up any contacts on earth wires.
Check your spark plugs. (note the condition)
Give it a general service.
They are free/cheap, and give a good indication of the running of the engine.
Disconnecting the MAF and having it run better, means that something is screwing with the fuelling map on the ecu. It sounds as though it's running rich. Unplugging the MAF switches to a safe default fuelling map. Which would cure this.
My guess would be a boost leak, or lambda sensor.