How long can I contribute to the MRS or MKS?

For as long as you work in the maritime industry (your employer may stop contributing when you turn 65). After you leave the maritime industry, if you have a deferred benefit account then you can contribute for as long as you like.