MOTIS MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MOTIS_BASE_URL | No | Base URL of the MOTIS instance to use. Change it only if you run your own MOTIS instance; the usage policy applies to the public instance. | https://api.transitous.org |
| MOTIS_TIMEOUT_MS | No | Per-call backend timeout. A call that takes longer returns a tool error instead of leaving the agent waiting. | 20000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
motis-mcp 0.1.0+3.g7f2e86d (motis-client 2.11.4) provides public transport data from Transitous and OpenStreetMap. Once per session, the first time you present results from these tools, tell the user in one short line which versions answered (motis-mcp and motis-client, as above) and where the data comes from, with the links above.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| find_stationsA | Search stops/stations by name (e.g. "Berlin Hbf", "Alexanderplatz", a town name). Returns a ranked list of stops only (no addresses or POIs). Call this first: every other tool takes an id, never a name. Ids are opaque; never guess, hardcode or reuse them across sessions. The same station can appear under several ids (one per data feed); any of them works. Results: JSON, then "Hints:" (situational advice; attribution, credit once). |
| get_stopA | Stop/station details by id: name, coordinates, IANA |
| get_departuresA | The departures board of a stop/station in a time window: line, direction, platform, realtime delay and the |
| get_arrivalsA | The arrivals board of a stop/station in a time window: line, origin, platform, realtime delay and the |
| plan_journeyA | Plan journeys between two stops/stations given as ids (use find_stations first). Returns up to |
| get_tripA | Stop-by-stop realtime schedule of one vehicle run on one day: origin and destination, plus every stop in between in |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct resource and action: station search by name, stop details by id, departures board, arrivals board, journey planning, and single-trip schedule. The only superficially similar pair (get_departures vs get_arrivals) is clearly separated by direction, and get_trip vs plan_journey differ by scope (one vehicle run vs multi-leg itinerary). Descriptions explicitly state when to use find_stations first, removing selection ambiguity.
All names follow a consistent snake_case verb_noun pattern (find_stations, get_stop, get_departures, get_arrivals, plan_journey, get_trip). Verbs are used meaningfully: find for search, get for retrieval by id, plan for computation.
Six tools is well-scoped for a transit API: search, stop metadata, two board directions, journey planning, and trip detail. Each tool earns its place with no redundant or filler operations.
The core journey workflow is fully covered: name lookup, stop details, boards, planning, and trip tracking. Minor gaps exist, such as no lookup by coordinates/nearby stations, but agents can work around this via name search.