Loading...
npx -y @smithery/cli install @lucygoodchild/mcp-national-rail --client claude{
"mcpServers": {
"mcp-national-rail": {
"command": "node",
"args": ["/path/to/mcp-national-rail/dist/index.js"],
"env": {
"RTT_API_USERNAME": "your_rtt_api_username",
"RTT_API_PASSWORD": "your_rtt_api_password"
}
}
}
}get_live_departuresRetrieves live departure information for a specific train station.
Read-only operation, no modification of data.
get_live_arrivalsRetrieves live arrival information for a specific train station.
Read-only operation, no modification of data.
get_departures_by_dateRetrieves departure information for a specific train station on a given date.
Read-only operation, no modification of data.
get_arrivals_by_dateRetrieves arrival information for a specific train station on a given date.
Read-only operation, no modification of data.
This server is relatively safe for retrieving train schedules, but the security of the API credentials and the Realtime Trains API are critical. Ensure environment variables are properly secured and monitor the API for any security vulnerabilities. Input validation should be implemented to prevent potential injection attacks.