NS Travel Information
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.
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
Maintainer
Works with
Installation
Manual Installation
npx ns-travel-information-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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.
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.
Test a departure query
Ask Claude about train departures from a Dutch station to verify the connection is working correctly.
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.
NS Travel Information Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to NS Travel Information? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
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.
Set Up NS Travel Information in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.