NS Travel Information MCP Server

NS Travel Information MCP Server

镜像

NS 旅行信息服务器 MCP 服务器

这个MCP服务器提供荷兰铁路(NS)旅行信息的访问接口。

安装与设置

# 1. 克隆仓库
git clone [仓库URL]

# 2. 安装依赖
npm install

# 3. 设置环境变量
cp .env.example .env
# 编辑.env文件,添加您的NS API密钥
# NS_API_KEY=your_api_key_here

🔑 从NS API Portal获取API密钥

运行服务器

npm start

Claude桌面集成

编辑Claude配置文件(~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "ns-server": {
      "command": "node",
      "args": [
        "/path/to/ns-server/build/index.js"
      ],
      "env": {
        "NS_API_KEY": "your_api_key_here"
      }
    }
  }
}

⚠️ 修改配置后需重启Claude Desktop

环境变量

变量描述
NS_API_KEYNS API密钥(必需)

许可证

MIT许可证