Hurrah - I found the reference
Frederick Stephens'
Fighting Knives, pp. 12-13. I quote: "German Naval Marine Artillery sidearm, pattern 1911. A scarce example of an official modification..."
The letter M probably stands for Marine, check for OS on the ricasso, they stand for Ost See (= East Sea, the Baltic). The original scabbard bear some further naval marks.