2 things to try...
Replace fuel filter.
Try unplugging mass airflow sensor. The car will still run with it disconnected. The check engine lamp should come on and it may stumble a bit but with MAF disconnected the PCM uses throttle position sensor and rpm to determine the right amount of fuel. If you're able to pull more RPM with the MAF unplugged then it is likely bad.
Replace fuel filter.
Try unplugging mass airflow sensor. The car will still run with it disconnected. The check engine lamp should come on and it may stumble a bit but with MAF disconnected the PCM uses throttle position sensor and rpm to determine the right amount of fuel. If you're able to pull more RPM with the MAF unplugged then it is likely bad.