Socerb (pronounced [sɔˈtsɛːɾp] or [ˈsoːtsɛɾp]; in older sources also Sacerb, Italian: San Servolo) is a village in the City Municipality of Koper in the Littoral region of Slovenia. It lies on the border with Italy and is dominated by the ruins of , built on a rocky cliff above the village.