NS Travel Information MCP Server
Integrate real-time Dutch train data into your AI workflows using the NS Travel Information MCP Server, unlocking live schedules, disruptions, and journey planning for travelers.

What does “NS Travel Information” MCP Server do?
The NS Travel Information MCP Server is a Model Context Protocol (MCP) server designed to connect AI assistants—such as Claude—to the real-time travel information provided by NS (Nederlandse Spoorwegen, the Dutch Railways). By leveraging the official Dutch NS API, this server allows AI agents to fetch live train schedules, journey planning data, and real-time service disruptions. This integration enhances AI-driven workflows by making up-to-date Dutch railway information readily accessible for queries, travel planning, and notifications. It empowers AI assistants to act as knowledgeable travel companions for users navigating train journeys in the Netherlands, thus streamlining travel assistance, route suggestions, and disruption alerts.
List of Prompts
(No prompt templates are explicitly mentioned in the available documentation or codebase.)
List of Resources
(No explicit resources are documented or listed in the available repository content.)
List of Tools
(No explicit list of MCP tools is provided in the documentation or server.py equivalent. The server primarily exposes NS train information via its API integration.)
Use Cases of this MCP Server
- Real-Time Train Schedule Queries: Allow users to ask their AI assistant for live train departure and arrival times across the Netherlands.
- Journey Planning: Enable the AI to suggest optimal routes, including transfers and timing, for journeys via NS trains.
- Disruption Notifications: Provide real-time alerts about service disruptions, delays, or cancellations, helping users adapt their plans.
- Travel Assistance for Tourists and Residents: Offer context-aware travel guidance, such as platform changes or last-minute updates, making the AI a valuable companion for both frequent travelers and visitors.
- Integration with Multimodal Itineraries: Combine NS train data with other modes of transport for comprehensive travel planning within AI-driven applications.
How to set it up
Windsurf
(No specific Windsurf instructions found in the repository.)
Claude
- Ensure Node.js is installed.
- Obtain your NS API key via the NS API Portal.
- Edit your Claude configuration (
~/Library/Application Support/Claude/claude_desktop_config.json
):{ "mcpServers": { "ns-server": { "command": "npx", "args": [ "-y", "ns-mcp-server" ], "env": { "NS_API_KEY": "your_api_key_here" } } } }
- Save the file and restart Claude Desktop.
- Verify the MCP server is running by checking for NS-related responses in Claude.
Securing API Keys
Environment variables are used for API key storage:
"env": {
"NS_API_KEY": "your_api_key_here"
}
Cursor
(No specific Cursor instructions found in the repository.)
Cline
(No specific Cline instructions found in the repository.)
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"ns-server": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “ns-server” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Overview present in README and project description. |
List of Prompts | ⛔ | No prompt templates documented. |
List of Resources | ⛔ | No explicit MCP resources listed. |
List of Tools | ⛔ | No explicit tool functions documented. |
Securing API Keys | ✅ | Environment variable (NS_API_KEY ) documented in setup. |
Sampling Support (less important in evaluation) | ⛔ | No mention of sampling support. |
Our opinion
The NS Travel Information MCP Server is focused and useful for train travel data but lacks detailed documentation on MCP prompt templates, exposed resources, and tools. Its setup instructions are straightforward for Claude but not for other platforms. This limits its score for versatility, but it is practical for its niche.
MCP Score
Has a LICENSE | ✅ (MIT) |
---|---|
Has at least one tool | ⛔ |
Number of Forks | 8 |
Number of Stars | 38 |
Frequently asked questions
- What does the NS Travel Information MCP Server do?
It enables AI assistants to access real-time Dutch train schedules, journey planning, and disruption alerts by connecting to the official NS API. This allows AI-driven applications to provide accurate travel advice and notifications for train journeys in the Netherlands.
- What are common use cases for this MCP server?
Typical uses include live train schedule queries, multi-leg journey planning, real-time disruption notifications, and general travel assistance for residents and tourists using Dutch railways.
- How do I secure my NS API key?
Always store your NS API key in environment variables (e.g., 'NS_API_KEY') as shown in setup instructions, and never hard-code sensitive information in your configuration files.
- Are there prompt templates or tool functions available?
No explicit prompt templates or MCP tool functions are documented for this server. It primarily provides live train data through its API integration.
- Does the server support platforms other than Claude?
While setup instructions are detailed for Claude, you can integrate the MCP server into FlowHunt or other platforms by specifying the server endpoint and transport in your configuration.
Try the NS Travel Information MCP Server
Empower your AI assistant with live Dutch train schedules, journey planning, and disruption alerts via the NS Travel Information MCP Server.