ttc-mcp
You can ask natural-language questions about Toronto's transit network and get timetable-exact, live, and disruption-aware answers from 19 MCP tools.
Plan trips:
connectionsgives timetable-exact journeys between stops, stations, or coordinates, with Pareto-ranked options across arrival time and transfers, live trip updates, and closure/detour handling (including estimated shuttle legs).Find stops and stations:
find_stops,nearest_stops,stop, andstationresolve names, aliases, stop numbers, or coordinates, with routes, directions, headsigns, platforms, entrances, and accessibility flags.Get live arrivals:
arrivalsfor next buses/streetcars (BusTime predictions plus crowding) andnext_trainsfor every rail platform at a station, with realtime-vs-schedule basis and closure awareness.See vehicles:
vehiclesshows live positions, bearing, speed, current stop, and crowding for buses and streetcars (rail lines excluded).Check disruptions:
alerts,service_status(the first call for "what's going on"),detours(skipped stops, paths, reasons), andservice_changes(board-period route changes).Explore routes and timetables:
routes,route_stops,service_hours,scheduled_departures, androute_shape(polyline/GeoJSON geometry with stops and distances).Check accessibility:
accessibilityreports platform/entrance flags, live elevator and escalator status, and a step-free verdict with its reason.Monitor data freshness:
feed_statusreports each source's age, cache state, and errors, optionally probing live.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ttc-mcp When's the next 504 streetcar at King and Spadina?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Live answers about Toronto's transit network, for Claude and other MCP clients.
ttc-mcp is a Model Context Protocol server for the Toronto Transit Commission (TTC). It lets an assistant answer the questions riders ask: when the next streetcar comes, whether a subway line is closed and where the shuttle buses run, how to get across town by a given time and around a closure, whether a station is step-free today. It reads the TTC's timetables and live feeds when you ask, says how fresh each answer is, and attaches service disruptions to every answer they touch.
It is an independent, single-user project, not affiliated with or endorsed by the TTC or the City of Toronto.
Contents
Related MCP server: Public Transport Belgium MCP
What you can ask
You ask in plain language and the client picks the tools. Some examples:
Ask | Tools | What comes back |
How do I get from Spadina to Pape? |
| Trips with exact times on every leg, and the disruptions on the way |
I'm at the Distillery District. How do I get to Union? | a maps tool to geocode, then | The same, starting from the place's coordinates |
I have to be at Union by 9. When do I leave Kipling? |
| The latest trips that still arrive in time, each with its exact times |
When's the next 504 at King and Spadina? |
| Predicted minutes with crowding, or timetable minutes and a note when nothing is predicted |
When's the next train at Bloor-Yonge? |
| Minutes for every platform, by line and direction |
Is anything wrong on the subway? |
| Closures with their hours and shuttles, reduced speed zones, suspended or detoured surface routes, elevators and escalators out of service |
Is Queen station step-free right now? |
| Platform and entrance flags, each elevator's live status, and a yes, no or unknown verdict with its reason |
Why is my bus skipping my stop? |
| The skipped stops, where the bus leaves and rejoins its route, the detour's path and the TTC's reason when it gives one |
Where are the 505 streetcars? |
| Positions, bearing, speed, current stop and crowding |
Does the 300 Blue Night run tonight, and when is the last bus? |
| Whether it runs that day, and its first and last trips |
What leaves stop 15461 after 6 pm? |
| Timetable departures, including trips that run past midnight |
Show me the 7 Bathurst on a map. |
| The route's line as an encoded polyline or GeoJSON, with its stops |
What's changing on the 501 this board period? |
| The TTC's route changes for the period, with their dates |
Is the transit data up to date? |
| Each source's age, cache state and failures, and the timetable's dates |
The server doesn't turn addresses into coordinates. Pair it with a maps MCP server, such as Google Maps, and the client geocodes first; connections and nearest_stops take {lat, lon}. The server's instructions tell the client to start trip questions with connections and "what's going on" questions with service_status.
An answer during a closure
On Monday 12 October 2026, Line 2 had no service between St George and Broadview from 06:00 to 15:00 for structural maintenance, with shuttle buses running. Asked for the next trains at St George at 13:24, the server answered (abridged: keys removed, values unchanged):
{
"station": {"id": "43269", "name": "St George"},
"platforms": [
{"platform": "13855", "line": "2", "direction_text": "Westbound to Kipling",
"next_min": [0], "basis": "realtime", "service": "normal"},
{"platform": "13856", "line": "2", "direction_text": "Eastbound to Kennedy",
"next_min": [], "ntas_min": [2, 6, 13], "service": "suspended",
"note": "NTAS keeps publishing predictions inside a closure; this platform is suspended"},
{"platform": "13857", "line": "1", "direction_text": "Southbound to Finch via Union",
"next_min": [2, 5, 10], "basis": "realtime", "service": "normal"},
{"platform": "13858", "line": "1", "direction_text": "Northbound to Vaughan Metropolitan Centre",
"next_min": [6, 8, 10], "basis": "realtime", "service": "normal"}
],
"disruptions": [
{"type": "closure", "alert_id": "77820", "span": ["St George", "Broadview"], "active_now": true,
"period": ["2026-10-12T06:00-04:00", "2026-10-12T15:00-04:00"], "shuttle": "Running",
"role": "shuttle_terminus",
"text": "Line 2 Bloor-Danforth: No service between St George and Broadview stations due to structural maintenance. Shuttle buses are running."}
],
"meta": {"source": "ntas", "fetched_at": "2026-10-12T13:24:52-04:00", "cache": "live",
"staleness": "fresh", "static_feed": "S1000542",
"advisories": {"cache": "live", "staleness": "fresh", "errors": null}}
}Three things to notice:
The TTC's train-prediction service (NTAS) was still predicting eastbound trains in 2, 6 and 13 minutes. The closure decides instead: the platform is
suspended,next_minis empty, and NTAS's numbers stay visible asntas_min.St George is the end of the closure, so the westbound platform, facing the open part of the line, kept real predictions. The closure is tagged
shuttle_terminus: this is where the shuttle buses start.metasays the predictions were fetched live and are fresh, and that the disruption feeds answered.
connections plans across a closure on the shuttle buses, with the shuttle leg's minutes marked as an estimate; docs/degraded-service.md walks through a trip from Finch to Union across a nightly Line 1 closure.
Running it
What you need
uv, which installs Python 3.14 for you.
About 450 MB of disk: each timetable is a 139 MB SQLite file, two of them during a board-period changeover, plus the 170 MB of GTFS zips the last build downloaded. Ended timetables stay on disk after a build drops them from
manifest.json; delete thosestatic-*.sqlitefiles by hand.About 70 MB of memory for each loaded timetable's trip planner index, on top of the server itself.
Network access to the City of Toronto's open data portal, to build the timetable, and to the TTC's servers, for live answers.
Locally, with Claude Code or Claude Desktop
git clone https://github.com/LunaParker/ttc-mcp.git
cd ttc-mcp
uv sync
uv run ttc-mcp-buildThe build downloads the TTC's GTFS from the City's portal and builds the timetable into ~/.cache/ttc-mcp, in about a minute on a fast connection. Then add the server to your client.
Claude Code, for every project (--scope user) or only the current one (the default):
claude mcp add --scope user ttc -- uv run --project /absolute/path/to/ttc-mcp ttc-mcp --transport stdioClaude Desktop, in claude_desktop_config.json (on macOS in ~/Library/Application Support/Claude/, on Windows in %APPDATA%\Claude\). Give the full path to uv (from which uv, or where uv on Windows), because the desktop app usually doesn't see your shell's PATH:
{
"mcpServers": {
"ttc": {
"command": "/absolute/path/to/uv",
"args": ["run", "--project", "/absolute/path/to/ttc-mcp", "ttc-mcp", "--transport", "stdio"]
}
}
}A local stdio server checks the City's portal when it starts, builds a new timetable first if the TTC has published one (the start waits for it), and checks again every 24 hours while it runs. Building before you connect, as above, keeps the first start quick; if your client gives up waiting on the day a new timetable appears, run uv run ttc-mcp-build in a terminal and reconnect. Add --no-refresh to the arguments to skip the check, for example offline.
Locally, over HTTP
uv run ttc-mcp --transport http --host 127.0.0.1The server runs in the foreground. Then, in another terminal:
claude mcp add --transport http ttc http://127.0.0.1:8080/mcpThe server speaks streamable HTTP at /mcp with stateless JSON responses. Like the stdio server it checks the City's portal when it starts, but it doesn't recheck; run uv run ttc-mcp-build to refresh the timetable, and the running server picks it up on its next request. Without Google sign-in configured it is open to anyone who can reach it, and it says so when it starts: --host 127.0.0.1 keeps it on your machine, while the default, 0.0.0.0, listens on every network interface.
Docker
The image is the one Cloud Run runs, and building it needs Docker with BuildKit (the default since Docker 23). It serves HTTP on port 8080 and keeps its timetable in /data, so give it a volume and build the timetable into it first:
docker build -t ttc-mcp .
docker volume create ttc-mcp-data
docker run --rm -v ttc-mcp-data:/data ttc-mcp /app/.venv/bin/ttc-mcp-build
docker run --rm -p 127.0.0.1:8080:8080 -v ttc-mcp-data:/data ttc-mcpThe server is then at http://127.0.0.1:8080/mcp. The container never checks the City's portal by itself: run the build command again to refresh the timetable (it does nothing when the TTC hasn't published a new one), and the running server picks the new one up on its next request. Call the installed commands under /app/.venv/bin, not python -m ttc_mcp..., which inside /app would load the source copy instead of the installed package. -e TTC_MCP_NOW=2026-10-06T08:00 pins the clock the server uses for timetables and closure windows, for a date a loaded timetable covers; live feeds still answer with today's data.
On your own Linux machine
The maintainer's copy runs this way: two systemd user units, the HTTP server on loopback behind Google sign-in and a daily timer that runs ttc-mcp-build instead of a cloud Job, published over HTTPS through a Cloudflare Tunnel. Secrets sit in their own files (GOOGLE_OAUTH_CLIENT_SECRET_FILE, JWT_SIGNING_KEY_FILE), and the OAuth state stays on disk, encrypted, so a restart doesn't sign clients out. docs/self-host.md has the unit files, the tunnel, the checks and a note on keeping a WSL distro running.
Google Cloud Run
The same image also runs on Cloud Run, as the maintainer's copy did until 2026-11-01: a service behind Google sign-in that scales between zero and one instance and pulls its timetable from a Cloud Storage bucket, and a Cloud Run Job, started daily by Cloud Scheduler, that builds and pushes a new timetable when the TTC publishes one. For one person it is sized to stay within Google Cloud's free tiers (the estimate is in spec section 6.9); check your project's billing before you start. docs/cloud-run.md is the build specification and docs/deploy.md the runbook, one block of commands per step.
Once it is deployed, connect a client to https://<your-service-url>/mcp:
claude.ai: Settings, Connectors, Add custom connector. Paste the URL, leave the advanced OAuth settings empty, and sign in with an allowlisted Google account; the Claude apps share the connector.
Claude Code:
claude mcp add --transport http ttc https://<your-service-url>/mcp, then sign in from/mcp.
The tools
Nineteen tools in four groups. Station inputs take an id, a name or a common alias ("Dundas" finds TMU, "Bloor" finds Bloor-Yonge); stop inputs take the public stop number posted at the stop. docs/spec.md lists each tool's inputs in sections 4.1 and 4.2 and specifies its output in section 4.4.
Timetable and network, answered from the TTC's published GTFS on disk:
find_stops,nearest_stops,stop,station,routes,route_stops,service_hoursandscheduled_departures.Live, fetched from the TTC when asked:
arrivals,next_trains,vehiclesandfeed_status.Disruptions:
alerts,service_status(the network picture, and the first call for "what's going on"),detoursandservice_changes.Derived:
route_shape,accessibilityandconnections.
Every answer carries meta, which names the feeds that answered and says how fresh the answer is, and rows that give times carry basis: realtime or schedule. docs/degraded-service.md explains every field.
How it behaves
The specification records each decision with its evidence; section 7 is the summary. The ones that shape what you see:
It fetches only when asked. There is no background polling. A question triggers the requests it needs, each source is cached for its own refresh interval (from 10 seconds for train predictions to 10 minutes for service changes), and simultaneous questions share one request. An idle server sends nothing, which is light on the TTC's servers and lets a hosted copy scale to zero.
Trips are planned on the timetable itself.
connectionssearches the trips the TTC actually runs (the RAPTOR algorithm, over an index built with the timetable and loaded into memory once per timetable), so every ride is a real trip with its own departure and arrival. A change between vehicles costs the walk, timed through the station's mapped passageways where the TTC publishes them, plus a two-minute buffer. The answer is the fastest trip for each number of transfers, from one moment, across a departure window, or by an arrival time. For a question within an hour of now it reads the TTC's live trip updates for buses, streetcars and the subway, so the trips it boards run at their predicted times; Lines 5 and 6 publish no trip updates and stay on the timetable.Lines 5 and 6 are rapid transit everywhere: stations, platforms, closures and train predictions.
Accessibility reads the rail platforms, not the station's own flag (which the feed sets on every station) and not its bus bays, and takes elevator status from live alerts.
No geocoding. Addresses are a maps tool's job, so the server needs no maps API key.
One person, gated when hosted. A hosted copy sits behind Google sign-in with an email allowlist, and it speaks stateless HTTP so an idle connection never keeps an instance running.
Built on FastMCP 4 and Python 3.14.
When service is degraded
The server answers what it can and says what it couldn't. When a source fails, its last good answer is reused for a while and marked cache: stale_fallback; after that, live answers fall back to the timetable with basis: schedule, and a source that keeps failing is backed off so the TTC's servers aren't hammered. A disruption feed that fails is named in meta, so read "no disruptions" in that answer as unknown, not as all clear. During a closure the closed platforms read suspended, and connections never boards you, drops you off or transfers you at a closed station: it crosses the gap on the shuttle buses and flags the shuttle leg as an estimate. docs/degraded-service.md has each source's refresh and fallback windows, how each kind of disruption shows up, and what happens when the timetable is missing or old.
Configuration
A local copy reads these environment variables; ttc-mcp-build reads TTC_MCP_CACHE and TTC_MCP_UA too. A hosted copy adds the Google sign-in and Cloud Storage variables listed in docs/self-host.md, and CLAUDE.md lists every variable with the module that reads it.
Variable | Default | What it does |
|
| The transport when |
|
| The HTTP port when |
|
| Where the timetable files, their |
|
| The User-Agent on every request; several TTC servers refuse Python's default. If you run a copy, set your own contact here |
| off (the image sets |
|
| unset (the Toronto clock) | Pins the clock used for timetable lookups and closure windows to an ISO 8601 time, read as Toronto time when it has no offset; live feeds still answer with today's data |
Command options:
Command | Option | Effect |
|
| stdio for a local client, HTTP for a network one |
| Where HTTP listens; defaults | |
| Don't check the City's portal at startup or every 24 hours | |
|
| Rebuild even when the portal's files haven't changed |
| Build somewhere other than | |
| Build from GTFS zips on disk instead of the portal | |
| Skip the surface feed; vehicle positions then can't be matched to public stop numbers | |
| Skip ttc.ca's route service levels (one request per route) | |
| Skip the data checks logged after each build | |
| Pull this bucket's timetable before the portal check and push the result after, as the Job does; with |
Data sources and licences
ttc-mcp reads two kinds of TTC data: open data the TTC publishes on the City of Toronto's portal, and endpoints behind the TTC's own website.
Data | Source | Kind |
Timetables: routes, stops, schedules, shapes and station layouts | Open data | |
Bus and streetcar stop ids used by the live feeds | Open data | |
Vehicle positions, crowding and trip updates |
| Open data |
Service alerts with closures' nightly windows, detours, and subway trip updates |
| Open data |
Bus and streetcar predictions at a stop | the BusTime web map, | Behind the TTC's website |
Subway and LRT predictions | NTAS, | Behind the TTC's website |
Closures with their spans and shuttles, reduced speed zones, elevator and escalator outages |
| Behind the TTC's website |
Route service levels and service changes |
| Behind the TTC's website |
Open data. The TTC publishes the four portal datasets under the Open Government Licence – Toronto, as their pages on the portal say (the portal's API leaves their licence field unspecified). The licence allows any lawful use, commercial included, on conditions it sets out, among them crediting the source with the attribution statement below and not suggesting that the City or the TTC endorses you. ttc-mcp's attribution, which the server also sends to every client in its instructions, with the licence link:
Contains information licensed under the Open Government Licence – Toronto.
Endpoints behind the TTC's website. Stop predictions, train predictions, alerts.ttc.ca and ttc.ca's route data aren't open data: they are what the TTC's own website and BusTime map call, and the TTC publishes no terms specific to them. Its website terms of use allow personal, non-commercial use of material from its site and reserve selling, modifying or republishing it to the TTC's prior written permission, but they don't say whether they reach these endpoints. ttc-mcp calls them on demand, as the website does, and adds a cache, a User-Agent naming the project and backoff when they fail, to answer one person's own trip questions. It is built for that personal, non-commercial use; whether other uses are allowed is for the TTC to say, and the portal lists opendata@ttc.ca as its open-data contact. The TTC can change or withdraw these endpoints at any time, which is why the answers built on them are marked best effort.
This section describes the terms as published on 12 October 2026, and it isn't legal advice.
Not affiliated. ttc-mcp is an independent project. It is not affiliated with, endorsed by or supported by the Toronto Transit Commission or the City of Toronto, whose names and marks belong to them.
Development
Contributor documentation lives beside the code:
CLAUDE.md: the map of the codebase (architecture, identifiers, design decisions, environment, testing conventions) and how changes land.
docs/spec.md: the normative specification; when the code and the spec disagree, one of them gets fixed. Section 11 is the dated log of live verifications.
docs/data-quirks.md: the quirks of the TTC's live data that the code encodes.
docs/architecture.html: the architecture page; open it in a browser. It predates the container work, so its hosting and layout notes are out of date.
docs/deploy.md: the Cloud Run runbook.
docs/cloud-run.md: the Cloud Run build specification the runbook carries out.
docs/investigation-2026-09-13.md and docs/detours-addendum.md: the original survey of the TTC's data sources.
uv sync --extra cloud # dev tools, plus the cloud extra the unit suite needs
uv run pytest # the unit suite: offline, on a small fixture timetable
uv run ruff check . # lint
uv run pytest tests/integration # live: boots the server and asks the TTC; needs a timetable (uv run ttc-mcp-build)
TTC_MCP_SKIP_REFRESH=1 uv run python scripts/smoke_derived.py # one of the live smoke scripts in scripts/
TTC_MCP_SKIP_REFRESH=1 uv run python scripts/validate_connections.py # the 20 trips connections is judged on
TTC_MCP_SKIP_REFRESH=1 uv run python scripts/bench_raptor.py # the trip planner's 250 ms latency budget
scripts/smoke_image.sh # the container smoke test (needs Docker)Every pull request runs four CI jobs: the unit suite, lint, a package build and the container smoke test.
Licence
ttc-mcp's code is released under the MIT License. The licence covers the code only: the data it reads stays under its publishers' terms, described above, whoever runs it. The Python packages it depends on keep their own licences: MIT, BSD and Apache 2.0 for most of them, ISC, PSF 2.0, MIT-0 and the Unlicense for a few, and MPL 2.0 for the certifi certificate bundle.
Disclaimer
ttc-mcp comes with no warranty of any kind and makes no claim that its answers are accurate, complete or current. They are built from the TTC's timetables and live feeds, which can be wrong or late: a predicted arrival or train time (NTAS's included), a crowding level, a closure, a detour, an elevator's status or a planned trip may not match what is actually happening. Pay attention to what you see and hear at the stop or station, and to the TTC's own signs, announcements and staff. Don't rely on ttc-mcp in an emergency, or wherever a wrong or missed connection could cause harm. To the extent the law allows, its author accepts no liability for any loss or harm from using it, as the MIT License also says.
Available Tools
19 toolsaccessibilityAccessibilityA
Accessibility of a station (id, name or alias) or a stop: platform and entrance wheelchair flags, the station summary, elevator and escalator units with their levels and live status (alerts joined to pathway nodes by unit code; codes without a node are reported with node_match false), uncoded node counts and a step-free verdict with its basis. Outages announced but not yet active are listed under upcoming and leave the units and the verdict alone. A platform or entrance id answers for its station, with queried_platform or queried_entrance naming what was asked.
Inputs: query (required). Returns: object
alertsAlertsA
Current TTC alerts as normalised elements: subway closures (with nightly windows and shuttle info), surface suspensions and detours (alerts and the TripModifications feed), reduced speed zones, elevator and escalator outages. Filter by route, station (id, name or alias), stop number or type. Stations and stops are resolved to objects; times are America/Toronto. Answers are best effort, from the TTC's own site endpoints.
Inputs: stop, type, route, station. Returns: object
arrivalsArrivalsB
Next vehicles at a bus or streetcar stop (BusTime predictions, crowding from the vehicle feed) or next trains at a rail platform (NTAS). Rows carry basis realtime or schedule: when no real-time prediction exists the timetable fills in and a note says so. A rail platform inside an active closure answers no arrivals at all (NTAS keeps predicting there) with a note and the closure. Every row carries detour_id (the vehicle's trip is on a detour) and the answer lists the stop's disruptions. Answers are best effort, from the TTC's own site endpoints; historical occupancy is out of scope.
Inputs: stop (required), limit, route. Returns: object
connectionsConnectionsA
Timetable-exact trips between two places on the TTC: every ride is a real trip with its departure and arrival, transfers are timed (walking or station pathways plus a 2-minute change buffer), and the options are the Pareto set over arrival time and transfers, ranked by arrival. origin and destination are a stop number, a station id or alias, or {"lat", "lon"} from a geocoder. depart_at (ISO, Toronto when it has no offset; default now) with window_min (0 to 60, default 30) returns the journeys found every five minutes across the window (every ten when window_min is over 30), one per route sequence; arrive_by instead returns the latest departures that arrive on time, latest first, the first within five minutes of the latest that does; give one or the other. max_transfers is 0 to 3, walk_m (metres to and from the stops) 1 to 2000, limit 1 to 10. Each ride carries basis realtime (an update was applied to its trip, within an hour of now), schedule, or estimate; the first ride lists the next departures in its direction. A closure masks the closed section; when its shuttle runs the shuttle is an estimated leg (assumed headway and speed, stated in its note) and the option is flagged estimate: true and ranked last. A detoured route's trips skip their stops with the published delay. Every option lists the disruptions it touches with the legs they affect, and an empty answer says why. Closures are judged at the query instant, so the note names one that starts or ends inside the search. Live departures and disruptions are best effort, from the TTC's own site endpoints.
Inputs: origin (required), destination (required), limit, walk_m, +4 more. Returns: object
detoursDetoursB
Active surface detours from the TTC's TripModifications feed, grouped by detour id: per pattern the skipped stops, where the vehicle leaves and rejoins the route, the detour path (encoded polyline and length), trips affected, service dates, and the reason when a service change matches (null otherwise). Answers are best effort, from the TTC's own site endpoints.
Inputs: route. Returns: object
feed_statusFeed StatusA
Freshness of the static feed and of every real-time source as cached in this process (TTL state, age, feed timestamp, last error, NTAS coverage per line). probe=true makes one live request per source.
Inputs: probe. Returns: object
find_stopsFind StopsB
Find TTC stops, platforms or stations by name, stop number, station name or alias (e.g. "Dundas" resolves to TMU). Stops are directional: the two sides of an intersection are different stop numbers with different headsigns.
Inputs: query (required), mode, limit, route, +1 more. Returns: object
nearest_stopsNearest StopsB
Stops and stations nearest to a coordinate (geocode addresses with a maps tool first), with walk minutes, the routes, directions and headsigns served, and active disruptions per result.
Inputs: lat (required), lon (required), kind, limit, +1 more. Returns: object
next_trainsNext TrainsA
Next trains at every rail platform of a station (id, name or alias such as "Dundas" or "Bloor") or at one platform id, from the TTC's NTAS. A platform with no prediction falls back to the timetable (service no_prediction); an empty NTAS answer never means no trains. A platform inside an active closure is service suspended with the closure and no minutes (next_min [], no basis, NTAS's own numbers in ntas_min, no timetable); a closure's end station keeps real minutes on the platform facing the open line. Answers are best effort, from the TTC's own site endpoint.
Inputs: query (required). Returns: object
routesRoutesA
All TTC routes with mode (subway, lrt, streetcar, bus), series (rail, bus, express, blue-night, community, streetcar), service hours by day type and overnight share. overnight=true lists the Blue Night network.
Inputs: mode, series, overnight. Returns: object
route_shapeRoute ShapeA
The geometry of a route and direction: the most-used stop pattern's shape (or another pattern by rank) as an encoded polyline or GeoJSON LineString, with its stops and their distance along the shape. Optional Douglas-Peucker simplification (metres) and a from_stop/to_stop span sliced by shape_dist_traveled (the first visit of each when a stop repeats).
Inputs: route (required), direction (required), format, pattern, +3 more. Returns: object
route_stopsRoute StopsB
Ordered stops for a route and direction, grouped by stop pattern (branches, short turns) with trip counts, headsigns, typical minutes from the first stop, and a status per stop: open, closed (station closure) or skipped_by_detour.
Inputs: route (required), direction (required), pattern. Returns: object
scheduled_departuresScheduled DeparturesA
Timetable departures at a stop from a given time (default now), including previous-service-day trips that run past midnight. Schedule only; use arrivals for real time.
Inputs: stop (required), at, limit, route. Returns: object
service_changesService ChangesA
Board-period route changes: GTFS-RT MODIFIED_SERVICE alerts (title, text, period, url, routes) merged with ttc.ca's service-changes list when published. Filter by route and by a date the change must cover. Answers are best effort, from the TTC's own site endpoints.
Inputs: date, route. Returns: object
service_hoursService HoursB
Whether a route runs on a date (calendar plus holiday exceptions) and its first and last trip times. GTFS times past 24:00 belong to the previous service day.
Inputs: route (required), date. Returns: object
service_statusService StatusA
The first call for any trip or "what's going on" question: subway closures as station spans with windows, active_now and shuttle info; suspended or detoured surface routes (with skipped-stop counts and reasons); reduced speed zones; elevators and escalators out by station; counts and as_of. Answers are best effort, from the TTC's own site endpoints.
Inputs: no named parameters. Returns: object
stationStationB
A subway or LRT station by id, name or alias: rail platforms (with open/closed status), surface stops at the station (bus bays, streetcar platforms, with status), entrances, accessibility summary from the rail platforms, service per line (normal / reduced / suspended with the closure), and every disruption touching the station.
Inputs: query (required). Returns: object
stopStopB
One stop or platform by public stop number: name, coordinates, wheelchair flag, routes/directions/headsigns served, station membership, and the disruptions touching it (its station's closures, detours skipping it, alerts on its routes).
Inputs: number (required). Returns: object
vehiclesVehiclesA
Live positions of the buses and streetcars on a route, or one vehicle by fleet number: coordinates, bearing, speed, current stop (public number), headsign and crowding. Rail lines (1, 2, 4, 5, 6) publish no positions and answer unavailable; use next_trains. Answers are best effort, from the TTC's BusTime GTFS-Realtime feed; historical occupancy is out of scope.
Inputs: route, vehicle_id. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have distinct roles, but several clusters overlap: alerts, service_status, detours and service_changes all surface disruption data; arrivals and next_trains both return next trains at platforms; and stop, station, accessibility and nearest_stops/find_stops all resolve locations. The detailed descriptions do provide routing hints (e.g. 'Schedule only; use arrivals for real time', 'service_status is the first call'), which mitigates but does not eliminate misselection risk.
All names use snake_case, giving a consistent surface form. Most are noun-only (stop, station, routes, alerts, accessibility), with a minority using verb_noun (find_stops, nearest_stops), which is a minor stylistic deviation but still readable and predictable.
19 tools is at the heavy end but each maps to a distinct slice of a genuinely large transit domain (search, real-time, schedules, disruptions, accessibility, trip planning, geometry, feed health). It is slightly over the comfortable range, but no tool appears clearly redundant.
The surface covers the full rider lifecycle: discovery (find/nearest/stop/station), routing (routes/route_stops/route_shape), scheduling (service_hours/scheduled_departures), real-time (arrivals/next_trains/vehicles), disruptions (alerts/service_status/detours/service_changes), accessibility, and trip planning (connections), plus feed health. No obvious operational gaps remain for a TTC transit server.
Maintenance
Related MCP Connectors
tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).
Remote MCP server for live sports data. Ask for scores, standings, player stats and Elo ratings across 9 sports directly from Claude or any MCP client. Backed by the Big Balls Sports API, with one unified schema for every sport.
Publish and schedule videos to TikTok, YouTube Shorts, Instagram, Facebook, LinkedIn, Pinterest, Bluesky, Threads and X from Claude, Cursor or any MCP client. Upload once, post everywhere, track views in unified analytics, and retry failed posts. Official platform APIs only, free plan available. Docs: https://docs.multi-upload-tool.com/mcp
Schedule and publish social posts across 9 platforms (Instagram, LinkedIn, X, TikTok, Facebook, Threads, Pinterest, Bluesky, Mastodon) straight from Claude, ChatGPT, Cursor, or any MCP client. Create, edit, and reschedule posts, upload media, and pull account and post analytics, follower demographics, and best-time windows. 20 tools, free on every plan.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language queries for Porto Alegre's public transport system, including route planning, stop search, and route information via Claude Desktop or any MCP-compatible client.MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural-language queries about live Belgian trains, metro, tram and bus services — departures, arrivals, A-to-B journey planning, disruptions and train composition — from Claude or any MCP client speaking Streamable HTTP. It runs remotely on Cloudflare Workers, needs no accounts, and stores no personal data.MIT
- AlicenseAqualityBmaintenanceEnables Claude to answer SEPTA Regional Rail timetable and real-time questions, including next trains, station departures, train positions and delays, and service alerts, with loose station-name matching.6MIT
- AlicenseAqualityBmaintenanceConnects Claude to live TransMilenio bus positions, official schedules, stop arrivals, alerts, and route history so users can ask natural-language questions about Bogotá transit and compare scheduled service with what is actually on the street.132MIT