mcp-server-public-transport

v0.4.1
mcp-server-public-transport Checked 2 days ago Published 12 days ago

An MCP-compatible server for querying public transport data in Europe (UK, CH, BE, NO, Berlin/Brandenburg, PT, IT).

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

ch_search_connections Ch Search Connections

Search for train connections in Switzerland between two stations. Uses transport.opendata.ch API to provide real-time connection data including departure times, duration, platforms, and transfers. Returns a compact list of journeys with legs; set raw=true for the full upstream response.

ParameterTypeDescription
destination *stringArrival station name (CH). Example: 'Basel SBB'
origin *stringDeparture station name (CH). Example: 'Zürich HB'
dateDate in YYYY-MM-DD format (optional).
is_arrival_timeIf true, interpret 'time' as arrival time (default false).
limitMax number of connections (default 4).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
timeTime in HH:MM format (optional).

ch_search_stations Ch Search Stations

Search for Swiss train stations by name or location.

ParameterTypeDescription
query *stringStation/location search query. Example: 'Bern'
typeLocation type filter (default 'station'). Example: 'station'

ch_get_departures Ch Get Departures

Get departure board for a Swiss train station with real-time information (planned/expected time, delay, platform). Set raw=true for the full upstream response.

ParameterTypeDescription
station *stringStation name (CH). Example: 'Luzern'
datetimeDatetime ISO string supported by API (optional).
limitMax departures to return (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.

ch_nearby_stations Ch Nearby Stations

Find nearby Swiss train stations based on coordinates (latitude, longitude).

ParameterTypeDescription
latitude *numberLatitude in decimal degrees. Example: 47.378
longitude *numberLongitude in decimal degrees. Example: 8.540
distanceSearch radius in meters (default 1000).

be_search_connections Be Search Connections

Search train connections in Belgium between two stations. Powered by iRail API for real-time routes and schedules. Returns a compact list of journeys with legs and alerts; set raw=true for the full upstream response.

ParameterTypeDescription
destination *stringDestination station name (Belgium). Example: 'Gent-Sint-Pieters'
origin *stringOrigin station name (Belgium). Example: 'Bruxelles-Central'
dateTravel date in YYYY-MM-DD format (optional).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
resultsMax number of connections to return (default 4).
timeTravel time in HH:MM format (optional).

be_search_stations Be Search Stations

Search for Belgian train stations by name.

ParameterTypeDescription
query *stringStation name query. Example: 'Brux'

be_get_departures Be Get Departures

Get live departure board for a Belgian train station (planned/expected time, delay, platform, cancellations). Set raw=true for the full upstream response.

ParameterTypeDescription
station *stringStation name. Example: 'Antwerpen-Centraal'
limitMax departures to return (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.

be_get_vehicle Be Get Vehicle

Get details about a specific Belgian train vehicle by its ID.

ParameterTypeDescription
vehicle_id *stringVehicle ID from iRail. Example: 'BE.NMBS.IC1234' (format may vary)

no_search_places No Search Places

Autocomplete search across stops/addresses/POIs in Norway via Entur Geocoder.

ParameterTypeDescription
text *stringFree-text query. Example: 'Oslo S'
langLanguage hint ('en','no','nb','nn',...). Default 'en'.
sizeMax results (default 10).

no_stop_departures No Stop Departures

Upcoming departures for a StopPlace ID (e.g., 'NSR:StopPlace:58368') with planned/expected time, delay, platform and disruptions. Set raw=true for the full upstream response.

ParameterTypeDescription
stop_place_id *stringNSR StopPlace ID. Example: 'NSR:StopPlace:58368'
limitNumber of departures to fetch (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.

no_trip No Trip

Door-to-door trip planning between two StopPlaces (NSR IDs). Returns a compact list of journeys with legs, platforms and disruptions; set raw=true for the full upstream response.

ParameterTypeDescription
from_id *stringOrigin StopPlace NSR ID. Example: 'NSR:StopPlace:58368'
to_id *stringDestination StopPlace NSR ID.
date_timeISO 8601 datetime (optional). Example: '2026-01-30T12:00:00+01:00'
rawbooleanReturn the unmodified upstream API response instead of the compact format.
resultsNumber of trip patterns (default 5).

no_nearest_stops No Nearest Stops

Find nearest StopPlaces for a coordinate (lat, lon) within a radius in meters.

ParameterTypeDescription
lat *numberLatitude.
lon *numberLongitude.
limitMax number of stops to return (default 10).
radiusMax distance in meters (default 500).

vbb_search_locations Vbb Search Locations

Search for stops/stations, POIs and addresses in Berlin/Brandenburg. Uses v6.vbb.transport.rest API to find locations matching a query. Returns location details including ID, name, coordinates, and available transport products.

ParameterTypeDescription
query *stringSearch query. Example: 'Alexanderplatz'
addressesShow addresses (default true).
fuzzyFind more than exact matches (default true).
poiShow points of interest (default true).
resultsMax number of results (default 10).
stopsShow stops/stations (default true).

vbb_get_departures Vbb Get Departures

Get departures at a stop/station in Berlin/Brandenburg. Returns real-time departure information including delays, platform, line details and disruption warnings. Set raw=true for the full upstream response.

ParameterTypeDescription
stop_id *stringStop/station ID. Example: '900100003' for S+U Alexanderplatz
directionFilter departures by direction (stop ID).
durationShow departures for how many minutes (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
resultsMax number of departures.
whenDate/time for departures (ISO 8601 or relative like 'tomorrow 2pm'). Default: now.

vbb_get_arrivals Vbb Get Arrivals

Get arrivals at a stop/station in Berlin/Brandenburg. Returns real-time arrival information including delays, platform, line details and disruption warnings. Set raw=true for the full upstream response.

ParameterTypeDescription
stop_id *stringStop/station ID. Example: '900100003' for S+U Alexanderplatz
durationShow arrivals for how many minutes (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
resultsMax number of arrivals.
whenDate/time for arrivals (ISO 8601 or relative). Default: now.

vbb_search_journeys Vbb Search Journeys

Search for journeys between two locations in Berlin/Brandenburg. Returns connections with real-time data, transfers, duration, and line information. Supports departure or arrival time based planning. Returns a compact list of journeys with legs; set raw=true for the full upstream response.

ParameterTypeDescription
destination *stringDestination stop ID or station name. Example: '900017101' or 'Mehringdamm'
origin *stringOrigin stop ID or station name. Example: '900100003' or 'Alexanderplatz'
arrivalArrival date/time (ISO 8601 or relative). Mutually exclusive with departure.
departureDeparture date/time (ISO 8601 or relative). Mutually exclusive with arrival.
rawbooleanReturn the unmodified upstream API response instead of the compact format.
resultsMax number of journeys (default 3).
transfersMaximum number of transfers.

vbb_nearby_stations Vbb Nearby Stations

Find stops/stations near a location in Berlin/Brandenburg by coordinates. Returns nearby stops with distance information.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees. Example: 52.521508
longitude *numberLongitude in decimal degrees. Example: 13.411267
distanceMaximum distance in meters.
resultsMax number of results (default 8).

pt_search_stations Pt Search Stations

Search for stops/stations in Portugal by name. Covers the Lisbon and Porto metro areas (metro, buses, trams, suburban rail) via Transitous. Returns stop id, name and coordinates - use the id with pt_search_connections and pt_get_departures. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
query *stringStation/stop search query. Example: 'Trindade'
limitMax number of results (default 10).

pt_search_connections Pt Search Connections

Plan a public transport connection between two points in the Lisbon or Porto metro area. Origin and destination are either stop ids (from pt_search_stations) or 'lat,lon' coordinates. Returns a compact list of journeys with legs, lines, local times and transfers; set raw=true for the full upstream response. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
destination *stringDestination stop id or 'lat,lon'. Example: 'pt-Metro-Lisboa_BC'
origin *stringOrigin stop id or 'lat,lon'. Example: 'pt-Metro-Lisboa_MP'
dateDate in YYYY-MM-DD format (optional).
is_arrival_timeIf true, interpret date/time as arrival time (default false).
limitMax number of itineraries (default 4).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
timeTime in HH:MM format (optional).

pt_get_departures Pt Get Departures

Get the departure board for a stop in the Lisbon or Porto metro area. Needs a stop id from pt_search_stations. Returns upcoming departures with line, headsign and real-time times in local time; set raw=true for the full upstream response. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
stop_id *stringStop id. Example: 'pt-Metro-Porto_5726' for Trindade
limitMax departures to return (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
timeDate/time as rfc3339 (optional). Default: now.

pt_nearby_stations Pt Nearby Stations

Find stops/stations near coordinates in the Lisbon or Porto metro area. Returns the closest stops with id, name and coordinates. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees. Example: 41.15228
longitude *numberLongitude in decimal degrees. Example: -8.609299
resultsMax number of results (default 8).

it_search_stations It Search Stations

Search for stops/stations in Italy by name. Covers national rail (Trenitalia) plus regional metro, tram and bus networks via Transitous. Returns stop id, name and coordinates - use the id with it_search_connections and it_get_departures. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
query *stringStation/stop search query. Example: 'Roma Termini'
limitMax number of results (default 10).

it_search_connections It Search Connections

Plan a public transport connection between two points in Italy. Origin and destination are either stop ids (from it_search_stations) or 'lat,lon' coordinates. Returns a compact list of journeys with legs, lines, local times and transfers; set raw=true for the full upstream response. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
destination *stringDestination stop id or 'lat,lon'. Example: 'it-trenitalia_01700:station'
origin *stringOrigin stop id or 'lat,lon'. Example: 'it-trenitalia_08409:station'
dateDate in YYYY-MM-DD format (optional).
is_arrival_timeIf true, interpret date/time as arrival time (default false).
limitMax number of itineraries (default 4).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
timeTime in HH:MM format (optional).

it_get_departures It Get Departures

Get the departure board for a stop in Italy. Needs a stop id from it_search_stations. Returns upcoming departures with line, headsign and real-time times in local time; set raw=true for the full upstream response. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
stop_id *stringStop id. Example: 'it-trenitalia_08409:station' for Roma Termini
limitMax departures to return (default 10).
rawbooleanReturn the unmodified upstream API response instead of the compact format.
timeDate/time as rfc3339 (optional). Default: now.

it_nearby_stations It Nearby Stations

Find stops/stations near coordinates in Italy. Returns the closest stops with id, name and coordinates. Data via Transitous (https://transitous.org), a best-effort, volunteer-run service; usage policy: https://transitous.org/api/.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees. Example: 41.9005
longitude *numberLongitude in decimal degrees. Example: 12.50203
resultsMax number of results (default 8).