lucygoodchild/mcp-national-rail

🚆 Travel & Transportation
0 Views
0 Installs

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

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "lucygoodchild-mcp-national-rail": {
      "command": "npx",
      "args": [
        "-y",
        "lucygoodchild-mcp-national-rail"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

smithery badge

mcp-national-rail

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

Overview

This project implements a server using the Model Context Protocol (MCP) that allows AI agents to retrieve train information on National Rail trains using the Realtime Trains API.

It provides tools for:

  • get_live_departures
  • get_live_arrivals
  • get_departures_by_date
  • get_arrivals_by_date

Installation

Real Time Trains API account can be created from here: https://api.rtt.io/

You will need to note down your API Auth credentials

Installing via Smithery

To install mcp-national-rail for Claude Desktop automatically via Smithery:

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

Manual Installation for Claude Desktop

Prerequisites

  • Node.js

Setup

  1. Clone this repository
  2. Install dependencies
npm install
  1. Build and start the project
npm run build
npm run start
  1. Add the following to your MCP client configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
  "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"
      }
    }
  }
}

Make sure to replace "/path/to/mcp-national-rail/dist/index.js" with the actual path and add your RTT API username and password which can be created from here: https://api.rtt.io/

  1. Restart Claude

Development

  • Create .env file based on the example file
RTT_API_USERNAME=your_rtt_api_username
RTT_API_PASSWORD=your_rtt_api_password

Run the inspector with the following command:

npx @modelcontextprotocol/inspector node dist/index.js

Related MCP Servers

alcylu/nightlife-mcp

📇 ☁️ - MCP server for Tokyo nightlife event discovery, venue search, performer info, AI recommendations, and VIP table booking.

🚆 Travel & Transportation0 views
amirdaraee/luxembourg-mcp

🎖️ 🐍 ☁️ 🏠 - Keyless access to official Luxembourg public data: laws, statistics, live parking and traffic, weather alerts, environment, parliament, geodata, GTFS stops, and the national open-data catalogue. 21 read-only tools, zero dependencies; hosted endpoint at mcp.luxembourg-mcp.com or local Python server. No API keys.

🚆 Travel & Transportation0 views
Autonomad1/autonomad-travel

📇 ☁️ - AI travel agent over MCP — live flights, hotels, activities, and events worldwide, then completes the booking on autonomad.ai (free signup at checkout, first month of Premium included).

🚆 Travel & Transportation0 views
campertunity/mcp-server

🎖️ 📇 🏠 - Search campgrounds around the world on campertunity, check availability, and provide booking links

🚆 Travel & Transportation0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.