How BikeTheRail works
Rail-trails are the easiest long rides in America: flat, car-free, and often linked town to town. Finding reliable information about them is harder than riding them. BikeTheRail gathers every rail-trail it can find into one open dataset and keeps it current without a paywall.
What the labels mean
A rail-trail runs on a former railway. A trolley trail follows an old streetcar or interurban line. A canal towpath is the path mules once used beside a canal; many are flat and bike-friendly, so they are included and labeled. A greenway is an honorary member: a car-free path with good riding that isn't on a railbed.
Trail pages show a closure only when a managing agency or a checked source reports one; otherwise the trail is assumed open as mapped.
Contact
Corrections, questions, and notes from trail groups and land managers all go through the contact form; a person reads every message.
Support
Trail-town businesses and tourism offices can sponsor the pages for their trails; placements are always labeled and never change the data. Get in touch.
Use the data
Every trail page offers GPX and GeoJSON downloads, and the whole index is at /data/index.json. It is licensed under the Open Database License, like OpenStreetMap: use it freely, credit BikeTheRail and OpenStreetMap contributors, and share improvements under the same license. The terms of use spell out attribution, and the privacy policy explains what the site collects.
Use BikeTheRail in your AI assistant
AI assistants can look up trails here directly: search by name, find trails near a place, and read a trail's facts, trailheads, current closures and sources, with a link back to its page. It is a free, read-only Model Context Protocol server; no account or key is needed. Every result carries the credit line and the link to the trail's page.
https://biketherail.org/mcp
Claude
Open Customize, then Connectors, and click Add custom connector. Paste the address and, if asked, choose No sign-in. Turn it on for a chat from the + menu under Connectors.
Claude Code: claude mcp add --transport http biketherail https://biketherail.org/mcp
ChatGPT
On the web, open Plugins, select the plus button, then Add custom MCP server. Enter the address, choose No authentication, accept the warning and select Create as a plugin. In a new chat, type @ and pick BikeTheRail. Whether you can add custom servers depends on your ChatGPT plan.
Cursor, VS Code and Codex
Add to Cursor · Add to VS Code
Codex: codex mcp add biketherail --url https://biketherail.org/mcp
Try asking: "Find a paved rail-trail within 30 miles of Pittsburgh that is at least 20 miles long", "Has the Badger State Trail posted any closures?" or "Which Pennsylvania trails have closures right now?"
The tools are search_trails, get_trail, trails_near and list_closures. A closure is listed only when a managing agency or trail group has posted one, so no closure listed means none reported: check with the trail manager before you ride. The terms cover using the server, and the privacy policy says what it receives. Problems or ideas: the contact form.