Back to MCP Directory
Ns
Model Context Protocol low risk

Ns

This MCP server provides real-time NS (Nederlandse Spoorwegen) travel information, enabling AI assistants to plan train journeys in the Netherlands.

Connections & Capabilities

Connects To

GitHubTwitter

Capabilities

read

Quickstart

Install

npx -y @smithery/cli install ns-server --client claude

Config

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

Exposed MCP Tools (5)

safe
get_departures

Retrieves real-time departure information for a given station.

Read-only operation, no modification of data.

safe
get_arrivals

Retrieves upcoming train arrival information for a given station.

Read-only operation, no modification of data.

safe
plan_journey

Finds optimal travel routes between two stations with real-time updates.

Read-only operation, only provides travel suggestions.

safe
get_station_details

Accesses comprehensive information about a specific train station.

Read-only operation, provides static station information.

safe
get_ticket_price

Retrieves pricing information for train tickets between two locations.

Read-only operation, provides pricing information.

Safety Assessment

This server is relatively safe due to its read-only nature and reliance on an API key for authentication. However, proper handling of the NS API key and sanitization of responses are crucial to prevent potential risks. Avoid storing the API key directly in code.

  • Read-only access to train schedules and station information.
  • No direct control over railway operations.
  • API key authentication adds a layer of security.
  • Limited scope of functionality reduces potential attack surface.
  • Exposure of NS API key if not properly secured.
  • Potential for information disclosure if responses are not sanitized.
  • Reliance on external NS API introduces a dependency risk.
  • No built-in rate limiting could lead to excessive API usage.