Loading...

This MCP server provides real-time NS (Nederlandse Spoorwegen) travel information, enabling AI assistants to plan train journeys in the Netherlands.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server provides real-time NS (Nederlandse Spoorwegen) travel information, enabling AI assistants to plan train journeys in the Netherlands.
This server is relatively safe due to its read-only nature and reliance on an API key for authentication. However, proper handling of the NS API key and sanitization of responses are crucial to prevent potential risks. Avoid storing the API key directly in code.
Performance is largely dependent on the NS API's response times. Caching frequently accessed data can improve performance.
Cost is primarily determined by the usage of the NS API, which may have usage limits or associated fees.
npx -y @smithery/cli install ns-server --client claude{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}NS_API_KEYget_departuresRetrieves real-time departure information for a given station.
Read-only operation, no modification of data.
get_arrivalsRetrieves upcoming train arrival information for a given station.
Read-only operation, no modification of data.
plan_journeyFinds optimal travel routes between two stations with real-time updates.
Read-only operation, only provides travel suggestions.
get_station_detailsAccesses comprehensive information about a specific train station.
Read-only operation, provides static station information.
get_ticket_priceRetrieves pricing information for train tickets between two locations.
Read-only operation, provides pricing information.
API Key
cloud
This server is relatively safe due to its read-only nature and reliance on an API key for authentication. However, proper handling of the NS API key and sanitization of responses are crucial to prevent potential risks. Avoid storing the API key directly in code.
This server operates in read-only mode, limiting the potential for unintended actions. However, the accuracy of the information depends on the NS API.
Production Tip
Implement robust error handling and logging to monitor API usage and identify potential issues.
You can obtain an API key from the NS API Portal: https://apiportal.ns.nl/
You can access real-time train departures, arrivals, journey planning, station details, and ticket pricing.
The server itself is free, but you may incur costs depending on your usage of the NS API.
The accuracy of the information depends on the NS API, which provides real-time data.
No, this server only provides information and does not support ticket booking.
Yes, the server supports information in both Dutch and English.
The server will be unable to provide information, and an error message will be returned.