Ns MCP Server

Transform your AI assistant into a Dutch railways expert! This MCP server connects Claude to real-time NS (Nederlandse Spoorwegen) travel

Local serverstdio

What is the Ns MCP server?

Transform your AI assistant into a Dutch railways expert! This MCP server connects Claude to real-time NS (Nederlandse Spoorwegen) travel information, making it your perfect companion for navigating the Netherlands by train. Exposed over MCP by the ns mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

Adding it to your client

The server ships on npm as @smithery/cli, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Its toolset

Everything the assistant can do here goes through one of these:

  • Departures — Get real-time departure information including platform numbers, delays, and travel notes
  • Arrivals — Access upcoming train arrivals with origin stations, platform changes, and status updates
  • Multi — language Support**: Information available in Dutch and English
  • Variable — Description
  • NS_API_KEY — Your NS API key (required)

Configuration

You will need one environment variable: NS_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the ns mcp server does with a few real requests.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Ns's toolset — Departures, Arrivals, Multi and 2 more — is a fair guide to whether it matches your workflow. It is maintained by r-huijts; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
DeparturesGet real-time departure information including platform numbers, delays, and travel notes
ArrivalsAccess upcoming train arrivals with origin stations, platform changes, and status updates
Multilanguage Support**: Information available in Dutch and English
VariableDescription
NS_API_KEYYour NS API key (required)

How to install the Ns MCP server

{
  "mcpServers": {
    "ns-server": {
      "command": "npx",
      "args": [
        "-y",
        "ns-mcp-server"
      ],
      "env": {
        "NS_API_KEY": "your_api_key_here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
NS_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Ns to Departures.
  • Use Ns to Arrivals.
  • Use Ns to Multi.

Frequently asked questions

It connects Ns to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Departures, Arrivals, Multi, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Ns directly.