MCP documentation
A hosted, read-only MCP server giving live UK rail departures.
Connection
| Endpoint | https://traintimesformuse.co.uk/mcp |
|---|---|
| Transport | HTTP POST, JSON-RPC 2.0, stateless (no sessions) |
| Protocol version | 2025-03-26 |
| Authentication | None. The data is public and read-only, and no user data is involved. |
| Methods | initialize, ping, tools/list, tools/call |
Tool: get_departures
Live departures from a UK station: scheduled and expected time, platform, delays and cancellations with reasons. With a destination, only trains calling there are returned, with their scheduled and expected arrival time at it.
| Argument | Type | Description |
|---|---|---|
from (required) | string | Departure station name or 3-letter CRS code, e.g. Reading or RDG. All ~2,600 Great Britain stations are recognised. |
to | string | Optional destination station name or CRS code. |
Example
curl -X POST https://traintimesformuse.co.uk/mcp -d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": { "name": "get_departures",
"arguments": { "from": "Reading", "to": "Paddington" } }
}'
The result is a JSON text block, for example:
{"ok":true,"station":"Reading","source":"National Rail via Rail Data Marketplace","notice":"Live information is provided as is…","departures":[
{"scheduled":"09:09","expected":"On time","platform":"15A",
"to":"London Paddington","operator":"Great Western Railway",
"cancelled":false,
"arrivesAtDestination":{"scheduled":"09:52","expected":"On time"}}
]}
Limits and errors
- Coverage: Great Britain rail. The next few departures (up to six) per call, not a full day's timetable. No journey planning, fares or booking.
- Rate limit: 60 tool calls per minute, shared by all users. Over the limit, the call returns
isError: truewith a message to retry in about a minute. - Unknown station:
isError: truewith suggestions, e.g.Did you mean: Birmingham Moor Street (BMO), …? - Free: no account, plan or sign-up.
Data sources
Live rail data from National Rail via Rail Data Marketplace. Station list from davwheat/uk-railway-stations under the Open Database Licence.