Cta

v0.2.1
io.github.pipeworx-io/cta Checked 1 day ago Published 1 month ago

CTA MCP — Chicago Transit Authority real-time trains ('L') + buses

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cta_train_arrivals

Real-time Chicago CTA 'L' train arrivals at a station — answers "when is the next train Chicago", next Red Line at Belmont, Blue Line to O'Hare from Clark/Lake. Returns each upcoming train's line color, destination, arrival time and minutes_away, plus approaching / delayed / scheduled-only flags and the platform description. Station accepts a name ("Belmont", "Clark/Lake", "O'Hare") or a 5-digit mapid (e.g. 41320). Example: cta_train_arrivals({ station: "Belmont", route: "Red" })

ParameterTypeDescription
station *stringStation name (e.g. "Belmont", "Clark/Lake", "O'Hare", "Midway") or 5-digit mapid (e.g. "41320")
_apiKeystringOptional: your own CTA credentials as "train_key:bus_key" — Train Tracker key (free at transitchicago.com/developers) + Bus Tracker key (free at ctabustracker.com)
maxnumberMax arrivals to return, 1-20 (default 8)
routestringOptional 'L' line filter: Red, Blue, Brown, Green, Orange, Purple, Pink, or Yellow (also disambiguates same-named stations)

cta_train_positions

Live Chicago CTA 'L' train positions on one or more lines — where every Red Line, Blue Line, Brown, Green, Orange, Purple, Pink, or Yellow train is right now: lat/lon, heading, next station with ETA, destination, approaching and delayed flags. Answers "where are the Blue Line trains" for the Chicago L. Example: cta_train_positions({ routes: "Red,Blue" })

ParameterTypeDescription
routes *stringComma-separated 'L' lines, full color names accepted: "Red", "Red,Blue", "Brown,Purple"
_apiKeystringOptional: your own CTA credentials as "train_key:bus_key" — Train Tracker key (free at transitchicago.com/developers) + Bus Tracker key (free at ctabustracker.com)

cta_bus_predictions

Chicago CTA bus tracker arrival predictions at a bus stop — route, destination, predicted minutes until arrival ("DUE" = arriving now), delay flag, and vehicle id. Pass stop_id (the 4-5 digit stop number posted on CTA bus-stop signs), optionally with route. If you only know the stop by name, pass route + find_stop (a street/intersection fragment like "clark & madison") and the stop is looked up for you. Example: cta_bus_predictions({ route: "22", find_stop: "addison" })

ParameterTypeDescription
_apiKeystringOptional: your own CTA credentials as "train_key:bus_key" — Train Tracker key (free at transitchicago.com/developers) + Bus Tracker key (free at ctabustracker.com)
directionstringOptional direction to narrow find_stop, e.g. "Northbound", "south"
find_stopstringStop-name fragment to look up when stop_id is unknown, e.g. "clark & madison", "michigan & randolph". Requires route.
maxnumberMax predictions to return, 1-20 (default 10)
routestringOptional bus route number to filter, e.g. "22", "66", "X49". Required when using find_stop.
stop_idstringCTA bus stop id (stpid), the number on the bus-stop sign, e.g. "1926". Comma-separable up to 10.

cta_bus_positions

Live Chicago CTA bus positions on a route — every vehicle currently running: lat/lon, heading, destination, delayed flag, and distance along the pattern. Answers "where is the 22 Clark bus right now" via the CTA bus tracker. Example: cta_bus_positions({ route: "22" })

ParameterTypeDescription
route *stringBus route number, e.g. "22", "66", "146". Comma-separable up to 10.
_apiKeystringOptional: your own CTA credentials as "train_key:bus_key" — Train Tracker key (free at transitchicago.com/developers) + Bus Tracker key (free at ctabustracker.com)