Transform your AI assistant into a Dutch railways expert! This MCP server connects Claude to real-time NS (Nederlandse Spoorwegen) travel information, making it your perfect companion for navigating the Netherlands by train. You can install this server in three ways: Update your Claude configuration file (~/Library/Application Support/Claude/claudedesktopconfig.json): You can get an API key from N
Add this skill
npx mdskills install r-huijts/ns-mcp-serverProvides comprehensive real-time Dutch railway data with clear setup instructions and practical use cases
1[](https://mseep.ai/app/r-huijts-ns-mcp-server)23| <img src="https://upload.wikimedia.org/wikipedia/commons/b/b7/Nederlandse_Spoorwegen_logo.svg" alt="NS Logo" width="380"/> | <img src="https://glama.ai/mcp/servers/tzd5oz5tov/badge" alt="NS Travel Information Server MCP server" width="380"/> |4|:---:|:---:|56# NS Travel Information MCP Server78[](https://smithery.ai/server/ns-server)9[](https://www.npmjs.com/package/ns-mcp-server)1011Transform your AI assistant into a Dutch railways expert! This MCP server connects Claude to real-time NS (Nederlandse Spoorwegen) travel information, making it your perfect companion for navigating the Netherlands by train.1213## Installation1415You can install this server in three ways:1617### 1. Using Claude Desktop with NPM Package1819Update your Claude configuration file (`~/Library/Application Support/Claude/claude_desktop_config.json`):2021```json22{23 "mcpServers": {24 "ns-server": {25 "command": "npx",26 "args": [27 "-y",28 "ns-mcp-server"29 ],30 "env": {31 "NS_API_KEY": "your_api_key_here"32 }33 }34 }35}36```3738You can get an API key from [NS API Portal](https://apiportal.ns.nl/)3940### 2. Using Smithery4142To install NS Travel Information Server automatically via [Smithery](https://smithery.ai/server/ns-server):4344```bash45npx -y @smithery/cli install ns-server --client claude46```4748### 3. From Source49501. Clone this repository512. Install dependencies:52 ```bash53 npm install54 ```553. Copy the example environment file:56 ```bash57 cp .env.example .env58 ```594. Add your NS API key to the `.env` file:60 ```61 NS_API_KEY=your_api_key_here62 ```6364Then update your Claude configuration file:6566```json67{68 "mcpServers": {69 "ns-server": {70 "command": "node",71 "args": [72 "/path/to/ns-server/build/index.js"73 ],74 "env": {75 "NS_API_KEY": "your_api_key_here"76 }77 }78 }79}80```8182Make sure to:831. Replace `/path/to/ns-server` with the actual path to your installation842. Add your NS API key in the `env` section. It can be obtained from here [https://apiportal.ns.nl/product#product=NsApp](https://apiportal.ns.nl/product#product=NsApp)8586After updating the configuration, restart Claude Desktop for the changes to take effect.8788## Real-World Use Cases8990- "Is my usual 8:15 train from Almere to Amsterdam running on time?"91- "Are there any delays on the Rotterdam-Den Haag route today?"92- "What's the best alternative route to Utrecht if there's maintenance on the direct line?"93- "Which train should I take to arrive at my office in Amsterdam Zuid before 9 AM?"94- "Which route to Amsterdam has the fewest transfers with a stroller?"95- "What's the earliest train I can take to make my 10 AM meeting in The Hague?"96- "When's the last train back to Groningen after a night out in Amsterdam?"97- "Are there any weekend engineering works that might affect my Monday morning class?"98- "Are there OV-fiets bikes available at Utrecht Centraal for my afternoon meeting?"99- "Is Eindhoven Strijp-S station wheelchair accessible and what platforms does it have?"100- "What trains are arriving at Utrecht Centraal in the next hour?"101- "Has the train from Venlo to Schiphol Airport arrived on time?"102- "How much does a first-class ticket from Amsterdam to Rotterdam cost?"103- "What's the price for 2 adults and 1 child traveling to Den Haag?"104105## ๐ Environment Variables106107| Variable | Description |108|----------|-------------|109| NS_API_KEY | Your NS API key (required) |110111## ๐ Features112113This MCP server provides comprehensive access to NS train information through the following endpoints:114115### Real-time Train Information116- **Departures**: Get real-time departure information including platform numbers, delays, and travel notes117- **Arrivals**: Access upcoming train arrivals with origin stations, platform changes, and status updates118- **Journey Planning**: Find optimal travel routes with transfers and real-time updates119- **Service Updates**: Check for disruptions, maintenance work, and engineering activities120121### Pricing Information122- **Ticket Prices**: Get accurate pricing for single and return journeys123- **Travel Classes**: Compare prices for first and second class travel124- **Group Pricing**: Calculate fares for adults and children125- **Discount Options**: Check joint journey discounts and special offers126- **Validity Details**: View ticket validity periods and travel conditions127128### Station Information129- **Station Details**: Access comprehensive station information including:130 - Facilities and accessibility features131 - Platform layouts and track information132 - OV-fiets (bike rental) availability133 - Location and approach details134135### Additional Features136- **Multi-language Support**: Information available in Dutch and English137- **Flexible Queries**: Search by station name, code, or UIC identifier138- **Time Zones**: Proper handling of time zones for international stations139- **Status Updates**: Track changes, delays, and cancellations in real-time140141## License142143This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details144
Full transparency โ inspect the skill content before installing.