The earliest information about Mērsrags is from the 15th century, when it was a small fishing hamlet beside the Gulf of Riga.
In 1926 a narrow-gauge railway came to Mērsrags and in 1927 the port was built to satisfy the needs of fishing boats and shipping.