sncf-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Bind address ('0.0.0.0' in the image). | 127.0.0.1 |
| PORT | No | Listen port. | 8830 |
| SNCF_API_URL | No | SNCF API coverage URL. | https://api.sncf.com/v1/coverage/sncf |
| MCP_AUTH_TOKEN | No | Optional. If set, requests need 'Authorization: Bearer <token>'. | |
| SNCF_API_TOKEN | Yes | Required SNCF API key. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| find_stationA | Find train stations by name. Returns station ids to use in the other tools. |
| departuresA | Next departures from a station (id from find_station). Delay, cancellation and skipped stop come from the SNCF GTFS-RT realtime feed (transport.data.gouv.fr, open licence); a train absent from it runs as planned (realtime false). Platform only when the SNCF API provides it. realtime_unavailable is set when the feed is down (planned times only). from_datetime is ISO 8601, Paris time if no offset; defaults to now. |
| journeysA | Journeys between two stations (ids from find_station), departing after
|
| disruptionsA | Current and upcoming disruptions for a station (id from find_station) or a line id (station_id wins when both are given); without arguments, network-wide. Built from the SNCF GTFS-RT service alerts feed (transport.data.gouv.fr, open licence), with the SNCF API as fallback when the feed has nothing. Empty list when there are none; if the feed is down and the API has nothing, a single item with a warning. |
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 4 tools
Each tool has a distinct job: find_station resolves ids, departures gives a station's departure board, journeys plans station-to-station trips, and disruptions reports alerts. Departures and journeys both surface realtime train status, so an agent could occasionally hesitate, but the one-station vs two-station framing and the id dependency make the boundary clear.
find_station follows a verb_noun pattern while departures, disruptions and journeys are bare nouns, so the set mixes conventions. Names are still readable and each maps obviously to its concept, but there is no predictable pattern to infer a new tool's name from.
Four tools is lean for a transit server but every one earns its place in the core workflow (resolve station → departures/disruptions/journeys). It is on the thin side — no arrivals board or station detail tool — but not unjustifiably so.
The core loop of finding stations, checking departures, planning journeys and viewing disruptions is covered, with a sensible id handoff between tools. However, there is no arrivals board, no station/line detail lookup, and no train-level trip inspection, leaving notable gaps for agents needing arrival data or richer line information.