Overview
The NS Travel Information MCP Server is a server that provides access to travel information from the Dutch Railways (NS).
To use the server, clone the repository, install the dependencies, set up your environment variables with your NS API key, and run the server.
- Access to real-time travel information from NS - Easy setup and integration with Claude Desktop - Customizable environment variables for API integration
- Integrating NS travel information into applications.
- Providing real-time updates on train schedules and delays.
- Enhancing travel planning tools with accurate data from Dutch Railways.
Add to your AI client
Use these steps to connect NS Travel Information MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"r-huijts-ns-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-r-huijts-ns-mcp-server-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"r-huijts-ns-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-r-huijts-ns-mcp-server-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"r-huijts-ns-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-r-huijts-ns-mcp-server-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"r-huijts-ns-mcp-server-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-r-huijts-ns-mcp-server-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"r-huijts-ns-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-r-huijts-ns-mcp-server-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"r-huijts-ns-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-r-huijts-ns-mcp-server-mcp-mirror"
]
}
}
}FAQ
How do I get an NS API key?
You can obtain an API key from the NS API Portal.
Is there a license for this project?
Yes, the project is licensed under the MIT License.