mcp-national-rail
@lucygoodchild
About mcp-national-rail
A Model Context Protocol (MCP) server to retrieve train schedules from National Rail
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-national-rail": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@lucygoodchild/mcp-national-rail",
"--client",
"claude"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is mcp-national-rail?
mcp-national-rail is a Model Context Protocol (MCP) server that allows AI agents to retrieve train schedules from National Rail using the Realtime Trains API. It provides tools for live departures, live arrivals, departures by date, and arrivals by date.
How to use mcp-national-rail?
Install via Smithery or manually for Claude Desktop. Manual installation requires Node.js, cloning the repository, running npm install, npm build, and npm start, then adding the server to the MCP client configuration with environment variables for your Realtime Trains API username and password.
Key features of mcp-national-rail
- Retrieve live train departures and arrivals.
- Retrieve departures and arrivals by date.
- Integrates with National Rail via the Realtime Trains API.
- Simple installation via Smithery or manual setup.
- Built on the Model Context Protocol for AI agents.
Use cases of mcp-national-rail
- Ask an AI assistant for live departure times from a specific station.
- Get arrival times for a given train service and date.
- Check historical schedules for a specific date.
- Combine with other MCP tools to plan multi‑leg journeys.
FAQ from mcp-national-rail
What is the purpose of mcp-national-rail?
It is an MCP server that enables AI agents to query National Rail train schedules in real time, using the Realtime Trains API.
What API credentials are required?
You need a Realtime Trains API account (free to create at api.rtt.io) and must provide the API username and password as environment variables.
What are the runtime dependencies?
The server requires Node.js to build and run. No other runtime dependencies are mentioned.
How do I configure the credentials?
Set the environment variables RTT_API_USERNAME and RTT_API_PASSWORD in your MCP client configuration file (e.g., claude_desktop_config.json for Claude Desktop).
Is mcp-national-rail compatible with other MCP clients?
The README provides configuration examples for Claude Desktop, but as an MCP server it can be used with any MCP client that supports stdio transport.
Frequently asked questions
What is the purpose of mcp-national-rail?
It is an MCP server that enables AI agents to query National Rail train schedules in real time, using the Realtime Trains API.
What API credentials are required?
You need a Realtime Trains API account (free to create at api.rtt.io) and must provide the API username and password as environment variables.
What are the runtime dependencies?
The server requires Node.js to build and run. No other runtime dependencies are mentioned.
How do I configure the credentials?
Set the environment variables `RTT_API_USERNAME` and `RTT_API_PASSWORD` in your MCP client configuration file (e.g., `claude_desktop_config.json` for Claude Desktop).
Is mcp-national-rail compatible with other MCP clients?
The README provides configuration examples for Claude Desktop, but as an MCP server it can be used with any MCP client that supports stdio transport.
Basic information
More Other MCP servers
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
ICSS
chokcoco不止于 CSS
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

Figs, Relationship Expert
Figs O'Sullivan, LMFTCouples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
Comments