NS Travel Information

v1.0.0Search & Data Extractionstable

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.

ns-travel-information-mcp-servermcpai-integration
Share:
53
Stars
0
Downloads
0
Weekly
0/5

What is NS Travel Information?

NS Travel Information is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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 disrupt...

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.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol (MCP) server that provides access t

Use Cases

Get real-time Dutch train schedules
Check travel disruptions and alerts
r-huijts

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedApr 17, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx ns-travel-information-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use NS Travel Information

The NS Travel Information MCP Server connects Claude to the official Dutch Railways (NS) API, providing real-time train departure and arrival information, journey planning, service disruptions, ticket pricing, and station facility data for the Dutch rail network. It is built with TypeScript and communicates directly with the NS public API, making it useful for commuters, travelers, and developers in the Netherlands who want to query train schedules and disruptions through natural language. The server supports queries in both Dutch and English, covering the full NS national network.

Prerequisites

  • Node.js 18 or later installed
  • An NS API key obtained from the NS API Portal at https://apiportal.ns.nl/ (free registration required)
  • An MCP-compatible client such as Claude Desktop
1

Register for an NS API key

Visit https://apiportal.ns.nl/ and create a free account. Subscribe to the Ns-App product to get an API key that grants access to travel information, disruptions, and pricing endpoints.

2

Add the server to Claude Desktop configuration

Edit claude_desktop_config.json to register the NS travel server and pass your API key as an environment variable. The server is run via npx and requires no separate installation.

3

Restart Claude Desktop

After saving the config file, restart Claude Desktop to load the new server. The package will be downloaded automatically by npx on first start.

4

Test a departure query

Ask Claude about train departures from a Dutch station to verify the connection is working correctly.

5

Query disruptions and journey planning

Use the server to check current service disruptions and plan journeys between stations with live delay information.

NS Travel Information Examples

Client configuration

Add this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json). Replace the API key value with your actual NS API key.

{
  "mcpServers": {
    "ns-travel": {
      "command": "npx",
      "args": ["-y", "ns-mcp-server"],
      "env": {
        "NS_API_KEY": "your-ns-api-key-here"
      }
    }
  }
}

Prompts to try

Once connected, use these prompts to query the Dutch rail network.

- "Is my usual 8:15 train from Almere to Amsterdam Centraal running on time?"
- "What's the best alternative route from Utrecht to Rotterdam if there's maintenance on the direct line?"
- "Are there any disruptions currently affecting trains between Den Haag and Amsterdam?"
- "How much does a first-class return ticket from Amsterdam to Eindhoven cost?"
- "Are there OV-fiets bikes available at Utrecht Centraal station right now?"

Troubleshooting NS Travel Information

401 Unauthorized error from NS API

Your NS_API_KEY is missing, incorrect, or the subscription is not active. Log in to apiportal.ns.nl, verify your subscription to the Ns-App product, and copy the Primary Key from your profile.

Station not found or wrong results returned

Use the official NS station name or code (e.g. 'Amsterdam Centraal', not just 'Amsterdam'). The API is case-sensitive for some station names. Check the NS station list at ns.nl for exact names.

Departure times not matching real-world board

The NS API returns times in CET/CEST. Ensure your system clock is correct and check whether you are querying departures or arrivals — the endpoints are separate in the API.

Frequently Asked Questions about NS Travel Information

What is NS Travel Information?

NS Travel Information is a Model Context Protocol (MCP) server that 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. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install NS Travel Information?

Follow the installation instructions on the NS Travel Information GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with NS Travel Information?

NS Travel Information works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is NS Travel Information free to use?

Yes, NS Travel Information is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "ns-travel-information-mcp-server": { "command": "npx", "args": ["-y", "ns-travel-information-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use NS Travel Information?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides