- Home
- MCP servers
- NS Travel Information
NS Travel Information
- typescript
46
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"r-huijts-ns-mcp-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}The NS Travel Information MCP Server connects Claude to real-time NS train data, empowering you to ask for live departures, arrivals, journey planning, pricing, and station details so you can navigate the Dutch rail network with confidence.
How to use
You access the NS Travel Information MCP Server through your MCP client to fetch real-time train data and travel information. Typical use cases include checking whether your usual 8:15 train from Almere to Amsterdam is on time, finding the fastest route with the fewest transfers, comparing ticket prices between first and second class, and checking OV-fiets availability at a station. You can ask for live departures and arrivals, plan journeys with real-time updates, and get service updates about disruptions or maintenance. The server supports multi-language output (Dutch and English) and can search by station name, code, or UIC identifier.
How to install
Prerequisites: Install Node.js and npm on your machine. You will also need access to an NS API key from the NS API Portal.
Additional sections
Configuration and environment variables are described below. Ensure you add your NS_API_KEY to the environment where you run the MCP server. The server exposes endpoints for real-time train information, pricing, station details, and service updates, and supports multi-language responses.
Available tools
Departures
Get real-time departures including platform numbers, delays, and travel notes.
Arrivals
Access upcoming train arrivals with origin stations, platform changes, and status updates.
Journey Planning
Find optimal travel routes with transfers and real-time updates.
Service Updates
Check disruptions, maintenance work, and engineering activities.
Ticket Prices
Retrieve pricing for single and return journeys.
Travel Classes
Compare prices for first and second class travel.
Group Pricing
Calculate fares for adults and children.
Discount Options
Check joint journey discounts and special offers.
Validity Details
View ticket validity periods and travel conditions.
Station Details
Access facilities, accessibility features, platform layouts, OV-fiets availability, and location details.