
r-huijts/ns-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
r-huijts/ns-mcp-сервер - кандидат на сервер MCP, импортированный из https://github.com/r-huijts/ns-mcp-server.
Обзор
r-huijts/ns-mcp-сервер - кандидат на сервер MCP, импортированный из https://github.com/r-huijts/ns-mcp-server.
Обзор (машинный перевод)
[править] [править править код]
NS Travel Information MCP Server
Превратите своего помощника в голландского эксперта по железным дорогам! Этот MCP-сервер соединяет Клода с информацией о путешествиях в режиме реального времени (Nederlandse Spoorwegen), что делает его идеальным компаньоном для навигации по Нидерландам на поезде.
##Установка
Вы можете установить этот сервер тремя способами:
###1 Использование Claude Desktop с пакетом NPM
Обновите конфигурационный файл Claude ([T0]):
Вы можете получить ключ API с портала NS API
###2 Использование Смитери
Для автоматической установки NS Travel Information Server через Smithery:
###3 Источник
-
Клонировать это хранилище
-
Установить зависимости:
-
Копировать примерный файл окружения:
-
Добавьте ключ NS API в файл
.env:
Обновите конфигурационный файл Claude:
Убедитесь, что:
- Заменить
/path/to/ns-serverфактическим путем к вашей установке - Добавьте ключ NS API в раздел
env. Это можно сделать здесь [4].
После обновления конфигурации перезапустите Claude Desktop, чтобы изменения вступили в силу.
Реальные случаи использования
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
NS Travel Information MCP Server
Transform your AI assistant into a Dutch railways expert! This MCP server connects Claude to real-time NS (Nederlandse Spoorwegen) travel information, making it your perfect companion for navigating the Netherlands by train.
Installation
You can install this server in three ways:
1. Using Claude Desktop with NPM Package
Update your Claude configuration file (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
You can get an API key from NS API Portal
2. Using Smithery
To install NS Travel Information Server automatically via Smithery:
npx -y @smithery/cli install ns-server --client claude
3. From Source
- Clone this repository
- Install dependencies:
npm install - Copy the example environment file:
cp .env.example .env - Add your NS API key to the
.envfile:NS_API_KEY=your_api_key_here
Then update your Claude configuration file:
{
"mcpServers": {
"ns-server": {
"command": "node",
"args": [
"/path/to/ns-server/build/index.js"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
Make sure to:
- Replace
/path/to/ns-serverwith the actual path to your installation - Add your NS API key in the
envsection. It can be obtained from here https://apiportal.ns.nl/product#product=NsApp
After updating the configuration, restart Claude Desktop for the changes to take effect.
Real-World Use Cases
- “Is my usual 8:15 train from Almere to Amsterdam running on time?”
- “Are there any delays on the Rotterdam-Den Haag route today?”
- “What’s the best alternative route to Utrecht if there’s maintenance on the direct line?”
- “Which train should I take to arrive at my office in Amsterdam Zuid before 9 AM?”
- “Which route to Amsterdam has the fewest transfers with a stroller?”
- “What’s the earliest train I can take to make my 10 AM meeting in The Hague?”
Установка
npx -y ns-mcp-serverКонфигурация
{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}