Install
openclaw skills install mbta-transitProvides real-time MBTA transit info including next departures, service alerts, live vehicle locations, stop searches, and route listings for Boston-area tra...
openclaw skills install mbta-transitQuery real-time MBTA (Massachusetts Bay Transportation Authority) transit data: next departures, service alerts, and live vehicle positions for subway, bus, commuter rail, and ferry.
| Variable | Required | Description |
|---|---|---|
MBTA_API_KEY | Optional | Higher rate limits (1000 req/min vs 20). Free at https://api-v3.mbta.com/ |
scripts/mbta.pystops <search_term> — Find stops by namepython3 scripts/mbta.py stops "South Station"
python3 scripts/mbta.py stops "Harvard"
python3 scripts/mbta.py stops "Kenmore"
Returns: Stop IDs, names, platform info, city.
departures <stop_id_or_name> [limit] — Next departurespython3 scripts/mbta.py departures place-sstat 10
python3 scripts/mbta.py departures "Back Bay" 5
python3 scripts/mbta.py departures place-north
Returns: Departure times, route names, destinations.
alerts [--stop <id>] [--route <id>] — Active service alertspython3 scripts/mbta.py alerts --route Red
python3 scripts/mbta.py alerts --stop place-sstat
python3 scripts/mbta.py alerts --route Orange --stop place-dwnxg
python3 scripts/mbta.py alerts # all active alerts
Returns: Alert header, effect type, severity, description, last updated.
vehicles <route_id> — Live vehicle positionspython3 scripts/mbta.py vehicles Red
python3 scripts/mbta.py vehicles Orange
python3 scripts/mbta.py vehicles "Green-D"
python3 scripts/mbta.py vehicles 1 # Route 1 bus
Returns: Vehicle label, current stop/status, heading, occupancy, last update time.
routes [--type <0-4>] — List routespython3 scripts/mbta.py routes
python3 scripts/mbta.py routes --type 1 # Subway/Heavy Rail
python3 scripts/mbta.py routes --type 2 # Commuter Rail
python3 scripts/mbta.py routes --type 3 # Bus
Route types: 0=Light Rail, 1=Heavy Rail, 2=Commuter Rail, 3=Bus, 4=Ferry
"When's the next Red Line train from South Station?"
→ departures place-sstat 5 (filter mentally to Red Line)
"Are there any delays on the Orange Line?"
→ alerts --route Orange
"What's the next commuter rail departure from Back Bay?"
→ departures place-bbsta 10
"Where are the Green Line D trains right now?"
→ vehicles Green-D
"Find the stop ID for Kenmore Station"
→ stops Kenmore
"Any service alerts near Downtown Crossing?"
→ alerts --stop place-dwnxg
"How crowded is the Blue Line?"
→ vehicles Blue (shows occupancy when available)
| Station | Stop ID |
|---|---|
| South Station | place-sstat |
| North Station | place-north |
| Back Bay | place-bbsta |
| Downtown Crossing | place-dwnxg |
| Park Street | place-pktrm |
| Harvard | place-harsq |
| Kendall/MIT | place-knncl |
| Alewife | place-alfcl |
| Airport | place-aport |
| Kenmore | place-kencl |
| Copley | place-coecl |
| Boylston | place-boyls |
| Route | ID |
|---|---|
| Red Line | Red |
| Orange Line | Orange |
| Blue Line | Blue |
| Green-B/C/D/E | Green-B, Green-C, Green-D, Green-E |
| Silver Line 1 | 741 |
| Silver Line 2 | 742 |
stops "Name"place-sstat) cover all platforms — use these for departuresBack BaySee references/API.md for full MBTA V3 API documentation, including all filter parameters, response formats, and complete lists of stop/route IDs.