Enterprise DNA
M MCP Servers Developer low

lucygoodchild/mcp-national-rail

by Various

A Model Context Protocol (MCP) server to retrieve train schedules from National Rail

L

MCP

lucygoodchild/mcp-national-rail

Added 1 June 2026

Overview

This is a Model Context Protocol (MCP) server for retrieving train schedule data from National Rail. It provides a programmatic way to query departure and arrival times through a standardized interface. The server is written in TypeScript and can be integrated into any MCP-compatible host.

Best for

Best for
Developers building AI tools or apps that need UK train schedule data via the Model Context Protocol

Use cases

  • Query train departure and arrival times for UK stations
  • Integrate rail schedule data into an AI assistant or chatbot
  • Automate travel planning with scheduled rail information

How to use

Install

npx -y @smithery/cli install @lucygoodchild/mcp-national-rail --client claude

Tested with

Claude Desktop

Example client config

{\n  "mcpServers": {\n    "mcp-national-rail": {\n      "command": "node",\n      "args": ["/path/to/mcp-national-rail/dist/index.js"],\n      "env": {\n        "RTT_API_USERNAME": "your_rtt_api_username",\n        "RTT_API_PASSWORD": "your_rtt_api_password"\n      }\n    }\n  }\n}

Notes

This is a Model Context Protocol (MCP) server for retrieving train schedule data from National Rail. It provides a programmatic way to query departure and arrival times through a standardized interface. The server is written in TypeScript and can be integrated into any MCP-compatible host.

6 stars on GitHub. Last updated 2025-06-02.

Use cases

  • Query train departure and arrival times for UK stations
  • Integrate rail schedule data into an AI assistant or chatbot
  • Automate travel planning with scheduled rail information

Pros

  • Focused tool that does one thing well: accessing National Rail schedules
  • Follows the Model Context Protocol for easy integration with AI agents
  • Written in TypeScript offering type safety for developers

Cons

  • Limited to scheduled data only (no real-time departures or disruptions)
  • Small community (6 stars) suggests limited adoption and maintenance risk
  • Requires a National Rail API key which is not included in the repository

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Focused tool that does one thing well: accessing National Rail schedules
  • Follows the Model Context Protocol for easy integration with AI agents
  • Written in TypeScript offering type safety for developers

Cons

  • Limited to scheduled data only (no real-time departures or disruptions)
  • Small community (6 stars) suggests limited adoption and maintenance risk
  • Requires a National Rail API key which is not included in the repository
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks