RH

r-huijts/ns-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

64 stars 18 forks 质量 67 趋势 0MIT

r-huijts/ns-mcp-server 是从 https://github.com/r-huijts/ns-mcp-server. 导入的 MCP 服务器候选

概览

r-huijts/ns-mcp-server 是从 https://github.com/r-huijts/ns-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

NS 旅行信息 MCP 服务器

将您的AI助手转变为荷兰铁路专家!该MCP服务器将Claude连接到实时的荷兰铁路(NS)出行信息,使其成为您乘坐火车导航荷兰的完美伙伴。

安装

你可以通过三种方式安装这台服务器:

1.使用 Claude Desktop 搭配 NPM 软件包

更新你的Claude配置文件(~/Library/Application Support/Claude/claude_desktop_config.json):

你可以从 NS API 门户获取 API 密钥

2.使用 Smithery

通过Smithery自动安装NS旅行信息服务器:

3.来源

  1. 克隆此仓库

  2. 安装依赖:

  3. 复制示例环境文件:

  4. 将你的 NS API 密钥添加到 .env 文件中:

然后更新你的Claude配置文件:

务必:

  1. 将/path/to/ns-server替换为实际安装路径
  2. 在env部分添加你的NS API密钥。可以从这里[[T4]获取。

更新配置后,重启Claude Desktop,以便更改生效。

现实世界用例

本页由 AI 翻译,技术细节请以原文为准。

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?”
在 GitHub 查看完整 README

安装

npx -y ns-mcp-server
新手?先看 mcpskill.org 教程 →

配置

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