NS Travel Information MCP Server

  • Travel & Transportation
JavaScript
MIT
A
security – no known vulnerabilities (report Issue)
A
license - permissive license (MIT)
A
quality - confirmed to work

An MCP server that provides access to NS (Dutch Railways) travel information.

  1. Tools
  2. Prompts
  3. Resources
  4. Server Configuration
  5. README.md

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_disruptionsGet current train disruptions from NS API
get_travel_adviceGet travel advice between two train stations
get_departuresGet list of departing trains from a station

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NS_API_KEYYesYour NS API key
README.md

NS Travel Information MCP Server

An MCP server that provides access to NS (Dutch Railways) travel information.

<a href="https://glama.ai/mcp/servers/tzd5oz5tov"><img width="380" height="200" src="https://glama.ai/mcp/servers/tzd5oz5tov/badge" alt="NS Travel Information Server MCP server" /></a>

Setup

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Copy the example environment file:
    cp .env.example .env
  4. Add your NS API key to the .env file:
    NS_API_KEY=your_api_key_here
    You can get an API key from NS API Portal
  5. Run the server:
    npm start

Integration with Claude Desktop

To add this server to Claude Desktop, update your Claude configuration file (~/Library/Application Support/Claude/claude_desktop_config.json) by adding the following to the mcpServers object:

{ "mcpServers": { "ns-server": { "command": "node", "args": [ "/path/to/ns-server/build/index.js" ], "env": { "NS_API_KEY": "your_api_key_here" } } } }

Make sure to:

  1. Replace /path/to/ns-server with the actual path to your installation
  2. Add your NS API key in the env section

After updating the configuration, restart Claude Desktop for the changes to take effect.

Environment Variables

VariableDescription
NS_API_KEYYour NS API key (required)

License

This project is licensed under the MIT License - see the LICENSE file for details

GitHub Badge

Glama performs regular codebase and documentation scans to:

  • Confirm that the MCP server is working as expected.
  • Confirm that there are no obvious security issues with dependencies of the server.
  • Extract server characteristics such as tools, resources, prompts, and required parameters.

Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.

Copy the following code to your README.md file:

Alternative MCP servers

  • A
    security
    A
    license
    A
    quality
    A Claude Desktop MCP server that helps you track flights in real-time using Flightradar24 data. Perfect for aviation enthusiasts, travel planners, or anyone curious about flights overhead!
    MIT
    • Apple
  • A
    security
    A
    license
    A
    quality
    A MCP server for querying the [VirusTotal](https://www.virustotal.com/gui/home/upload) API. This server provides tools for scanning URLs, analyzing file hashes, and retrieving IP address reports.
    MIT
    • Apple
  • A
    security
    A
    license
    A
    quality
    This is a TypeScript-based MCP server that allows searching for New York Times articles from the last 30 days based on a keyword.
    MIT
    • Apple
  • A
    security
    A
    license
    A
    quality
    An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.
    MIT