About r-huijts/ns-mcp-server
r-huijts/ns-mcp-server is an MCP server published by r-huijts in the Maps category: a Model Context Protocol (MCP) server that provides access to NS (Dutch Railways) travel information through Claude AI. This server enables Claude to fetch real-time train travel information and disruptions using the official Dutch NS API. Conduid read 8 tools from its source: get_arrivals, get_current_time_in_rfc3339, get_departures, get_disruptions, get_ovfiets, get_prices and 2 more. No package is published for it, so it installs from a source checkout.
The repository has 66 stars and 19 forks, is licensed MIT, and its last commit was on 26 Aug 2025. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include maps.
Install
git clone https://github.com/r-huijts/ns-mcp-serverTools (8)
get_arrivalsGet real-time arrival information for trains at a specific station, including platform numbers, delays, origin stations, and any relevant travel notes. Returns a list of upcoming arrivals with timing, origin, and status information.| Parameter | Type | Description |
|---|---|---|
| dateTime | string | Format - date-time (as date-time in RFC3339). Only supported for arrivals at foreign stations. Defaults to server time (Europe/Amsterdam) |
| lang | string | Language for localizing the arrivals list. Only a small subset of text is translated, mainly notes. Defaults to Dutch |
| maxJourneys | number | Number of arrivals to return |
| station | string | NS Station code for the station (e.g., ASD for Amsterdam Centraal). Required if uicCode is not provided |
| uicCode | string | UIC code for the station. Required if station code is not provided |
get_current_time_in_rfc3339Get the current server time (Europe/Amsterdam timezone) in RFC3339 format. This can be used as input for other tools that require date-time parameters.get_departuresGet real-time departure information for trains from a specific station, including platform numbers, delays, route details, and any relevant travel notes. Returns a list of upcoming departures with timing, destination, and status information.| Parameter | Type | Description |
|---|---|---|
| dateTime | string | Format - date-time (as date-time in RFC3339). Only supported for departures at foreign stations. Defaults to server time (Europe/Amsterdam) |
| lang | string | Language for localizing the departures list. Only a small subset of text is translated, mainly notes. Defaults to Dutch |
| maxJourneys | number | Number of departures to return |
| station | string | NS Station code for the station (e.g., ASD for Amsterdam Centraal). Required if uicCode is not provided |
| uicCode | string | UIC code for the station. Required if station code is not provided |
get_disruptionsGet comprehensive information about current and planned disruptions on the Dutch railway network. Returns details about maintenance work, unexpected disruptions, alternative transport options, impact on travel times, and relevant advice. Can filter for active disruptions and specific disruption types.| Parameter | Type | Description |
|---|---|---|
| isActive | boolean | Filter to only return active disruptions |
| type | string | Type of disruptions to return (e.g., MAINTENANCE, DISRUPTION) |
get_ovfietsGet OV-fiets availability at a train station| Parameter | Type | Description |
|---|---|---|
| stationCode * | string | Station code to check OV-fiets availability for (e.g., ASD for Amsterdam Centraal) |
get_pricesGet price information for domestic train journeys, including different travel classes, ticket types, and discounts. Returns detailed pricing information with conditions and validity.| Parameter | Type | Description |
|---|---|---|
| adults | integer | Number of adults to return the price for |
| children | integer | Number of children to return the price for |
| fromStation * | string | UicCode or station code of the origin station |
| isJointJourney | boolean | Set to true to return the price including joint journey discount |
| plannedArrivalTime | string | Format - date-time (as date-time in RFC3339). Used to find the correct route if multiple routes are possible. |
| plannedDepartureTime | string | Format - date-time (as date-time in RFC3339). Used to find the correct route if multiple routes are possible. |
| routeId | string | Specific identifier for the route to take between the two stations. This routeId is returned in the /api/v3/trips call. |
| toStation * | string | UicCode or station code of the destination station |
| travelClass | string | Travel class to return the price for |
| travelType | string | Return the price for a single or return trip |
get_station_infoGet detailed information about a train station| Parameter | Type | Description |
|---|---|---|
| includeNonPlannableStations | boolean | Include stations where trains do not stop regularly |
| limit | number | Maximum number of results to return |
| query * | string | Station name or code to search for |
get_travel_adviceGet detailed travel routes between two train stations, including transfers, real-time updates, platform information, and journey duration. Can plan trips for immediate departure or for a specific future time, with options to optimize for arrival time. Returns multiple route options with status and crowding information.| Parameter | Type | Description |
|---|---|---|
| dateTime | string | Format - date-time (as date-time in RFC3339). Datetime that the user want to depart from his origin or or arrive at his destination |
| fromStation * | string | Name or code of departure station |
| searchForArrival | boolean | If true, dateTime is treated as desired arrival time |
| toStation * | string | Name or code of destination station |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 682 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 5 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:3
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 1 callsrc/services/NSApiService.ts:33
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 5 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 682 words, fetched a month ago. The original in the repository is authoritative.
Read full README