VERACRUZ, Mexico -- Tropical Storm Barry formed off Mexico's Gulf Coast on Wednesday, prompting Mexican authorities to ready hundreds of shelters.

The U.S. National Hurricane Center in Miami said the Atlantic hurricane season's second tropical storm was drenching areas in its path with up to 10 inches of rain in some places, raising the threat of flash floods.

In early evening, Barry was about 85 kilometres east of Veracruz, Mexico, and was expected to make landfall near that port city Thursday morning.

The centre predicted Barry would strengthen slightly before making landfall but said it would weaken soon after.

Veracruz state Civil Protection Secretary Noemi Guzman said 2,000 shelters had been readied in the state with mattresses, blankets, water and canned food. She said the shelters at schools and recreation centres could house up to 306,000 people.

The port of Veracruz was closed to small vessels because of the strong winds, Guzman said.

The storm had maximum sustained winds of 75 kph. It formed as a depression off the coast of Belize on Monday and began moving north.

A tropical storm warning was in effect on the Mexican coast from Punta El Lagarto to Tuxpan, in Veracruz state.