Could be a number of things, but I had the same problem on my car. Turns out that my fuel pressure regulator was going south. Try checking your fuel pump first (change the filter while you're at it), then go downstream to the fuel relay, etc. Hope its something simple.
91 Supercharged Miata
99 E320 Wagon