Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 10 days 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.

Awesome Lists containing this project

README

        

# NS Travel Information MCP Server

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

NS Travel Information Server MCP server

## 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` 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](LICENSE) file for details