Skip to main content
Glama
McCullonas

mcp-ns-railways

by McCullonas

mcp-ns-railways

MCP server for Dutch railway queries via the NS API. Covers NS intercity, Sprinter, and international train services.

Status: Work in Progress — Server scaffolding is in place. Tools are not yet implemented.


Prerequisites

  • Bun runtime (curl -fsSL https://bun.sh/install | bash)

  • An NS API key — free registration required


Related MCP server: ns-bridge

Planned Tools

  • ns_search_stations — Search Dutch railway stations by name

  • ns_get_departures — Get departures from a station with live delay info

  • ns_get_trips — Plan journeys between two Dutch stations

  • ns_get_disruptions — Get current disruptions and maintenance works


Data Source

The NS Developer Portal provides access to NS timetable, real-time, and disruption data. Free registration gives access to the Reisinformatie API.


Install

git clone git@github.com:McCullonas/mcp-ns-railways.git
cd mcp-ns-railways
bun install

MCP Client Configuration (once implemented)

{
  "mcpServers": {
    "ns-railways": {
      "command": "bun",
      "args": ["run", "/path/to/mcp-ns-railways/src/index.ts"],
      "env": {
        "NS_API_KEY": "your-key-here"
      }
    }
  }
}

Licence

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that enables AI assistants to interact with the Netherlands Railways (NS) API for route planning, pricing, and real-time departure information. It provides tools for searching stations, planning trips with connections, and viewing real-time departure boards.
    3
    1
    MIT
  • F
    license
    Not graded
    quality
    F
    maintenance
    An MCP server to retrieve train schedules from National Rail using the Realtime Trains API, providing tools for live departures and arrivals.
    7
    -