Back to MCP Servers

National Rail

An MCP server for UK National Rail trains service, providing train schedules and live travel information, intergrating the Realtime Trains API

travel-transportationapiai

Installation

npx -y mcp-national-rail

Configuration

{
  "mcpServers": {
    "mcp-national-rail": {
      "command": "npx",
      "args": ["-y", "mcp-national-rail"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub