A protein that transports specific substances across a biological membrane.