Loading...

This MCP server retrieves National Rail train schedules using the Realtime Trains API, enabling AI agents to access live departure and arrival information.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server retrieves National Rail train schedules using the Realtime Trains API, enabling AI agents to access live departure and arrival information.
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.
Performance depends on the response time of the Realtime Trains API. Consider implementing caching to reduce the number of API calls.
Cost depends on the usage of the Realtime Trains API. Monitor API usage to avoid exceeding rate limits or incurring unexpected charges.
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"
}
}
}
}RTT_API_USERNAMERTT_API_PASSWORDget_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.
Environment Variable
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.
The server operates in read-only mode, so autonomy is limited to retrieving and displaying train schedule information.
Production Tip
Implement robust error handling and monitoring to ensure the server remains available and responsive, especially during peak usage times.
This server uses the Realtime Trains API to retrieve train schedule information.
You need to create an account on the Realtime Trains API website and provide your API username and password as environment variables.
The server will be unable to retrieve train schedule information and may return an error.
Yes, the Realtime Trains API has rate limits. Monitor your API usage to avoid exceeding these limits.
No, this server only provides read-only access to train schedule information.
Follow the installation instructions in the README file, which involves cloning the repository, installing dependencies, and configuring environment variables.
Error handling relies on standard Node.js error propagation and the Realtime Trains API's error responses. You should implement robust error handling in your application to handle potential errors.