mcp-national-rail logo

mcp-national-rail提供 National 铁路实时列车时刻表的 Model Context Protocol (MCP) 服务器

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

mcp-national-rail 是一个 Model Context Protocol (MCP) 服务,允许 AI 代理使用实时列车 API 访问 National 铁路列车时刻表。它提供了实时和已预订列车信息的获取工具,以及使用日期可以获取已预订的出发和到达时间。该项目已在 TypeScript 中实现,并需要实时列车 API 的帐户和凭证才能进行身份验证。该服务器可以手动安装或通过 Smithery 为使用 Claude 桌面而使用。

主要功能

  • 获取实时出发列车
  • 获取实时到达列车
  • 查询已预订出发
  • 查询已预订到达
  • MCP 服务器集成

价格

模型
Free
评分
暂无评价

使用场景

列车时刻表检索

一个 AI 代理使用 MCP 服务获取一个特定站点的实时出发列车

预定列车信息

一个用户向 MCP 服务查询一个特定时间和站点的到达列车信息

优点 & 缺点

优点

  • 允许 AI 代理访问 National 铁路列车时刻表
  • 支持实时和已预订列车信息
  • 与实时列车 API 集成

缺点

  • 需要实时列车 API 帐户及凭证
  • 需要Node.js设置和手动配置

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the main limitations or prerequisites for using this tool?

The server requires Node.js and a Realtime Trains API account for authentication. Manual configuration is needed unless using Smithery, and the code is written in TypeScript, so some basic programming knowledge may be helpful for troubleshooting.

Asked by Xavier Costa · Oct 4, 2025

What train schedule data can AI agents fetch with this MCP server?

The server exposes four tools: `get_live_departures`, `get_live_arrivals`, `get_departures_by_date`, and `get_arrivals_by_date`, allowing agents to retrieve both real‑time and scheduled departure and arrival information for National Rail services.

Asked by Dmitri Volkov · Sep 13, 2025

What credentials do I need to use the server?

You must create a Realtime Trains API account at https://api.rtt.io/ and note your API username and password. These should be set as `RTT_API_USERNAME` and `RTT_API_PASSWORD` in either an `.env` file or the Claude config environment block.

Asked by Daniel Schmidt · Aug 11, 2025

How do I install and run mcp-national-rail on my machine?

You can install it automatically with Smithery by running `npx y @smithery/cli install @lucygoodchild/mcp-national-rail-client-claude`. For a manual setup, clone the repo, run `npm install`, then build with `npm run build` and start with `npm run start`. Finally, add the server entry to Claude Desktop’s config JSON with the correct path and your RTT API credentials.

Asked by Lorenzo Bianchi · Jun 14, 2025

提问

服务配缩器 的替代品