NS Travel Information MCP Server
- Travel & Transportation
An MCP server that provides access to NS (Dutch Railways) travel information.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
get_disruptions | Get current train disruptions from NS API |
get_travel_advice | Get travel advice between two train stations |
get_departures | Get list of departing trains from a station |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
NS_API_KEY | Yes | Your NS API key |
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
- Clone this repository
- Install dependencies:Copynpm install
- Copy the example environment file:Copycp .env.example .env
- Add your NS API key to the
.env
file:You can get an API key from NS API PortalCopyNS_API_KEY=your_api_key_here - Run the server:Copynpm 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:
Make sure to:
- Replace
/path/to/ns-server
with the actual path to your installation - Add your NS API key in the
env
section
After updating the configuration, restart Claude Desktop for the changes to take effect.
Environment Variables
Variable | Description |
---|---|
NS_API_KEY | Your 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: