No, SCTE-35 does not work with mp4, but does work with mp4 hls or dash.
https://github.com/futzu/threefive does scte35 insertion for mpegts, hls, and dash.
tsduck is great software as well, I have a lot of respect for it.
Those are the only two packages I would use for SCTE-35.