No train stops at Liberty, NY. The closest railhead is Poughkeepsie (Metro-North Hudson Line from Grand Central or Penn Station via Albany connection).
Route:
Alternative: Trailways/Short Line bus from Port Authority to Monticello (~2h), then taxi to Liberty (~15 min). Similar time, often cheaper.
Liberty is in Sullivan County (Catskills)—no rail service since the O&W abandonment (1957).