See what your EGR is doing at idle. This strikes me as a vacuum leak, though, so check all your connections.

Also, try unplugging the MAF and seeing if it runs better.