Transform your AI assistant with real-time Dutch train information and journey planning for seamless travel
The NS Travel Information MCP Server integrates real-time train data from Nederlandse Spoorwegen (NS) into your AI application, enabling it to provide highly accurate and up-to-date travel information. This server acts as a bridge between Claude Desktop and the NS API portal, allowing you to build intelligent applications that can answer a wide range of questions related to Dutch railway travel.
The NS Travel Information MCP Server offers a robust set of features aligned with Model Context Protocol (MCP) standards. These include real-time train information endpoints for departures, arrivals, journey planning, and service updates, as well as detailed station information covering facilities, accessibility, OV-fiets bike rental, and platform details.
The NS Travel Information MCP Server adheres to the Model Context Protocol (MCP) architecture and protocol implementation guidelines. This ensures seamless integration with various AI applications through standardized communication protocols, making it compatible with other MCP clients like Claude Desktop, Continue, Cursor, etc.
graph TB
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD;
N[Persistent Store] --> M[API Gateway];
M --> A[Database Layer]--|Models-- P[Application Service]
A --> D[(Data Sources)]
P --> R[Response Builder]
R --> S[Client];
style N fill:#e8f5e8
style M fill:#f3e5f5
style A fill:#e1f5fe
style D fill:#f7dce9
To install and set up the NS Travel Information MCP Server, follow these steps:
Update your Claude configuration file (~/Library/Application Support/Claude/claude_desktop_config.json
) to include the following:
{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
You can obtain an API key from the NS API Portal.
Install NS Travel Information Server automatically using Smithery:
npx -y @smithery/cli install ns-server --client claude
Clone this repository.
Install the necessary dependencies:
npm install
Copy the example environment file:
cp .env.example .env
Add your NS API key to the .env
file:
NS_API_KEY=your_api_key_here
Update your Claude configuration file with this:
{
"mcpServers": {
"ns-server": {
"command": "node",
"args": [
"/path/to/ns-server/build/index.js"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
Make sure to:
/path/to/ns-server
with the actual path where you installed NS Travel Information.env
section. It can be obtained from https://apiportal.ns.nl/product#product=NsApp.After updating the configuration, restart Claude Desktop for the changes to take effect.
The NS Travel Information MCP Server is compatible with a range of MCP clients, including Claude Desktop, Continue, Cursor, etc. Here’s the compatibility matrix:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
Ensure the server's performance and compatibility are optimized for various AI workflows.
For advanced users, configure and secure your setup as needed:
{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"node_modules/ns-mcp-server/dist/index.js"
],
"env": {
"NS_API_KEY": "${API_KEY}"
}
}
}
}
Ensure environmental variables are safeguarded and properly managed.
A: Obtain your NS API key from the NS API Portal.
A: Yes, robust handling of time zones and international station names ensures consistent performance across all locations.
A: Data is transmitted securely using HTTPS to maintain confidentiality and integrity.
A: The server continuously polls the NS API for updates, ensuring that your AI application receives timely information.
A: The server has built-in failover mechanisms to cache data and provide fallback responses until service is restored.
Contribute to the development of this project by following these guidelines:
Join the MCP ecosystem by exploring additional resources and documentation:
By leveraging NS Travel Information MCP Server, you can significantly enhance your AI application's capabilities in providing real-time travel details and optimize user experiences.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Set up MCP Server for Alpha Vantage with Python 312 using uv and MCP-compatible clients