NS Travel Information MCP Server
Connects AI assistants to real-time NS (Nederlandse Spoorwegen) travel information, providing Dutch railway schedules, delay data, pricing, and station details.
Get this MCP server
Connects AI assistants to real-time NS (Nederlandse Spoorwegen) travel information, providing Dutch railway schedules, delay data, pricing, and station details.
Installation
NPX
npx -y ns-mcp-server
Smithery
npx -y @smithery/cli install ns-server --client claude
From Source Code
git clone [repository]
npm install
cp .env.example .env
# Add NS_API_KEY to .env file
Configuration
Claude Desktop (NPM)
{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
Claude Desktop (From Source Code)
{
"mcpServers": {
"ns-server": {
"command": "node",
"args": [
"/path/to/ns-server/build/index.js"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
Features
- Real-time departure and arrival information with platform numbers and delays
- Trip planning with optimal routes and transfers
- Service updates, including disruptions and maintenance work
- Ticket pricing for different classes and group bookings
- Station information, including amenities, accessibility, and OV-fiets availability
- Multi-language support (Dutch and English)
- Flexible station search by name, code, or UIC identifier
- Real-time status tracking for changes, delays, and cancellations
Environment Variables
Required
NS_API_KEY- Your NS API key (required)
Usage Examples
Is my usual 8:15 train from Almere to Amsterdam running on time?
Are there any delays on the Rotterdam-Den Haag route today?
What's the best alternative route to Utrecht if there's maintenance on the direct line?
Which train should I take to arrive at my office in Amsterdam Zuid before 9 AM?
Which route to Amsterdam has the fewest transfers with a stroller?
Notes
Requires an API key from the NS API Portal (https://apiportal.ns.nl/). After changing the configuration, restart Claude Desktop for changes to take effect.