NS Travel Information MCP Server
A Model Context Protocol (MCP) server that provides access to NS (Dutch Railways) travel information through Claude AI. This server enables Claude to fetch real-time train travel information and disruptions using the official Dutch NS API.
Overview
The NS Travel Information MCP Server is a Model Context Protocol (MCP) server designed to provide access to real-time travel information from NS (Dutch Railways) through Claude AI, allowing users to fetch data on train operations and disruptions efficiently.
To use this server, clone the repository, install the necessary dependencies, set up your environment file with your NS API key, and then run the server to integrate with the Claude AI desktop application.
- Real-time updates on train schedules and disruptions - Integration with Claude AI for seamless travel information access - Simple setup process with clear instructions
- Keeping commuters updated on train schedules and service disruptions.
- Enabling AI-based interaction for querying train information.
- Assisting travel planning by providing immediate access to travel data.
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": {
"ns-mcp-server-r-huijts": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ns-mcp-server-r-huijts"
]
}
}
}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": {
"ns-mcp-server-r-huijts": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ns-mcp-server-r-huijts"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"ns-mcp-server-r-huijts": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ns-mcp-server-r-huijts"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"ns-mcp-server-r-huijts": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ns-mcp-server-r-huijts"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ns-mcp-server-r-huijts": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ns-mcp-server-r-huijts"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"ns-mcp-server-r-huijts": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-ns-mcp-server-r-huijts"
]
}
}
}FAQ
How do I obtain an NS API Key?
You can get an API key by registering at the [NS API Portal](https://apiportal.ns.nl/).
Is the server compatible with any version of Claude?
Yes, it can be integrated with Claude Desktop by modifying the configuration file as specified in the setup instructions.
What happens if I do not enter a valid NS API key?
The server will not function properly, and you will not be able to retrieve any travel information until a valid key is provided.