Mbta Departures
mbta_departuresReal-time MBTA train arrival and departure predictions at a Boston station — answers "when is the next train Boston", next Red Line subway at South Station, Green Line trolley, commuter rail departures, Silver Line and bus arrivals. Accepts a station name ("South Station", "Harvard") or a place id ("place-sstat"). Falls back to the published schedule when live predictions are empty (common for commuter rail off-peak). Example: mbta_departures({ stop: "South Station", route: "Red" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | Yes | Station name (e.g. "South Station", "Harvard", "Back Bay") or MBTA place id (e.g. "place-sstat") | |
| limit | No | Max departures to return, 1-30 (default 8) | |
| route | No | Optional route id to filter, e.g. "Red", "Green-B", "CR-Providence", "SL1", "66" (see mbta_routes) | |
| _apiKey | No | Optional: free MBTA v3 API key from api-v3.mbta.com for higher rate limits | |
| direction_id | No | Optional direction filter: 0 or 1 (meaning per route — see direction_destinations from mbta_routes) |