could it be your timing belt/chain? An old car of mine did the exact same thing you described but it through a code for the crank sensor though....just throwing that out there.
But since its for the maf...try cleaning it. Im doing this tomorrow actually, all you do is get some CRC cleaner from an auto store, take your MAF out and spray it down till it dries and then re install.
Another suggestion would be if you know someone with the same engine as you, hence same MAF sensor, trade MAF sensors. If the problem goes away then BAM...you know its the MAF.
This is a dumb question i know, but have you done any intake work lately? make sure the connector is plugged in haha
hope this helps
But i am more then fairly positively certain this has to do with your MAF sensor...if its a 3.0 let me know...ive got a MAF sensor lying around that ill be more then happy to sell for cheap to you.
oooo i just thought of this too, while your doing this...clean your IAC.
2001 Ford Ranger Edge 4x2 3.oooooh
Flowmaster Custom Catback Exhaust
K&N FIPK II Intake
Jet Chips Programmer
Unique 297 Rims Path Finder All Terrain Tires
'05 60/40 Bench Seats
More to come....i hope...