While I personally have used mjpg-streamer for some other projects, I've never used it to serve images from opencv. my preferred method has been
this copy pasted and cut up to be used as it's own module. Might be interesting to see if there are any performance differences between doing it yourself and going through mjpg-streamer.