将您的 AI 助手变成荷兰铁路专家!此 MCP 服务器连接了 Claude 和实时 NS(Nederlandse Spoorwegen)旅行信息,让它成为您在荷兰乘火车出行的理想伴侣。
此 MCP 服务器能将您的 AI 助手打造成荷兰铁路专家,通过连接 Claude 和实时 NS 旅行信息,为您的荷兰火车出行提供便利。
您可以使用三种方式安装此服务器:
更新您的 Claude 配置文件 (~/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"
}
}
}
}
您可以在 NS API 门户 获取一个 API 密钥。
通过 Smithery 自动安装 NS 旅行信息服务器:
npx -y @smithery/cli install ns-server --client claude
npm install
cp .env.example .env
.env 文件中:NS_API_KEY=your_api_key_here
然后更新您的 Claude 配置文件:
{
"mcpServers": {
"ns-server": {
"command": "node",
"args": [
"./ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}
| 属性 | 详情 |
|---|---|
| 变量名 | 描述 |
| NS_API_KEY | 必需。NS API 的访问密钥 |
# 示例:查询实时列车信息
curl -X POST http://localhost:7001/ns-train-info \
-H "Content-Type: application/json" \
-d '{"station":"Amsterdam"}'
此项目在 MIT 许可证下,详情请参见 LICENSE 文件。