Does it happen all the time? Or only when the engine gets warmed up?
If it only happens when the engine is warmed up, it could be the o2 sensor. It will cause that exact problem. If the sensor is reading lean once the engine gets warmed up (switches to closed loop operation) it will richen it up even though it's not necessary, causing a rough running condition, an idle surge, or even a stall.
__________________
|