Mcmaster Carr has some that may work if you can't find them locally.
the longest I could find were 2.75" long.
try part #91292A316
FYI, there are (2) possible thread pitches in M3 threads.
The part I noted above is an M3-0.5 thread. the other possibility would be a M3-.35 thread, which...