mcp-server-public-transport
v0.4.1An 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.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Arrival station name (CH). Example: 'Basel SBB' |
origin * | string | Departure station name (CH). Example: 'Zürich HB' |
date | Date in YYYY-MM-DD format (optional). | |
is_arrival_time | If true, interpret 'time' as arrival time (default false). | |
limit | Max number of connections (default 4). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
time | Time in HH:MM format (optional). |
ch_search_stations Ch Search Stations
Search for Swiss train stations by name or location.
| Parameter | Type | Description |
|---|---|---|
query * | string | Station/location search query. Example: 'Bern' |
type | Location 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.
| Parameter | Type | Description |
|---|---|---|
station * | string | Station name (CH). Example: 'Luzern' |
datetime | Datetime ISO string supported by API (optional). | |
limit | Max departures to return (default 10). | |
raw | boolean | Return 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).
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees. Example: 47.378 |
longitude * | number | Longitude in decimal degrees. Example: 8.540 |
distance | Search 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.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination station name (Belgium). Example: 'Gent-Sint-Pieters' |
origin * | string | Origin station name (Belgium). Example: 'Bruxelles-Central' |
date | Travel date in YYYY-MM-DD format (optional). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
results | Max number of connections to return (default 4). | |
time | Travel time in HH:MM format (optional). |
be_search_stations Be Search Stations
Search for Belgian train stations by name.
| Parameter | Type | Description |
|---|---|---|
query * | string | Station 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.
| Parameter | Type | Description |
|---|---|---|
station * | string | Station name. Example: 'Antwerpen-Centraal' |
limit | Max departures to return (default 10). | |
raw | boolean | Return 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.
| Parameter | Type | Description |
|---|---|---|
vehicle_id * | string | Vehicle 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | Free-text query. Example: 'Oslo S' |
lang | Language hint ('en','no','nb','nn',...). Default 'en'. | |
size | Max 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.
| Parameter | Type | Description |
|---|---|---|
stop_place_id * | string | NSR StopPlace ID. Example: 'NSR:StopPlace:58368' |
limit | Number of departures to fetch (default 10). | |
raw | boolean | Return 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.
| Parameter | Type | Description |
|---|---|---|
from_id * | string | Origin StopPlace NSR ID. Example: 'NSR:StopPlace:58368' |
to_id * | string | Destination StopPlace NSR ID. |
date_time | ISO 8601 datetime (optional). Example: '2026-01-30T12:00:00+01:00' | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
results | Number of trip patterns (default 5). |
no_nearest_stops No Nearest Stops
Find nearest StopPlaces for a coordinate (lat, lon) within a radius in meters.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude. |
lon * | number | Longitude. |
limit | Max number of stops to return (default 10). | |
radius | Max 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query. Example: 'Alexanderplatz' |
addresses | Show addresses (default true). | |
fuzzy | Find more than exact matches (default true). | |
poi | Show points of interest (default true). | |
results | Max number of results (default 10). | |
stops | Show 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.
| Parameter | Type | Description |
|---|---|---|
stop_id * | string | Stop/station ID. Example: '900100003' for S+U Alexanderplatz |
direction | Filter departures by direction (stop ID). | |
duration | Show departures for how many minutes (default 10). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
results | Max number of departures. | |
when | Date/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.
| Parameter | Type | Description |
|---|---|---|
stop_id * | string | Stop/station ID. Example: '900100003' for S+U Alexanderplatz |
duration | Show arrivals for how many minutes (default 10). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
results | Max number of arrivals. | |
when | Date/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.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination stop ID or station name. Example: '900017101' or 'Mehringdamm' |
origin * | string | Origin stop ID or station name. Example: '900100003' or 'Alexanderplatz' |
arrival | Arrival date/time (ISO 8601 or relative). Mutually exclusive with departure. | |
departure | Departure date/time (ISO 8601 or relative). Mutually exclusive with arrival. | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
results | Max number of journeys (default 3). | |
transfers | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees. Example: 52.521508 |
longitude * | number | Longitude in decimal degrees. Example: 13.411267 |
distance | Maximum distance in meters. | |
results | Max 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/.
| Parameter | Type | Description |
|---|---|---|
query * | string | Station/stop search query. Example: 'Trindade' |
limit | Max 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/.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination stop id or 'lat,lon'. Example: 'pt-Metro-Lisboa_BC' |
origin * | string | Origin stop id or 'lat,lon'. Example: 'pt-Metro-Lisboa_MP' |
date | Date in YYYY-MM-DD format (optional). | |
is_arrival_time | If true, interpret date/time as arrival time (default false). | |
limit | Max number of itineraries (default 4). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
time | Time 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/.
| Parameter | Type | Description |
|---|---|---|
stop_id * | string | Stop id. Example: 'pt-Metro-Porto_5726' for Trindade |
limit | Max departures to return (default 10). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
time | Date/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/.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees. Example: 41.15228 |
longitude * | number | Longitude in decimal degrees. Example: -8.609299 |
results | Max 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/.
| Parameter | Type | Description |
|---|---|---|
query * | string | Station/stop search query. Example: 'Roma Termini' |
limit | Max 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/.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination stop id or 'lat,lon'. Example: 'it-trenitalia_01700:station' |
origin * | string | Origin stop id or 'lat,lon'. Example: 'it-trenitalia_08409:station' |
date | Date in YYYY-MM-DD format (optional). | |
is_arrival_time | If true, interpret date/time as arrival time (default false). | |
limit | Max number of itineraries (default 4). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
time | Time 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/.
| Parameter | Type | Description |
|---|---|---|
stop_id * | string | Stop id. Example: 'it-trenitalia_08409:station' for Roma Termini |
limit | Max departures to return (default 10). | |
raw | boolean | Return the unmodified upstream API response instead of the compact format. |
time | Date/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/.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees. Example: 41.9005 |
longitude * | number | Longitude in decimal degrees. Example: 12.50203 |
results | Max number of results (default 8). |