https://github.com/r-huijts/ns-mcp-server
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.
https://github.com/r-huijts/ns-mcp-server
Last synced: 7 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/r-huijts/ns-mcp-server
- Owner: r-huijts
- License: mit
- Created: 2024-12-04T11:32:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T13:16:05.000Z (7 months ago)
- Last Synced: 2024-12-17T14:24:00.257Z (7 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - ns-mcp-server - MCP Server for accessing Dutch Railways (NS) travel information, including schedules and real-time updates. An example of an MCP Server for transportation. ([Read more](/details/ns-mcp-server.md)) `mcp` `transportation` `real-time` `open-data` (Data Access & Integration MCP Servers)
- awesome-mcp-zh - NS Travel Information MCP Server
- awesome-mcp-servers - NS Travel Information MCP Server - Access Dutch Railways (NS) travel information, schedules, and real-time updates (Legend / 🚆 <a name="travel-and-transportation"></a>Travel & Transportation)
- awesome-mcp-servers - NS Travel Information MCP Server - Access Dutch Railways (NS) travel information, schedules, and real-time updates (Legend / 🚆 <a name="travel-and-transportation"></a>Travel & Transportation)
- awesome-mcp-servers - NS Travel Information MCP Server - オランダ鉄道(NS)の旅行情報、スケジュール、およびリアルタイムの更新にアクセス (サーバー実装 / 🚆 <a name="travel-and-transportation"></a>旅行と交通)
- mcp-index - NS Travel Information Server - Provides real-time travel information for Dutch Railways (NS), enabling users to access schedules, train statuses, and travel-related queries. (Task and Project Management)
- awesome-mcp-servers - NS Travel Information MCP Server - 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. (Table of Contents / Travel and Transportation)
- awesome-mcp-servers - NS Travel Information MCP Server - 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. (Table of Contents / Travel and Transportation)
README
# NS Travel Information MCP Server
An MCP server that provides access to NS (Dutch Railways) travel information.
## Setup
1. Clone this repository
2. Install dependencies:
```bash
npm install
```
3. Copy the example environment file:
```bash
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](https://apiportal.ns.nl/)5. Run the server:
```bash
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:
```json
{
"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` sectionAfter 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](LICENSE) file for details