RH

r-huijts/ns-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

66 stars 19 forks Качество 67 Тренд 1MIT

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 Источник

  1. Клонировать это хранилище

  2. Установить зависимости:

  3. Копировать примерный файл окружения:

  4. Добавьте ключ NS API в файл .env:

Обновите конфигурационный файл Claude:

Убедитесь, что:

  1. Заменить /path/to/ns-server фактическим путем к вашей установке
  2. Добавьте ключ 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

  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
    

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:

  1. Replace /path/to/ns-server with the actual path to your installation
  2. Add your NS API key in the env section. 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?”
Открыть полный README на GitHub

Установка

npx -y ns-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "ns-server": { "command": "npx", "args": [ "-y", "ns-mcp-server" ], "env": { "NS_API_KEY": "your_api_key_here" } } } }