Clean the IAC and MAF.
If that doesn't solve the problem, check the voltage to the coil pack, if it's getting power then you're fine, if not replace it. Replace the spark plugs & wires. The fuel filter may be bad. The fuel pump may be going bad. And those are usually the essentials of a rough idle.